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
=== modified file '.bzrignore'
--- .bzrignore 2014-10-28 18:40:11 +0000
+++ .bzrignore 2015-01-26 22:18:28 +0000
@@ -1,4 +1,2 @@
1precise1precise
2telco/precise
3telco/trusty
4cloudfoundry/trusty2cloudfoundry/trusty
53
=== modified file 'telco/01-deploy.sh'
--- telco/01-deploy.sh 2014-10-27 15:23:26 +0000
+++ telco/01-deploy.sh 2015-01-26 22:18:28 +0000
@@ -8,10 +8,6 @@
88
9set -e9set -e
1010
11if [[ -d precise/ && -d trusty/ ]]11export JUJU_REPOSITORY=$PWD
12then12juju-deployer -r 3 -c bundle-telco.yaml
13 export JUJU_REPOSITORY=$PWD13
14 juju-deployer -c bundle-telco.yaml
15else
16 echo "Run ./bzr-sync-local-charms before running this script"
17fi
1814
=== added file 'telco/BulkUsersCreation.sh'
--- telco/BulkUsersCreation.sh 1970-01-01 00:00:00 +0000
+++ telco/BulkUsersCreation.sh 2015-01-26 22:18:28 +0000
@@ -0,0 +1,21 @@
1#!/bin/bash -e
2
3## Try ping homer and homestead from ellis before adding user to check dns resolution
4
5juju 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'
6
7juju ssh clearwater-homestead/0 "/usr/share/clearwater/homestead/src/metaswitch/crest/tools/bulk_autocomplete.py users.csv"
8juju ssh clearwater-homestead/0 "/usr/share/clearwater/homestead/src/metaswitch/crest/tools/bulk_create.py users.auto.csv"
9
10juju ssh clearwater-homestead/0 "./users.auto.create_homestead.sh"
11
12TMP=`mktemp -d`
13juju scp clearwater-homestead/0:~/*xdm* $TMP/
14juju scp $TMP/*xdm* clearwater-homer/0:~/
15juju ssh clearwater-homer/0 "./users.auto.create_xdm.sh"
16
17DOMAIN=`juju ssh clearwater-homestead/0 '. /etc/clearwater/config; echo $home_domain'`
18echo 'users range from 0000@'$DOMAIN
19echo 'to 0099@'$DOMAIN
20echo ' with password 7kkzTyGW created'
21echo "See clearwater doc to configure your clients"
022
=== modified file 'telco/bundle-telco.yaml'
--- telco/bundle-telco.yaml 2014-11-10 00:33:48 +0000
+++ telco/bundle-telco.yaml 2015-01-26 22:18:28 +0000
@@ -1,7 +1,7 @@
1phone-network: 1phone-network:
2 services: 2 services:
3 "clearwater-bono": 3 "clearwater-bono":
4 charm: "local:precise/clearwater-bono"4 charm: "cs:~thomnico/precise/clearwater-bono"
5 num_units: 15 num_units: 1
6 options: 6 options:
7 zone: clearwater.local7 zone: clearwater.local
@@ -11,7 +11,7 @@
11 "gui-x": "400"11 "gui-x": "400"
12 "gui-y": "900"12 "gui-y": "900"
13 "clearwater-ellis": 13 "clearwater-ellis":
14 charm: "local:precise/clearwater-ellis"14 charm: "cs:~thomnico/precise/clearwater-ellis"
15 num_units: 115 num_units: 1
16 options: 16 options:
17 base_number: "1234567000"17 base_number: "1234567000"
@@ -24,7 +24,7 @@
24 "gui-x": "400"24 "gui-x": "400"
25 "gui-y": "0"25 "gui-y": "0"
26 "clearwater-homer": 26 "clearwater-homer":
27 charm: "local:precise/clearwater-homer"27 charm: "cs:~thomnico/precise/clearwater-homer"
28 num_units: 128 num_units: 1
29 options: 29 options:
30 zone: clearwater.local30 zone: clearwater.local
@@ -34,7 +34,7 @@
34 "gui-x": "600"34 "gui-x": "600"
35 "gui-y": "300"35 "gui-y": "300"
36 "clearwater-homestead": 36 "clearwater-homestead":
37 charm: "local:precise/clearwater-homestead"37 charm: "cs:~thomnico/precise/clearwater-homestead"
38 num_units: 138 num_units: 1
39 options: 39 options:
40 zone: clearwater.local40 zone: clearwater.local
@@ -44,7 +44,7 @@
44 "gui-x": "200"44 "gui-x": "200"
45 "gui-y": "300"45 "gui-y": "300"
46 "clearwater-sprout": 46 "clearwater-sprout":
47 charm: "local:precise/clearwater-sprout"47 charm: "cs:~thomnico/precise/clearwater-sprout"
48 num_units: 148 num_units: 1
49 options: 49 options:
50 zone: clearwater.local50 zone: clearwater.local
@@ -54,9 +54,10 @@
54 "gui-x": "400"54 "gui-x": "400"
55 "gui-y": "600"55 "gui-y": "600"
56 dns: 56 dns:
57 charm: "local:precise/dns"57 charm: "cs:~thomnico/precise/dns"
58 num_units: 158 num_units: 1
59 constraints: arch=amd64 mem=2G59 constraints: arch=amd64 mem=2G
60 expose: true
60 options: 61 options:
61 domain: clearwater.local62 domain: clearwater.local
62 annotations: 63 annotations:
@@ -68,17 +69,17 @@
68 expose: true69 expose: true
69 constraints: arch=amd64 mem=2G70 constraints: arch=amd64 mem=2G
70 annotations: 71 annotations:
71 "gui-x": "-78.2210693359375"72 "gui-x": "-500.2210693359375"
72 "gui-y": "412.7301025390625"73 "gui-y": "412.7301025390625"
73 mysql: 74 mysql:
74 charm: "cs:trusty/mysql-5"75 charm: "cs:trusty/mysql-5"
75 num_units: 176 num_units: 1
76 constraints: arch=amd64 mem=2G77 constraints: arch=amd64 mem=2G
77 annotations: 78 annotations:
78 "gui-x": "-857.8215242215981"79 "gui-x": "-500.8215242215981"
79 "gui-y": "698.5485784445332"80 "gui-y": "698.5485784445332"
80 sipml5: 81 sipml5:
81 charm: "local:trusty/sipml5"82 charm: "cs:~thomnico/trusty/sipml5"
82 num_units: 183 num_units: 1
83 expose: true84 expose: true
84 annotations: 85 annotations:
8586
=== removed file 'telco/fix-missing-link'
--- telco/fix-missing-link 2015-01-07 01:46:11 +0000
+++ telco/fix-missing-link 1970-01-01 00:00:00 +0000
@@ -1,10 +0,0 @@
1#!/bin/bash
2
3set -e
4
5for s in ellis homer homestead sprout bono
6do
7 juju ssh clearwater-$s/0 sudo ln -s /etc/init.d/clearwater-monit /etc/init.d/monit
8 juju resolved -r clearwater-$s/0
9done
10
110
=== removed file 'telco/sync-local-charms'
--- telco/sync-local-charms 2014-11-10 11:12:05 +0000
+++ telco/sync-local-charms 1970-01-01 00:00:00 +0000
@@ -1,20 +0,0 @@
1#!/bin/bash
2
3
4set -e
5
6echo "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"
7
8
9ROOT=$PWD
10
11if [ -d clearwater-juju/charms/precise ]
12 then
13 cd clearwater-juju
14 git pull
15 cd ..
16 else
17 git clone https://github.com/Metaswitch/clearwater-juju.git
18 ln -sf clearwater-juju/charms/precise/ .
19fi
20

Subscribers

People subscribed via source and target branches