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

Proposed by Nicolas Thomas
Status: Merged
Approved by: Darryl Weaver
Approved revision: 77
Merge reported by: Darryl Weaver
Merged at revision: not available
Proposed branch: lp:~thomnico/orange-box-examples/telco-cleanup
Merge into: lp:orange-box-examples
Diff against target: 346 lines (+181/-52)
8 files modified
.bzrignore (+0/-2)
telco/01-deploy.sh (+3/-7)
telco/BulkUsersCreation.sh (+21/-0)
telco/README (+14/-4)
telco/bundle-telco.yaml (+10/-9)
telco/fix-missing-link (+0/-10)
telco/mydomain-bundle.sh (+133/-0)
telco/sync-local-charms (+0/-20)
To merge this branch: bzr merge lp:~thomnico/orange-box-examples/telco-cleanup
Reviewer Review Type Date Requested Status
Darryl Weaver (community) Approve
Review via email: mp+248129@code.launchpad.net

Description of the change

Cleaning the Example branch as icons are now available from personnal namespace

Code stays in the store.

To post a comment you must log in.
75. By Nicolas Thomas

modified:
  bin/orange-box-import-SA-keys
pending merges:
  Darryl Weaver 2015-02-04 Added Rafael O. Gonzalez ssh key
    Darryl Weaver 2015-02-03 Added Scott Croft's SSH key

76. By Nicolas Thomas

Bundle creation if having your own domain

added:
  telco/mydomain-bundle.sh

77. By Nicolas Thomas

Typo/better document fixes

modified:
  telco/README

