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

Proposed by Nicolas Thomas
Status: Rejected
Rejected by: Darryl Weaver
Proposed branch: lp:~thomnico/orange-box-examples/telco
Merge into: lp:orange-box-examples
Diff against target: 174 lines (+34/-48)
6 files modified
.bzrignore (+0/-2)
telco/01-deploy.sh (+3/-7)
telco/BulkUsersCreation.sh (+21/-0)
telco/bundle-telco.yaml (+10/-9)
telco/fix-missing-link (+0/-10)
telco/sync-local-charms (+0/-20)
To merge this branch: bzr merge lp:~thomnico/orange-box-examples/telco
Reviewer Review Type Date Requested Status
Orange Box Examples Pending
Review via email: mp+247660@code.launchpad.net

Description of the change

Changes to adapt to using the charms in the store

To post a comment you must log in.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.bzrignore'
2--- .bzrignore 2014-10-28 18:40:11 +0000
3+++ .bzrignore 2015-01-26 22:18:28 +0000
4@@ -1,4 +1,2 @@
5 precise
6-telco/precise
7-telco/trusty
8 cloudfoundry/trusty
9
10=== modified file 'telco/01-deploy.sh'
11--- telco/01-deploy.sh 2014-10-27 15:23:26 +0000
12+++ telco/01-deploy.sh 2015-01-26 22:18:28 +0000
13@@ -8,10 +8,6 @@
14
15 set -e
16
17-if [[ -d precise/ && -d trusty/ ]]
18-then
19- export JUJU_REPOSITORY=$PWD
20- juju-deployer -c bundle-telco.yaml
21-else
22- echo "Run ./bzr-sync-local-charms before running this script"
23-fi
24+export JUJU_REPOSITORY=$PWD
25+juju-deployer -r 3 -c bundle-telco.yaml
26+
27
28=== added file 'telco/BulkUsersCreation.sh'
29--- telco/BulkUsersCreation.sh 1970-01-01 00:00:00 +0000
30+++ telco/BulkUsersCreation.sh 2015-01-26 22:18:28 +0000
31@@ -0,0 +1,21 @@
32+#!/bin/bash -e
33+
34+## Try ping homer and homestead from ellis before adding user to check dns resolution
35+
36+juju ssh clearwater-homestead/0 '. /etc/clearwater/config; for DN in {0000..0099} ; do echo sip:$DN@$home_domain,$DN@$home_domain,$home_domain,7kkzTyGW ; done > users.csv'
37+
38+juju ssh clearwater-homestead/0 "/usr/share/clearwater/homestead/src/metaswitch/crest/tools/bulk_autocomplete.py users.csv"
39+juju ssh clearwater-homestead/0 "/usr/share/clearwater/homestead/src/metaswitch/crest/tools/bulk_create.py users.auto.csv"
40+
41+juju ssh clearwater-homestead/0 "./users.auto.create_homestead.sh"
42+
43+TMP=`mktemp -d`
44+juju scp clearwater-homestead/0:~/*xdm* $TMP/
45+juju scp $TMP/*xdm* clearwater-homer/0:~/
46+juju ssh clearwater-homer/0 "./users.auto.create_xdm.sh"
47+
48+DOMAIN=`juju ssh clearwater-homestead/0 '. /etc/clearwater/config; echo $home_domain'`
49+echo 'users range from 0000@'$DOMAIN
50+echo 'to 0099@'$DOMAIN
51+echo ' with password 7kkzTyGW created'
52+echo "See clearwater doc to configure your clients"
53
54=== modified file 'telco/bundle-telco.yaml'
55--- telco/bundle-telco.yaml 2014-11-10 00:33:48 +0000
56+++ telco/bundle-telco.yaml 2015-01-26 22:18:28 +0000
57@@ -1,7 +1,7 @@
58 phone-network:
59 services:
60 "clearwater-bono":
61- charm: "local:precise/clearwater-bono"
62+ charm: "cs:~thomnico/precise/clearwater-bono"
63 num_units: 1
64 options:
65 zone: clearwater.local
66@@ -11,7 +11,7 @@
67 "gui-x": "400"
68 "gui-y": "900"
69 "clearwater-ellis":
70- charm: "local:precise/clearwater-ellis"
71+ charm: "cs:~thomnico/precise/clearwater-ellis"
72 num_units: 1
73 options:
74 base_number: "1234567000"
75@@ -24,7 +24,7 @@
76 "gui-x": "400"
77 "gui-y": "0"
78 "clearwater-homer":
79- charm: "local:precise/clearwater-homer"
80+ charm: "cs:~thomnico/precise/clearwater-homer"
81 num_units: 1
82 options:
83 zone: clearwater.local
84@@ -34,7 +34,7 @@
85 "gui-x": "600"
86 "gui-y": "300"
87 "clearwater-homestead":
88- charm: "local:precise/clearwater-homestead"
89+ charm: "cs:~thomnico/precise/clearwater-homestead"
90 num_units: 1
91 options:
92 zone: clearwater.local
93@@ -44,7 +44,7 @@
94 "gui-x": "200"
95 "gui-y": "300"
96 "clearwater-sprout":
97- charm: "local:precise/clearwater-sprout"
98+ charm: "cs:~thomnico/precise/clearwater-sprout"
99 num_units: 1
100 options:
101 zone: clearwater.local
102@@ -54,9 +54,10 @@
103 "gui-x": "400"
104 "gui-y": "600"
105 dns:
106- charm: "local:precise/dns"
107+ charm: "cs:~thomnico/precise/dns"
108 num_units: 1
109 constraints: arch=amd64 mem=2G
110+ expose: true
111 options:
112 domain: clearwater.local
113 annotations:
114@@ -68,17 +69,17 @@
115 expose: true
116 constraints: arch=amd64 mem=2G
117 annotations:
118- "gui-x": "-78.2210693359375"
119+ "gui-x": "-500.2210693359375"
120 "gui-y": "412.7301025390625"
121 mysql:
122 charm: "cs:trusty/mysql-5"
123 num_units: 1
124 constraints: arch=amd64 mem=2G
125 annotations:
126- "gui-x": "-857.8215242215981"
127+ "gui-x": "-500.8215242215981"
128 "gui-y": "698.5485784445332"
129 sipml5:
130- charm: "local:trusty/sipml5"
131+ charm: "cs:~thomnico/trusty/sipml5"
132 num_units: 1
133 expose: true
134 annotations:
135
136=== removed file 'telco/fix-missing-link'
137--- telco/fix-missing-link 2015-01-07 01:46:11 +0000
138+++ telco/fix-missing-link 1970-01-01 00:00:00 +0000
139@@ -1,10 +0,0 @@
140-#!/bin/bash
141-
142-set -e
143-
144-for s in ellis homer homestead sprout bono
145-do
146- juju ssh clearwater-$s/0 sudo ln -s /etc/init.d/clearwater-monit /etc/init.d/monit
147- juju resolved -r clearwater-$s/0
148-done
149-
150
151=== removed file 'telco/sync-local-charms'
152--- telco/sync-local-charms 2014-11-10 11:12:05 +0000
153+++ telco/sync-local-charms 1970-01-01 00:00:00 +0000
154@@ -1,20 +0,0 @@
155-#!/bin/bash
156-
157-
158-set -e
159-
160-echo "You must have bzr launchpad-login set to your Launchpad username and your key available via ssh agent (logged in using ssh -A ubuntu@hostname), otherwise this will fail"
161-
162-
163-ROOT=$PWD
164-
165-if [ -d clearwater-juju/charms/precise ]
166- then
167- cd clearwater-juju
168- git pull
169- cd ..
170- else
171- git clone https://github.com/Metaswitch/clearwater-juju.git
172- ln -sf clearwater-juju/charms/precise/ .
173-fi
174-

Subscribers

People subscribed via source and target branches