nuri 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +6 -0
- data/.travis.yml +12 -0
- data/CHANGELOG +146 -0
- data/Gemfile +3 -0
- data/LICENSE +28 -0
- data/README.md +64 -0
- data/Rakefile +15 -0
- data/VERSION +1 -0
- data/bin/delete_modules +11 -0
- data/bin/install_agent +18 -0
- data/bin/install_module +65 -0
- data/bin/nuri +519 -0
- data/bin/nuri.old +183 -0
- data/bin/push_model +16 -0
- data/examples/.gitignore +3 -0
- data/examples/bonfire.sfp +95 -0
- data/examples/bonfire/epcc.sfp +43 -0
- data/examples/bonfire/epcc0.sfp +49 -0
- data/examples/bonfire/epcc2.sfp +52 -0
- data/examples/bonfire/epcc2a.sfp +25 -0
- data/examples/bonfire/inria.sfp +72 -0
- data/examples/bonfire/inria0.sfp +49 -0
- data/examples/bonfire/inria2.sfp +71 -0
- data/examples/bonfire/inria2a.sfp +44 -0
- data/examples/bonfire/inria2b.sfp +54 -0
- data/examples/bonfire/inria2c.sfp +62 -0
- data/examples/bonfire/inria2d.sfp +71 -0
- data/examples/bonfire/inria2e.sfp +80 -0
- data/examples/bonfire/main.sfp +33 -0
- data/examples/bonfire/old/bonfire-1-1-1.sfp +76 -0
- data/examples/bonfire/old/bonfire-1-10-1.sfp +77 -0
- data/examples/bonfire/old/bonfire-1-2-1.sfp +58 -0
- data/examples/bonfire/old/bonfire-1-3-1.sfp +61 -0
- data/examples/bonfire/old/bonfire-1-4-1.sfp +64 -0
- data/examples/bonfire/old/bonfire-1-5-1.sfp +67 -0
- data/examples/bonfire/old/bonfire-1-6-1.sfp +82 -0
- data/examples/bonfire/old/bonfire-1-7-1.sfp +82 -0
- data/examples/bonfire/old/bonfire-1-8-1.sfp +79 -0
- data/examples/bonfire/old/bonfire-1-9-1.sfp +83 -0
- data/examples/bonfire/old/wp-test1a.sfp +38 -0
- data/examples/bonfire/old/wp-test1b.sfp +18 -0
- data/examples/bonfire/old/wp-test1c.sfp +7 -0
- data/examples/bonfire/old/wp-test2.sfp +47 -0
- data/examples/bonfire/old3/bonfire-epcc.sfp +57 -0
- data/examples/bonfire/old3/bonfire-inria.sfp +72 -0
- data/examples/bonfire/old3/bonfire-master.sfp +18 -0
- data/examples/bonfire/old3/bonfire.sfp +23 -0
- data/examples/bonfire/old3/bonfire2.sfp +49 -0
- data/examples/bonfire/old3/bonfire3.sfp +76 -0
- data/examples/bonfire/old3/bonfire4.sfp +78 -0
- data/examples/bonfire/old3/bonfire5.sfp +34 -0
- data/examples/bonfire/old3/bonfire5b.sfp +84 -0
- data/examples/bonfire/old3/hpvm6.sfp +22 -0
- data/examples/bonfire/old3/model.json +1 -0
- data/examples/bonfire/old3/test0.sfp +16 -0
- data/examples/bonfire/old3/test1.sfp +5 -0
- data/examples/bonfire/old3/test10.sfp +5 -0
- data/examples/bonfire/old3/test2.sfp +18 -0
- data/examples/bonfire/old3/test3.sfp +10 -0
- data/examples/bonfire/old3/test4.sfp +11 -0
- data/examples/bonfire/old3/test5.sfp +18 -0
- data/examples/bonfire/old3/test6.sfp +19 -0
- data/examples/bonfire/old3/test7.sfp +34 -0
- data/examples/bonfire/old3/test8.sfp +5 -0
- data/examples/bonfire/old3/test9.sfp +16 -0
- data/examples/bonfire/old3/wordpress-test-cluster.sfp +38 -0
- data/examples/bonfire/old3/wordpress-test.sfp +22 -0
- data/examples/bonfire/old3/wp-test-2.sfp +49 -0
- data/examples/bonfire/test.sfp +13 -0
- data/examples/generator.rb +66 -0
- data/examples/hadoop2.sfp +20 -0
- data/examples/hpcloud.sfp +18 -0
- data/examples/run.rb +17 -0
- data/examples/test.inc +0 -0
- data/examples/test.sfp +11 -0
- data/lib/naas/d3.js +5 -0
- data/lib/naas/d3.v3.min.js +5 -0
- data/lib/naas/index.css +0 -0
- data/lib/naas/index.html +18 -0
- data/lib/naas/index.js +18 -0
- data/lib/naas/jquery-1.10.2.min.js +6 -0
- data/lib/naas/jquery.js +6 -0
- data/lib/naas/naas.rb +160 -0
- data/lib/nuri.rb +62 -0
- data/lib/nuri/choreographer.rb +151 -0
- data/lib/nuri/constraint_helper.rb +9 -0
- data/lib/nuri/directory.rb +40 -0
- data/lib/nuri/master.rb +725 -0
- data/lib/nuri/net_helper.rb +65 -0
- data/lib/nuri/orchestrator.rb +224 -0
- data/lib/nuri/server.rb +212 -0
- data/modules/.gitignore +4 -0
- data/modules/apache/apache.rb +255 -0
- data/modules/apache/apache.rb.old +167 -0
- data/modules/apache/apache.sfp +146 -0
- data/modules/apache/apache.sfp.future +100 -0
- data/modules/apache/load_balancer +20 -0
- data/modules/apache/model.json +1 -0
- data/modules/apache/test.sfp +8 -0
- data/modules/aptpackage/aptpackage.rb +82 -0
- data/modules/aptpackage/aptpackage.sfp +5 -0
- data/modules/bonfire/.gitignore +2 -0
- data/modules/bonfire/README.md +12 -0
- data/modules/bonfire/bonfire.rb +60 -0
- data/modules/bonfire/bonfire.sfp +9 -0
- data/modules/bonfire/config.yml +4 -0
- data/modules/bonfire/helper.rb +149 -0
- data/modules/bonfire/stresstest.rb +144 -0
- data/modules/bonfire/test.sfp +8 -0
- data/modules/client/client.rb +22 -0
- data/modules/client/client.sfp +14 -0
- data/modules/cloud/cloud.rb +11 -0
- data/modules/cloud/cloud.sfp +26 -0
- data/modules/file/file.rb +91 -0
- data/modules/file/file.sfp +9 -0
- data/modules/hadoop1/core-site.xml +17 -0
- data/modules/hadoop1/hadoop-env.sh +55 -0
- data/modules/hadoop1/hadoop1.rb +384 -0
- data/modules/hadoop1/hadoop1.sfp +93 -0
- data/modules/hadoop1/hdfs-site.xml +16 -0
- data/modules/hadoop1/mapred-site.xml +17 -0
- data/modules/hadoop2/core-site.xml +31 -0
- data/modules/hadoop2/hadoop-env.sh +77 -0
- data/modules/hadoop2/hadoop2.rb +401 -0
- data/modules/hadoop2/hadoop2.sfp +114 -0
- data/modules/hadoop2/hdfs-site.xml +47 -0
- data/modules/hadoop2/mapred-site.xml +71 -0
- data/modules/hadoop2/ports +14 -0
- data/modules/hadoop2/yarn-env.sh +112 -0
- data/modules/hadoop2/yarn-site.xml +107 -0
- data/modules/hpcloud/.gitignore +2 -0
- data/modules/hpcloud/README.md +16 -0
- data/modules/hpcloud/config.yml +3 -0
- data/modules/hpcloud/example.sfp +18 -0
- data/modules/hpcloud/hpcloud.rb +241 -0
- data/modules/hpcloud/hpcloud.sfp +22 -0
- data/modules/hpcloud/test.sfp +5 -0
- data/modules/install_module +65 -0
- data/modules/machine/machine.rb +95 -0
- data/modules/machine/machine.sfp +9 -0
- data/modules/mockcloud/mockcloud.rb +20 -0
- data/modules/mockcloud/mockcloud.sfp +6 -0
- data/modules/mysql/mysql.rb +118 -0
- data/modules/mysql/mysql.sfp +38 -0
- data/modules/mysql/test.sfp +3 -0
- data/modules/node/node.rb +8 -0
- data/modules/node/node.sfp +7 -0
- data/modules/object/object.rb +7 -0
- data/modules/object/object.sfp +1 -0
- data/modules/os/os.rb +38 -0
- data/modules/os/os.sfp +11 -0
- data/modules/package/package.rb +26 -0
- data/modules/package/package.sfp +22 -0
- data/modules/package/test.sfp +6 -0
- data/modules/service/model.json +1 -0
- data/modules/service/service.rb +50 -0
- data/modules/service/service.sfp +46 -0
- data/modules/service/test.sfp +6 -0
- data/modules/tarpackage/tarpackage.rb +93 -0
- data/modules/tarpackage/tarpackage.sfp +5 -0
- data/modules/vm/vm.rb +8 -0
- data/modules/vm/vm.sfp +18 -0
- data/modules/wordpress/wordpress.rb +98 -0
- data/modules/wordpress/wordpress.sfp +34 -0
- data/modules/wordpresscluster/wordpresscluster.rb +150 -0
- data/modules/wordpresscluster/wordpresscluster.sfp +74 -0
- data/nuri.gemspec +26 -0
- metadata +281 -0
@@ -0,0 +1,80 @@
|
|
1
|
+
include "../modules/vm/vm.sfp"
|
2
|
+
include "../modules/apache/apache.sfp"
|
3
|
+
include "../modules/mysql/mysql.sfp"
|
4
|
+
include "../modules/wordpresscluster/wordpresscluster.sfp"
|
5
|
+
|
6
|
+
vm1x isa VM {
|
7
|
+
created = true
|
8
|
+
apache isa Apache {
|
9
|
+
running is true
|
10
|
+
is_load_balancer is true
|
11
|
+
}
|
12
|
+
in_cloud is proxy.epcc
|
13
|
+
}
|
14
|
+
vm2x isa VM {
|
15
|
+
created = true
|
16
|
+
apache isa Apache {
|
17
|
+
running is true
|
18
|
+
}
|
19
|
+
wp_web isa WordpressWeb {
|
20
|
+
installed is true
|
21
|
+
http is vm2x.apache
|
22
|
+
database is vm10x.wp_db
|
23
|
+
}
|
24
|
+
in_cloud is proxy.epcc
|
25
|
+
}
|
26
|
+
vm3x extends vm2x {
|
27
|
+
wp_web isa WordpressWeb {
|
28
|
+
installed is true
|
29
|
+
http is vm3x.apache
|
30
|
+
database is vm10x.wp_db
|
31
|
+
}
|
32
|
+
}
|
33
|
+
vm4x extends vm2x {
|
34
|
+
wp_web isa WordpressWeb {
|
35
|
+
installed is true
|
36
|
+
http is vm4x.apache
|
37
|
+
database is vm10x.wp_db
|
38
|
+
}
|
39
|
+
}
|
40
|
+
vm5x extends vm2x {
|
41
|
+
wp_web isa WordpressWeb {
|
42
|
+
installed is true
|
43
|
+
http is vm5x.apache
|
44
|
+
database is vm10x.wp_db
|
45
|
+
}
|
46
|
+
}
|
47
|
+
vm6x extends vm2x {
|
48
|
+
wp_web isa WordpressWeb {
|
49
|
+
installed is true
|
50
|
+
http is vm6x.apache
|
51
|
+
database is vm10x.wp_db
|
52
|
+
}
|
53
|
+
}
|
54
|
+
vm10x isa VM {
|
55
|
+
created = true
|
56
|
+
mysql isa Mysql {
|
57
|
+
running is true
|
58
|
+
}
|
59
|
+
wp_db isa WordpressDB {
|
60
|
+
installed is true
|
61
|
+
mysql is vm10x.mysql
|
62
|
+
}
|
63
|
+
in_cloud is proxy.epcc
|
64
|
+
}
|
65
|
+
|
66
|
+
global {
|
67
|
+
if vm1x.apache.running = true then {
|
68
|
+
vm2x.apache.running = true
|
69
|
+
vm3x.apache.running = true
|
70
|
+
vm4x.apache.running = true
|
71
|
+
vm5x.apache.running = true
|
72
|
+
vm6x.apache.running = true
|
73
|
+
}
|
74
|
+
|
75
|
+
if vm2x.apache.running = true then vm10x.mysql.running = true
|
76
|
+
if vm3x.apache.running = true then vm10x.mysql.running = true
|
77
|
+
if vm4x.apache.running = true then vm10x.mysql.running = true
|
78
|
+
if vm5x.apache.running = true then vm10x.mysql.running = true
|
79
|
+
if vm6x.apache.running = true then vm10x.mysql.running = true
|
80
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
include "../modules/node/node.sfp"
|
2
|
+
include "../modules/bonfire/bonfire.sfp"
|
3
|
+
include "../modules/client/client.sfp"
|
4
|
+
|
5
|
+
proxy isa Node {
|
6
|
+
sfpAddress is "localhost"
|
7
|
+
|
8
|
+
epcc isa Bonfire {
|
9
|
+
experiment is "autocloud"
|
10
|
+
location is "uk-epcc"
|
11
|
+
image_name is "BonFIRE Debian Squeeze 10G v5"
|
12
|
+
wan_name is "BonFIRE WAN"
|
13
|
+
}
|
14
|
+
inria extends proxy.epcc {
|
15
|
+
location is "fr-inria"
|
16
|
+
}
|
17
|
+
client isa Client {
|
18
|
+
refer is vm1x.apache
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
include "inria2e.sfp"
|
23
|
+
//include "epcc2a.sfp"
|
24
|
+
|
25
|
+
//include "test.sfp"
|
26
|
+
|
27
|
+
global {
|
28
|
+
//proxy.client.refer in (vm1.apache, vm1x.apache)
|
29
|
+
//if proxy.client.refer = vm1.apache then vm1.apache.running = true
|
30
|
+
if proxy.client.refer = vm1x.apache then vm1x.apache.running = true
|
31
|
+
}
|
32
|
+
|
33
|
+
|
@@ -0,0 +1,76 @@
|
|
1
|
+
include "../modules/machine/machine.sfp"
|
2
|
+
include "../modules/bonfire/bonfire.sfp"
|
3
|
+
include "../modules/vm/vm.sfp"
|
4
|
+
include "../modules/apache/apache.sfp"
|
5
|
+
include "../modules/mysql/mysql.sfp"
|
6
|
+
|
7
|
+
master isa Machine {
|
8
|
+
sfpAddress is "localhost"
|
9
|
+
bonfireEPCC isa Bonfire {
|
10
|
+
experiment is "autocloud"
|
11
|
+
location is "uk-epcc"
|
12
|
+
image_name is "BonFIRE Debian Squeeze 10G v5"
|
13
|
+
wan_name is "BonFIRE WAN"
|
14
|
+
}
|
15
|
+
bonfireINRIA extends master.bonfireEPCC {
|
16
|
+
location is "fr-inria"
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
vm1 isa VM {
|
21
|
+
created = true
|
22
|
+
apache isa Apache {
|
23
|
+
running is true
|
24
|
+
is_load_balancer is true
|
25
|
+
}
|
26
|
+
in_cloud is master.bonfireEPCC
|
27
|
+
}
|
28
|
+
vm2 isa VM {
|
29
|
+
created = true
|
30
|
+
apache isa Apache {
|
31
|
+
running is true
|
32
|
+
}
|
33
|
+
in_cloud is master.bonfireEPCC
|
34
|
+
}
|
35
|
+
/*vm3 extends vm2
|
36
|
+
vm4 extends vm2
|
37
|
+
vm5 extends vm2
|
38
|
+
vm6 extends vm2
|
39
|
+
vm7 extends vm2
|
40
|
+
vm8 extends vm2
|
41
|
+
vm9 extends vm2
|
42
|
+
vm11 extends vm2
|
43
|
+
vm12 extends vm2*/
|
44
|
+
vm10 isa VM {
|
45
|
+
created = true
|
46
|
+
mysql isa Mysql {
|
47
|
+
running is true
|
48
|
+
}
|
49
|
+
in_cloud is master.bonfireEPCC
|
50
|
+
}
|
51
|
+
|
52
|
+
global {
|
53
|
+
if vm1.apache.running = true then {
|
54
|
+
vm2.apache.running = true
|
55
|
+
/*vm3.apache.running = true
|
56
|
+
vm4.apache.running = true
|
57
|
+
vm5.apache.running = true
|
58
|
+
vm6.apache.running = true
|
59
|
+
vm7.apache.running = true
|
60
|
+
vm8.apache.running = true
|
61
|
+
vm9.apache.running = true
|
62
|
+
vm11.apache.running = true
|
63
|
+
vm12.apache.running = true*/
|
64
|
+
}
|
65
|
+
|
66
|
+
if vm2.apache.running = true then vm10.mysql.running = true
|
67
|
+
/*if vm3.apache.running = true then vm10.mysql.running = true
|
68
|
+
if vm4.apache.running = true then vm10.mysql.running = true
|
69
|
+
if vm5.apache.running = true then vm10.mysql.running = true
|
70
|
+
if vm6.apache.running = true then vm10.mysql.running = true
|
71
|
+
if vm7.apache.running = true then vm10.mysql.running = true
|
72
|
+
if vm8.apache.running = true then vm10.mysql.running = true
|
73
|
+
if vm9.apache.running = true then vm10.mysql.running = true
|
74
|
+
if vm11.apache.running = true then vm10.mysql.running = true
|
75
|
+
if vm12.apache.running = true then vm10.mysql.running = true*/
|
76
|
+
}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
include "../modules/machine/machine.sfp"
|
2
|
+
include "../modules/bonfire/bonfire.sfp"
|
3
|
+
include "../modules/vm/vm.sfp"
|
4
|
+
include "../modules/apache/apache.sfp"
|
5
|
+
include "../modules/mysql/mysql.sfp"
|
6
|
+
|
7
|
+
master isa Machine {
|
8
|
+
sfpAddress is "localhost"
|
9
|
+
|
10
|
+
bonfireEPCC isa Bonfire {
|
11
|
+
experiment is "autocloud"
|
12
|
+
location is "uk-epcc"
|
13
|
+
image_name is "BonFIRE Debian Squeeze 10G v5"
|
14
|
+
wan_name is "BonFIRE WAN"
|
15
|
+
}
|
16
|
+
bonfireINRIA extends master.bonfireEPCC {
|
17
|
+
location is "fr-inria"
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
vm1 isa VM {
|
22
|
+
created = true
|
23
|
+
apache isa Apache {
|
24
|
+
running is true
|
25
|
+
is_load_balancer is true
|
26
|
+
}
|
27
|
+
in_cloud is master.bonfireINRIA
|
28
|
+
}
|
29
|
+
vm2 isa VM {
|
30
|
+
created = true
|
31
|
+
apache isa Apache {
|
32
|
+
running is true
|
33
|
+
}
|
34
|
+
in_cloud is master.bonfireINRIA
|
35
|
+
}
|
36
|
+
vm3 extends vm2
|
37
|
+
vm4 extends vm2
|
38
|
+
vm5 extends vm2
|
39
|
+
vm6 extends vm2
|
40
|
+
vm7 extends vm2
|
41
|
+
vm8 extends vm2
|
42
|
+
vm9 extends vm2
|
43
|
+
vm11 extends vm2
|
44
|
+
vm12 extends vm2
|
45
|
+
vm10 isa VM {
|
46
|
+
created = true
|
47
|
+
mysql isa Mysql {
|
48
|
+
running is true
|
49
|
+
}
|
50
|
+
in_cloud is master.bonfireINRIA
|
51
|
+
}
|
52
|
+
|
53
|
+
global {
|
54
|
+
if vm1.apache.running = true then {
|
55
|
+
vm2.apache.running = true
|
56
|
+
vm3.apache.running = true
|
57
|
+
vm4.apache.running = true
|
58
|
+
vm5.apache.running = true
|
59
|
+
vm6.apache.running = true
|
60
|
+
vm7.apache.running = true
|
61
|
+
vm8.apache.running = true
|
62
|
+
vm9.apache.running = true
|
63
|
+
vm11.apache.running = true
|
64
|
+
vm12.apache.running = true
|
65
|
+
}
|
66
|
+
|
67
|
+
if vm2.apache.running = true then vm10.mysql.running = true
|
68
|
+
if vm3.apache.running = true then vm10.mysql.running = true
|
69
|
+
if vm4.apache.running = true then vm10.mysql.running = true
|
70
|
+
if vm5.apache.running = true then vm10.mysql.running = true
|
71
|
+
if vm6.apache.running = true then vm10.mysql.running = true
|
72
|
+
if vm7.apache.running = true then vm10.mysql.running = true
|
73
|
+
if vm8.apache.running = true then vm10.mysql.running = true
|
74
|
+
if vm9.apache.running = true then vm10.mysql.running = true
|
75
|
+
if vm11.apache.running = true then vm10.mysql.running = true
|
76
|
+
if vm12.apache.running = true then vm10.mysql.running = true
|
77
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
include "../modules/machine/machine.sfp"
|
2
|
+
include "../modules/bonfire/bonfire.sfp"
|
3
|
+
include "../modules/vm/vm.sfp"
|
4
|
+
include "../modules/apache/apache.sfp"
|
5
|
+
include "../modules/mysql/mysql.sfp"
|
6
|
+
|
7
|
+
master isa Machine {
|
8
|
+
sfpAddress is "localhost"
|
9
|
+
|
10
|
+
bonfireEPCC isa Bonfire {
|
11
|
+
experiment is "autocloud"
|
12
|
+
location is "uk-epcc"
|
13
|
+
image_name is "BonFIRE Debian Squeeze 10G v5"
|
14
|
+
wan_name is "BonFIRE WAN"
|
15
|
+
}
|
16
|
+
bonfireINRIA isa Bonfire {
|
17
|
+
experiment is "autocloud"
|
18
|
+
location is "fr-inria"
|
19
|
+
image_name is "BonFIRE Debian Squeeze 10G v5"
|
20
|
+
wan_name is "BonFIRE WAN"
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
vm1 isa VM {
|
25
|
+
created = true
|
26
|
+
apache isa Apache {
|
27
|
+
running is true
|
28
|
+
is_load_balancer is true
|
29
|
+
}
|
30
|
+
in_cloud is master.bonfireINRIA
|
31
|
+
}
|
32
|
+
|
33
|
+
vm2 isa VM {
|
34
|
+
created = true
|
35
|
+
apache isa Apache {
|
36
|
+
running is true
|
37
|
+
}
|
38
|
+
in_cloud is master.bonfireINRIA
|
39
|
+
}
|
40
|
+
|
41
|
+
vm3 extends vm2
|
42
|
+
|
43
|
+
vm7 isa VM {
|
44
|
+
created = true
|
45
|
+
mysql isa Mysql {
|
46
|
+
running is true
|
47
|
+
}
|
48
|
+
in_cloud is master.bonfireINRIA
|
49
|
+
}
|
50
|
+
|
51
|
+
global {
|
52
|
+
if vm1.apache.running = true then {
|
53
|
+
vm2.apache.running = true
|
54
|
+
vm3.apache.running = true
|
55
|
+
}
|
56
|
+
if vm2.apache.running = true then vm7.mysql.running = true
|
57
|
+
if vm3.apache.running = true then vm7.mysql.running = true
|
58
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
include "../modules/machine/machine.sfp"
|
2
|
+
include "../modules/bonfire/bonfire.sfp"
|
3
|
+
include "../modules/vm/vm.sfp"
|
4
|
+
include "../modules/apache/apache.sfp"
|
5
|
+
include "../modules/mysql/mysql.sfp"
|
6
|
+
|
7
|
+
master isa Machine {
|
8
|
+
sfpAddress is "localhost"
|
9
|
+
|
10
|
+
bonfireEPCC isa Bonfire {
|
11
|
+
experiment is "autocloud"
|
12
|
+
location is "uk-epcc"
|
13
|
+
image_name is "BonFIRE Debian Squeeze 10G v5"
|
14
|
+
wan_name is "BonFIRE WAN"
|
15
|
+
}
|
16
|
+
bonfireINRIA isa Bonfire {
|
17
|
+
experiment is "autocloud"
|
18
|
+
location is "fr-inria"
|
19
|
+
image_name is "BonFIRE Debian Squeeze 10G v5"
|
20
|
+
wan_name is "BonFIRE WAN"
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
vm1 isa VM {
|
25
|
+
created = true
|
26
|
+
apache isa Apache {
|
27
|
+
running is true
|
28
|
+
is_load_balancer is true
|
29
|
+
}
|
30
|
+
in_cloud is master.bonfireINRIA
|
31
|
+
}
|
32
|
+
|
33
|
+
vm2 isa VM {
|
34
|
+
created = true
|
35
|
+
apache isa Apache {
|
36
|
+
running is true
|
37
|
+
}
|
38
|
+
in_cloud is master.bonfireINRIA
|
39
|
+
}
|
40
|
+
|
41
|
+
vm3 extends vm2
|
42
|
+
vm4 extends vm2
|
43
|
+
|
44
|
+
vm7 isa VM {
|
45
|
+
created = true
|
46
|
+
mysql isa Mysql {
|
47
|
+
running is true
|
48
|
+
}
|
49
|
+
in_cloud is master.bonfireINRIA
|
50
|
+
}
|
51
|
+
|
52
|
+
global {
|
53
|
+
if vm1.apache.running = true then {
|
54
|
+
vm2.apache.running = true
|
55
|
+
vm3.apache.running = true
|
56
|
+
vm4.apache.running = true
|
57
|
+
}
|
58
|
+
if vm2.apache.running = true then vm7.mysql.running = true
|
59
|
+
if vm3.apache.running = true then vm7.mysql.running = true
|
60
|
+
if vm4.apache.running = true then vm7.mysql.running = true
|
61
|
+
}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
include "../modules/machine/machine.sfp"
|
2
|
+
include "../modules/bonfire/bonfire.sfp"
|
3
|
+
include "../modules/vm/vm.sfp"
|
4
|
+
include "../modules/apache/apache.sfp"
|
5
|
+
include "../modules/mysql/mysql.sfp"
|
6
|
+
|
7
|
+
master isa Machine {
|
8
|
+
sfpAddress is "localhost"
|
9
|
+
|
10
|
+
bonfireEPCC isa Bonfire {
|
11
|
+
experiment is "autocloud"
|
12
|
+
location is "uk-epcc"
|
13
|
+
image_name is "BonFIRE Debian Squeeze 10G v5"
|
14
|
+
wan_name is "BonFIRE WAN"
|
15
|
+
}
|
16
|
+
bonfireINRIA isa Bonfire {
|
17
|
+
experiment is "autocloud"
|
18
|
+
location is "fr-inria"
|
19
|
+
image_name is "BonFIRE Debian Squeeze 10G v5"
|
20
|
+
wan_name is "BonFIRE WAN"
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
vm1 isa VM {
|
25
|
+
created = true
|
26
|
+
apache isa Apache {
|
27
|
+
running is true
|
28
|
+
is_load_balancer is true
|
29
|
+
}
|
30
|
+
in_cloud is master.bonfireINRIA
|
31
|
+
}
|
32
|
+
|
33
|
+
vm2 isa VM {
|
34
|
+
created = true
|
35
|
+
apache isa Apache {
|
36
|
+
running is true
|
37
|
+
}
|
38
|
+
in_cloud is master.bonfireINRIA
|
39
|
+
}
|
40
|
+
|
41
|
+
vm3 extends vm2
|
42
|
+
vm4 extends vm2
|
43
|
+
vm5 extends vm2
|
44
|
+
|
45
|
+
vm7 isa VM {
|
46
|
+
created = true
|
47
|
+
mysql isa Mysql {
|
48
|
+
running is true
|
49
|
+
}
|
50
|
+
in_cloud is master.bonfireINRIA
|
51
|
+
}
|
52
|
+
|
53
|
+
global {
|
54
|
+
if vm1.apache.running = true then {
|
55
|
+
vm2.apache.running = true
|
56
|
+
vm3.apache.running = true
|
57
|
+
vm4.apache.running = true
|
58
|
+
vm5.apache.running = true
|
59
|
+
}
|
60
|
+
if vm2.apache.running = true then vm7.mysql.running = true
|
61
|
+
if vm3.apache.running = true then vm7.mysql.running = true
|
62
|
+
if vm4.apache.running = true then vm7.mysql.running = true
|
63
|
+
if vm5.apache.running = true then vm7.mysql.running = true
|
64
|
+
}
|