Merge lp:~thomnico/orange-box-examples/telco into lp:orange-box-examples

Proposed by Nicolas Thomas
Status: Merged
Merged at revision: 63
Proposed branch: lp:~thomnico/orange-box-examples/telco
Merge into: lp:orange-box-examples
Diff against target: 92 lines (+30/-31)
2 files modified
cloudfoundry/01-deploy.sh (+19/-2)
telco/sync-local-charms (+11/-29)
To merge this branch: bzr merge lp:~thomnico/orange-box-examples/telco
Reviewer Review Type Date Requested Status
Darryl Weaver Pending
Review via email: mp+241256@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Nicolas Thomas (thomnico) wrote :
Download full text (5.6 KiB)

Darryl,

If you can skip adding the script
:'bin/orange-box-wildcard-dns-archive' right now ... to avoid
misunderstanding..

On Mon, Nov 10, 2014 at 11:58 AM, Nicolas Thomas
<email address hidden> wrote:
> Nicolas Thomas has proposed merging lp:~thomnico/orange-box-examples/telco into lp:orange-box-examples.
>
> Requested reviews:
> Darryl Weaver (dweaver)
>
> For more details, see:
> https://code.launchpad.net/~thomnico/orange-box-examples/telco/+merge/241256
> --
> https://code.launchpad.net/~thomnico/orange-box-examples/telco/+merge/241256
> You are the owner of lp:~thomnico/orange-box-examples/telco.
>
> === added file 'bin/orange-box-wildcard-dns-archive'
> --- bin/orange-box-wildcard-dns-archive 1970-01-01 00:00:00 +0000
> +++ bin/orange-box-wildcard-dns-archive 2014-11-10 10:57:16 +0000
> @@ -0,0 +1,73 @@
> +#!/bin/bash
> +#
> +# orange-box-wildcard-dns-archive
> +# Copyright (C) 2014 Canonical Ltd.
> +#
> +# Authors: Nicolas Thomas <email address hidden>
> +#
> +# This program is free software: you can redistribute it and/or modify
> +# it under the terms of the GNU General Public License as published by
> +# the Free Software Foundation, version 3 of the License.
> +#
> +# This program is distributed in the hope that it will be useful,
> +# but WITHOUT ANY WARRANTY; without even the implied warranty of
> +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> +# GNU General Public License for more details.
> +#
> +# You should have received a copy of the GNU General Public License
> +# along with this program. If not, see <http://www.gnu.org/licenses/>.
> +
> +set -e
> +
> +fgrep "/etc/bind/named.conf.wildcard-archive" /etc/bind/named.conf > /dev/null && (echo "already applied" ; exit 2)
> +
> +if [ "$(id -u)" != "0" ]; then
> + echo "Must be run with sudo or by root"
> + exit 77
> +fi
> +
> +cat > /etc/bind/named.conf.wildcard-archive <<EOF
> +# Zone declarations.
> +zone "archive.ubuntu.com" {
> + type master;
> + file "/etc/bind/zones.wildcard-archive";
> +};
> +
> +EOF
> +
> +## Need to create a dns entry to ensure *.archive.ubuntu.com resolve locally
> +## Many charms/packages/install rely on this /etc/hosts is not enough
> +
> +echo '$TTL 300' > /etc/bind/zones.wildcard-archive
> +cat >> /etc/bind/zones.wildcard-archive <<EOF
> +@ IN SOA archive.ubuntu.com ubuntu.com (
> + 999 ; serial
> + 600 ; Refresh
> + 1800 ; Retry
> + 604800 ; Expire
> + 300 ; TTL
> + )
> +
> + IN NS archive.ubuntu.com
> +
> +
> +archive.ubuntu.com IN A 10.14.4.1
> +
> +ns IN CNAME archive.ubuntu.com
> +
> +* IN A 10.14.4.1
> +
> +EOF
> +
> +
> +if ( fgrep ubuntu-cloud.archive.canonical.com /etc/hosts > /dev/null )
> +then
> + cat >> /etc/hosts <<EOF
> +10.14.4.1 archive.ubuntu.com ubuntu-cloud.archive.canonical.com
> +EOF
> +fi
> +
> +echo 'include "/etc/bind/named.conf.wildcard-archive";' >> /etc/bind/named.conf
> +service bind9 restart
> +
> +## Todo checking apache v site works for *.archive.ubuntu.com
>
> === modified file 'cloudfoundry/01-dep...

Read more...

62. By Nicolas Thomas

CI after re merge

63. By Nicolas Thomas

Merge and repush

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'cloudfoundry/01-deploy.sh'
2--- cloudfoundry/01-deploy.sh 2014-10-28 18:40:11 +0000
3+++ cloudfoundry/01-deploy.sh 2014-11-10 11:14:37 +0000
4@@ -30,7 +30,8 @@
5 series: trusty
6 services:
7 cloudfoundry:
8- branch: trusty/cloudfoundry
9+ charm: local:trusty/cloudfoundry
10+ num_untis: 1
11 constraints: mem=2048
12 options:
13 admin_secret: $ADMIN_PASS
14@@ -38,6 +39,19 @@
15 cf_version: latest
16 EOF
17
18+ cat << EOF > cf-bundle-gui.yaml
19+cloudfoundry:
20+ series: trusty
21+ services:
22+ cloudfoundry:
23+ charm: "cs:~cf-charmers/trusty/cloudfoundry"
24+ num_untis: 1
25+ constraints: mem=2048
26+ options:
27+ admin_secret: $ADMIN_PASS
28+ placement: ${1:-dense}
29+ cf_version: latest
30+EOF
31
32 export JUJU_REPOSITORY=$PWD
33 juju-deployer -c cf-bundle.yaml
34@@ -48,4 +62,7 @@
35 juju set cloudfoundry domain=$API_IP.xip.io
36
37 echo "Deployment completed"
38-echo "run cflogin in a few minutes"
39+echo "run:"
40+echo " source trusty/cloudfoundry/helpers.sh"
41+echo " cflogin"
42+echo " ... in a few minutes"
43
44=== renamed file 'telco/bzr-sync-local-charms' => 'telco/sync-local-charms'
45--- telco/bzr-sync-local-charms 2014-11-10 00:33:48 +0000
46+++ telco/sync-local-charms 2014-11-10 11:14:37 +0000
47@@ -7,32 +7,14 @@
48
49
50 ROOT=$PWD
51-mkdir -p precise
52-cd precise
53-for f in clearwater-bono/ clearwater-homer/ clearwater-ralf/ dns/ clearwater-ellis/ clearwater-homestead/ clearwater-sprout/
54-do
55- if [ -d $f ]
56- then
57- cd $f
58- bzr pull
59- cd ..
60- else
61- bzr branch lp:~thomnico/charms/precise/$f/trunk $f
62- fi
63-
64-done
65-
66-cd $ROOT
67-mkdir -p trusty
68-cd trusty
69-for f in sipml5
70-do
71- if [ -d $f ]
72- then
73- cd $f
74- bzr pull
75- cd ..
76- else
77- bzr branch lp:~thomnico/charms/trusty/$f/trunk $f
78- fi
79-done
80+
81+if [ -d clearwater-juju/charms/precise ]
82+ then
83+ cd clearwater-juju
84+ git pull
85+ cd ..
86+ else
87+ git clone https://github.com/Metaswitch/clearwater-juju.git
88+ ln -sf clearwater-juju/charms/precise/ .
89+fi
90+
91
92=== added directory 'telco/trusty'

Subscribers

People subscribed via source and target branches