Revision history for this message
Darryl Weaver (dweaver) :
review: Approve

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-02-05 10:04:57 +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-02-05 10:04:57 +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-02-05 10:04:57 +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/README'
55--- telco/README 2014-11-10 00:33:48 +0000
56+++ telco/README 2015-02-05 10:04:57 +0000
57@@ -15,15 +15,25 @@
58 #Or drag and drop the only drawback is not having the logos on the gui.
59
60 Use clearwater by using the login at:
61+Show: http://www.projectclearwater.org/wp-content/uploads/2013/05/project-clearwater-architecture-april-2014-2.png
62+Architecture
63+
64 http://ellis-IP/
65-signup key: signup
66+Go to signup page:
67+e-mail/name: your choice.
68+signup code : signup
69+password suggestion: AAbbCCdd
70+
71+
72+Run: BulkUsersCreation.sh
73
74 Use restcomm using the login at:
75-http://restcomm-IP:2080/restcomm-management
76+http://restcomm-IP:8080/restcomm-management
77 email: administrator@company.com
78 pass: RestComm
79
80-TODO:
81- automate users creation
82+Show the designer:
83+http://www.restcomm.com/developers/
84+
85
86
87
88=== modified file 'telco/bundle-telco.yaml'
89--- telco/bundle-telco.yaml 2014-11-10 00:33:48 +0000
90+++ telco/bundle-telco.yaml 2015-02-05 10:04:57 +0000
91@@ -1,7 +1,7 @@
92 phone-network:
93 services:
94 "clearwater-bono":
95- charm: "local:precise/clearwater-bono"
96+ charm: "cs:~thomnico/precise/clearwater-bono"
97 num_units: 1
98 options:
99 zone: clearwater.local
100@@ -11,7 +11,7 @@
101 "gui-x": "400"
102 "gui-y": "900"
103 "clearwater-ellis":
104- charm: "local:precise/clearwater-ellis"
105+ charm: "cs:~thomnico/precise/clearwater-ellis"
106 num_units: 1
107 options:
108 base_number: "1234567000"
109@@ -24,7 +24,7 @@
110 "gui-x": "400"
111 "gui-y": "0"
112 "clearwater-homer":
113- charm: "local:precise/clearwater-homer"
114+ charm: "cs:~thomnico/precise/clearwater-homer"
115 num_units: 1
116 options:
117 zone: clearwater.local
118@@ -34,7 +34,7 @@
119 "gui-x": "600"
120 "gui-y": "300"
121 "clearwater-homestead":
122- charm: "local:precise/clearwater-homestead"
123+ charm: "cs:~thomnico/precise/clearwater-homestead"
124 num_units: 1
125 options:
126 zone: clearwater.local
127@@ -44,7 +44,7 @@
128 "gui-x": "200"
129 "gui-y": "300"
130 "clearwater-sprout":
131- charm: "local:precise/clearwater-sprout"
132+ charm: "cs:~thomnico/precise/clearwater-sprout"
133 num_units: 1
134 options:
135 zone: clearwater.local
136@@ -54,9 +54,10 @@
137 "gui-x": "400"
138 "gui-y": "600"
139 dns:
140- charm: "local:precise/dns"
141+ charm: "cs:~thomnico/precise/dns"
142 num_units: 1
143 constraints: arch=amd64 mem=2G
144+ expose: true
145 options:
146 domain: clearwater.local
147 annotations:
148@@ -68,17 +69,17 @@
149 expose: true
150 constraints: arch=amd64 mem=2G
151 annotations:
152- "gui-x": "-78.2210693359375"
153+ "gui-x": "-500.2210693359375"
154 "gui-y": "412.7301025390625"
155 mysql:
156 charm: "cs:trusty/mysql-5"
157 num_units: 1
158 constraints: arch=amd64 mem=2G
159 annotations:
160- "gui-x": "-857.8215242215981"
161+ "gui-x": "-500.8215242215981"
162 "gui-y": "698.5485784445332"
163 sipml5:
164- charm: "local:trusty/sipml5"
165+ charm: "cs:~thomnico/trusty/sipml5"
166 num_units: 1
167 expose: true
168 annotations:
169
170=== removed file 'telco/fix-missing-link'
171--- telco/fix-missing-link 2015-01-07 01:46:11 +0000
172+++ telco/fix-missing-link 1970-01-01 00:00:00 +0000
173@@ -1,10 +0,0 @@
174-#!/bin/bash
175-
176-set -e
177-
178-for s in ellis homer homestead sprout bono
179-do
180- juju ssh clearwater-$s/0 sudo ln -s /etc/init.d/clearwater-monit /etc/init.d/monit
181- juju resolved -r clearwater-$s/0
182-done
183-
184
185=== added file 'telco/mydomain-bundle.sh'
186--- telco/mydomain-bundle.sh 1970-01-01 00:00:00 +0000
187+++ telco/mydomain-bundle.sh 2015-02-05 10:04:57 +0000
188@@ -0,0 +1,133 @@
189+#!/bin/bash -e
190+
191+
192+mydomain=$1
193+cat > bundle-$mydomain.yaml <<EOF
194+phone-network:
195+ services:
196+ "clearwater-bono":
197+ charm: "cs:~thomnico/precise/clearwater-bono"
198+ num_units: 1
199+ options:
200+ zone: $mydomain
201+ constraints: arch=amd64 mem=2G
202+ expose: true
203+ annotations:
204+ "gui-x": "400"
205+ "gui-y": "900"
206+ "clearwater-ellis":
207+ charm: "cs:~thomnico/precise/clearwater-ellis"
208+ num_units: 1
209+ options:
210+ base_number: "1234567000"
211+ number_count: 1000
212+ signup_key: signup
213+ zone: $mydomain
214+ constraints: arch=amd64 mem=2G
215+ expose: true
216+ annotations:
217+ "gui-x": "400"
218+ "gui-y": "0"
219+ "clearwater-homer":
220+ charm: "cs:~thomnico/precise/clearwater-homer"
221+ num_units: 1
222+ options:
223+ zone: $mydomain
224+ constraints: arch=amd64 mem=2G
225+ expose: true
226+ annotations:
227+ "gui-x": "600"
228+ "gui-y": "300"
229+ "clearwater-homestead":
230+ charm: "cs:~thomnico/precise/clearwater-homestead"
231+ num_units: 1
232+ options:
233+ zone: $mydomain
234+ constraints: arch=amd64 mem=2G
235+ expose: true
236+ annotations:
237+ "gui-x": "200"
238+ "gui-y": "300"
239+ "clearwater-sprout":
240+ charm: "cs:~thomnico/precise/clearwater-sprout"
241+ num_units: 1
242+ options:
243+ zone: $mydomain
244+ constraints: arch=amd64 mem=2G
245+ expose: true
246+ annotations:
247+ "gui-x": "400"
248+ "gui-y": "600"
249+ dns:
250+ charm: "cs:~thomnico/precise/dns"
251+ num_units: 1
252+ constraints: arch=amd64 mem=2G
253+ expose: true
254+ options:
255+ domain: $mydomain
256+ annotations:
257+ "gui-x": "1000"
258+ "gui-y": "450"
259+ "telscale-load-balancer":
260+ charm: "cs:~gvagenas-g/trusty/telscale-load-balancer-0"
261+ num_units: 1
262+ expose: true
263+ constraints: arch=amd64 mem=2G
264+ annotations:
265+ "gui-x": "-500.2210693359375"
266+ "gui-y": "412.7301025390625"
267+ mysql:
268+ charm: "cs:trusty/mysql-5"
269+ num_units: 1
270+ constraints: arch=amd64 mem=2G
271+ annotations:
272+ "gui-x": "-500.8215242215981"
273+ "gui-y": "698.5485784445332"
274+ sipml5:
275+ charm: "cs:~thomnico/trusty/sipml5"
276+ num_units: 1
277+ expose: true
278+ annotations:
279+ "gui-x": "1383.4697265625"
280+ "gui-y": "423.10858154296875"
281+ "telscale-restcomm":
282+ charm: "cs:~gvagenas-g/trusty/telscale-restcomm-0"
283+ num_units: 1
284+ constraints: arch=amd64 mem=2G
285+ expose: true
286+ annotations:
287+ "gui-x": "-500.625244140625"
288+ "gui-y": "547.9537963867188"
289+ relations:
290+ - - "clearwater-bono:scscf"
291+ - "clearwater-sprout:pcscf"
292+ - - "clearwater-homestead:homestead-cscf"
293+ - "clearwater-sprout:homestead-hss"
294+ - - "clearwater-homer:xdms-user"
295+ - "clearwater-sprout:xdms"
296+ - - "clearwater-ellis:homestead-prov"
297+ - "clearwater-homestead:homestead-prov-user"
298+ - - "clearwater-ellis:xdms"
299+ - "clearwater-homer:xdms-user"
300+ - - "clearwater-ellis:programmable-multiple"
301+ - "dns:programmable-multiple"
302+ - - "clearwater-homer:programmable-multiple"
303+ - "dns:programmable-multiple"
304+ - - "clearwater-bono:programmable-multiple"
305+ - "dns:programmable-multiple"
306+ - - "clearwater-sprout:programmable-multiple"
307+ - "dns:programmable-multiple"
308+ - - "clearwater-homestead:programmable-multiple"
309+ - "dns:programmable-multiple"
310+ - - "sipml5:dns-client"
311+ - "dns:dns-client"
312+ - - "mysql:db"
313+ - "telscale-restcomm:database"
314+ - - "telscale-restcomm:load-balancer"
315+ - "telscale-load-balancer:load-balancer"
316+ - - "telscale-load-balancer:clearwater-ellis"
317+ - "clearwater-ellis:as-catalog"
318+ - - "telscale-restcomm:cscf"
319+ - "clearwater-sprout:as"
320+ series: trusty
321+EOF
322
323=== removed file 'telco/sync-local-charms'
324--- telco/sync-local-charms 2014-11-10 11:12:05 +0000
325+++ telco/sync-local-charms 1970-01-01 00:00:00 +0000
326@@ -1,20 +0,0 @@
327-#!/bin/bash
328-
329-
330-set -e
331-
332-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"
333-
334-
335-ROOT=$PWD
336-
337-if [ -d clearwater-juju/charms/precise ]
338- then
339- cd clearwater-juju
340- git pull
341- cd ..
342- else
343- git clone https://github.com/Metaswitch/clearwater-juju.git
344- ln -sf clearwater-juju/charms/precise/ .
345-fi
346-

Subscribers

People subscribed via source and target branches