nuri 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +6 -0
  3. data/.travis.yml +12 -0
  4. data/CHANGELOG +146 -0
  5. data/Gemfile +3 -0
  6. data/LICENSE +28 -0
  7. data/README.md +64 -0
  8. data/Rakefile +15 -0
  9. data/VERSION +1 -0
  10. data/bin/delete_modules +11 -0
  11. data/bin/install_agent +18 -0
  12. data/bin/install_module +65 -0
  13. data/bin/nuri +519 -0
  14. data/bin/nuri.old +183 -0
  15. data/bin/push_model +16 -0
  16. data/examples/.gitignore +3 -0
  17. data/examples/bonfire.sfp +95 -0
  18. data/examples/bonfire/epcc.sfp +43 -0
  19. data/examples/bonfire/epcc0.sfp +49 -0
  20. data/examples/bonfire/epcc2.sfp +52 -0
  21. data/examples/bonfire/epcc2a.sfp +25 -0
  22. data/examples/bonfire/inria.sfp +72 -0
  23. data/examples/bonfire/inria0.sfp +49 -0
  24. data/examples/bonfire/inria2.sfp +71 -0
  25. data/examples/bonfire/inria2a.sfp +44 -0
  26. data/examples/bonfire/inria2b.sfp +54 -0
  27. data/examples/bonfire/inria2c.sfp +62 -0
  28. data/examples/bonfire/inria2d.sfp +71 -0
  29. data/examples/bonfire/inria2e.sfp +80 -0
  30. data/examples/bonfire/main.sfp +33 -0
  31. data/examples/bonfire/old/bonfire-1-1-1.sfp +76 -0
  32. data/examples/bonfire/old/bonfire-1-10-1.sfp +77 -0
  33. data/examples/bonfire/old/bonfire-1-2-1.sfp +58 -0
  34. data/examples/bonfire/old/bonfire-1-3-1.sfp +61 -0
  35. data/examples/bonfire/old/bonfire-1-4-1.sfp +64 -0
  36. data/examples/bonfire/old/bonfire-1-5-1.sfp +67 -0
  37. data/examples/bonfire/old/bonfire-1-6-1.sfp +82 -0
  38. data/examples/bonfire/old/bonfire-1-7-1.sfp +82 -0
  39. data/examples/bonfire/old/bonfire-1-8-1.sfp +79 -0
  40. data/examples/bonfire/old/bonfire-1-9-1.sfp +83 -0
  41. data/examples/bonfire/old/wp-test1a.sfp +38 -0
  42. data/examples/bonfire/old/wp-test1b.sfp +18 -0
  43. data/examples/bonfire/old/wp-test1c.sfp +7 -0
  44. data/examples/bonfire/old/wp-test2.sfp +47 -0
  45. data/examples/bonfire/old3/bonfire-epcc.sfp +57 -0
  46. data/examples/bonfire/old3/bonfire-inria.sfp +72 -0
  47. data/examples/bonfire/old3/bonfire-master.sfp +18 -0
  48. data/examples/bonfire/old3/bonfire.sfp +23 -0
  49. data/examples/bonfire/old3/bonfire2.sfp +49 -0
  50. data/examples/bonfire/old3/bonfire3.sfp +76 -0
  51. data/examples/bonfire/old3/bonfire4.sfp +78 -0
  52. data/examples/bonfire/old3/bonfire5.sfp +34 -0
  53. data/examples/bonfire/old3/bonfire5b.sfp +84 -0
  54. data/examples/bonfire/old3/hpvm6.sfp +22 -0
  55. data/examples/bonfire/old3/model.json +1 -0
  56. data/examples/bonfire/old3/test0.sfp +16 -0
  57. data/examples/bonfire/old3/test1.sfp +5 -0
  58. data/examples/bonfire/old3/test10.sfp +5 -0
  59. data/examples/bonfire/old3/test2.sfp +18 -0
  60. data/examples/bonfire/old3/test3.sfp +10 -0
  61. data/examples/bonfire/old3/test4.sfp +11 -0
  62. data/examples/bonfire/old3/test5.sfp +18 -0
  63. data/examples/bonfire/old3/test6.sfp +19 -0
  64. data/examples/bonfire/old3/test7.sfp +34 -0
  65. data/examples/bonfire/old3/test8.sfp +5 -0
  66. data/examples/bonfire/old3/test9.sfp +16 -0
  67. data/examples/bonfire/old3/wordpress-test-cluster.sfp +38 -0
  68. data/examples/bonfire/old3/wordpress-test.sfp +22 -0
  69. data/examples/bonfire/old3/wp-test-2.sfp +49 -0
  70. data/examples/bonfire/test.sfp +13 -0
  71. data/examples/generator.rb +66 -0
  72. data/examples/hadoop2.sfp +20 -0
  73. data/examples/hpcloud.sfp +18 -0
  74. data/examples/run.rb +17 -0
  75. data/examples/test.inc +0 -0
  76. data/examples/test.sfp +11 -0
  77. data/lib/naas/d3.js +5 -0
  78. data/lib/naas/d3.v3.min.js +5 -0
  79. data/lib/naas/index.css +0 -0
  80. data/lib/naas/index.html +18 -0
  81. data/lib/naas/index.js +18 -0
  82. data/lib/naas/jquery-1.10.2.min.js +6 -0
  83. data/lib/naas/jquery.js +6 -0
  84. data/lib/naas/naas.rb +160 -0
  85. data/lib/nuri.rb +62 -0
  86. data/lib/nuri/choreographer.rb +151 -0
  87. data/lib/nuri/constraint_helper.rb +9 -0
  88. data/lib/nuri/directory.rb +40 -0
  89. data/lib/nuri/master.rb +725 -0
  90. data/lib/nuri/net_helper.rb +65 -0
  91. data/lib/nuri/orchestrator.rb +224 -0
  92. data/lib/nuri/server.rb +212 -0
  93. data/modules/.gitignore +4 -0
  94. data/modules/apache/apache.rb +255 -0
  95. data/modules/apache/apache.rb.old +167 -0
  96. data/modules/apache/apache.sfp +146 -0
  97. data/modules/apache/apache.sfp.future +100 -0
  98. data/modules/apache/load_balancer +20 -0
  99. data/modules/apache/model.json +1 -0
  100. data/modules/apache/test.sfp +8 -0
  101. data/modules/aptpackage/aptpackage.rb +82 -0
  102. data/modules/aptpackage/aptpackage.sfp +5 -0
  103. data/modules/bonfire/.gitignore +2 -0
  104. data/modules/bonfire/README.md +12 -0
  105. data/modules/bonfire/bonfire.rb +60 -0
  106. data/modules/bonfire/bonfire.sfp +9 -0
  107. data/modules/bonfire/config.yml +4 -0
  108. data/modules/bonfire/helper.rb +149 -0
  109. data/modules/bonfire/stresstest.rb +144 -0
  110. data/modules/bonfire/test.sfp +8 -0
  111. data/modules/client/client.rb +22 -0
  112. data/modules/client/client.sfp +14 -0
  113. data/modules/cloud/cloud.rb +11 -0
  114. data/modules/cloud/cloud.sfp +26 -0
  115. data/modules/file/file.rb +91 -0
  116. data/modules/file/file.sfp +9 -0
  117. data/modules/hadoop1/core-site.xml +17 -0
  118. data/modules/hadoop1/hadoop-env.sh +55 -0
  119. data/modules/hadoop1/hadoop1.rb +384 -0
  120. data/modules/hadoop1/hadoop1.sfp +93 -0
  121. data/modules/hadoop1/hdfs-site.xml +16 -0
  122. data/modules/hadoop1/mapred-site.xml +17 -0
  123. data/modules/hadoop2/core-site.xml +31 -0
  124. data/modules/hadoop2/hadoop-env.sh +77 -0
  125. data/modules/hadoop2/hadoop2.rb +401 -0
  126. data/modules/hadoop2/hadoop2.sfp +114 -0
  127. data/modules/hadoop2/hdfs-site.xml +47 -0
  128. data/modules/hadoop2/mapred-site.xml +71 -0
  129. data/modules/hadoop2/ports +14 -0
  130. data/modules/hadoop2/yarn-env.sh +112 -0
  131. data/modules/hadoop2/yarn-site.xml +107 -0
  132. data/modules/hpcloud/.gitignore +2 -0
  133. data/modules/hpcloud/README.md +16 -0
  134. data/modules/hpcloud/config.yml +3 -0
  135. data/modules/hpcloud/example.sfp +18 -0
  136. data/modules/hpcloud/hpcloud.rb +241 -0
  137. data/modules/hpcloud/hpcloud.sfp +22 -0
  138. data/modules/hpcloud/test.sfp +5 -0
  139. data/modules/install_module +65 -0
  140. data/modules/machine/machine.rb +95 -0
  141. data/modules/machine/machine.sfp +9 -0
  142. data/modules/mockcloud/mockcloud.rb +20 -0
  143. data/modules/mockcloud/mockcloud.sfp +6 -0
  144. data/modules/mysql/mysql.rb +118 -0
  145. data/modules/mysql/mysql.sfp +38 -0
  146. data/modules/mysql/test.sfp +3 -0
  147. data/modules/node/node.rb +8 -0
  148. data/modules/node/node.sfp +7 -0
  149. data/modules/object/object.rb +7 -0
  150. data/modules/object/object.sfp +1 -0
  151. data/modules/os/os.rb +38 -0
  152. data/modules/os/os.sfp +11 -0
  153. data/modules/package/package.rb +26 -0
  154. data/modules/package/package.sfp +22 -0
  155. data/modules/package/test.sfp +6 -0
  156. data/modules/service/model.json +1 -0
  157. data/modules/service/service.rb +50 -0
  158. data/modules/service/service.sfp +46 -0
  159. data/modules/service/test.sfp +6 -0
  160. data/modules/tarpackage/tarpackage.rb +93 -0
  161. data/modules/tarpackage/tarpackage.sfp +5 -0
  162. data/modules/vm/vm.rb +8 -0
  163. data/modules/vm/vm.sfp +18 -0
  164. data/modules/wordpress/wordpress.rb +98 -0
  165. data/modules/wordpress/wordpress.sfp +34 -0
  166. data/modules/wordpresscluster/wordpresscluster.rb +150 -0
  167. data/modules/wordpresscluster/wordpresscluster.sfp +74 -0
  168. data/nuri.gemspec +26 -0
  169. metadata +281 -0
@@ -0,0 +1,25 @@
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
+ vm1 isa VM {
7
+ created = false
8
+ apache isa Apache
9
+ }
10
+ vm2 isa VM {
11
+ created = false
12
+ apache isa Apache
13
+ }
14
+ vm10 isa VM {
15
+ created = false
16
+ mysql isa Mysql
17
+ }
18
+
19
+ global {
20
+ if vm1.apache.running = true then {
21
+ vm2.apache.running = true
22
+ }
23
+
24
+ if vm2.apache.running = true then vm10.mysql.running = true
25
+ }
@@ -0,0 +1,72 @@
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
+ //lb_members is ( vm2x )
12
+ }
13
+ in_cloud is proxy.inria
14
+ }
15
+ vm2x isa VM {
16
+ created = true
17
+ apache isa Apache {
18
+ running is true
19
+ }
20
+ wp_web isa WordpressWeb {
21
+ installed is true
22
+ http is vm2x.apache
23
+ database is vm10x.wp_db
24
+ }
25
+ in_cloud is proxy.inria
26
+ }
27
+ /*vm3x extends vm2x
28
+ vm4x extends vm2x
29
+ vm5x extends vm2x
30
+ vm6x extends vm2x
31
+ vm7x extends vm2x
32
+ vm8x extends vm2x
33
+ vm9x extends vm2x
34
+ vm11x extends vm2x
35
+ vm12x extends vm2x*/
36
+ vm10x isa VM {
37
+ created = true
38
+ mysql isa Mysql {
39
+ running is true
40
+ }
41
+ wp_db isa WordpressDB {
42
+ installed is true
43
+ mysql is vm10x.mysql
44
+ }
45
+ in_cloud is proxy.inria
46
+ }
47
+
48
+ global {
49
+ if vm1x.apache.running = true then {
50
+ vm2x.apache.running = true
51
+ /*vm3x.apache.running = true
52
+ vm4x.apache.running = true
53
+ vm5x.apache.running = true
54
+ vm6x.apache.running = true
55
+ vm7x.apache.running = true
56
+ vm8x.apache.running = true
57
+ vm9x.apache.running = true
58
+ vm11x.apache.running = true
59
+ vm12x.apache.running = true*/
60
+ }
61
+
62
+ if vm2x.apache.running = true then vm10x.mysql.running = true
63
+ /*if vm3x.apache.running = true then vm10x.mysql.running = true
64
+ if vm4x.apache.running = true then vm10x.mysql.running = true
65
+ if vm5x.apache.running = true then vm10x.mysql.running = true
66
+ if vm6x.apache.running = true then vm10x.mysql.running = true
67
+ if vm7x.apache.running = true then vm10x.mysql.running = true
68
+ if vm8x.apache.running = true then vm10x.mysql.running = true
69
+ if vm9x.apache.running = true then vm10x.mysql.running = true
70
+ if vm11x.apache.running = true then vm10x.mysql.running = true
71
+ if vm12x.apache.running = true then vm10x.mysql.running = true*/
72
+ }
@@ -0,0 +1,49 @@
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 = false
8
+ }
9
+ vm2x isa VM {
10
+ created = false
11
+ }
12
+ /*vm3x extends vm2x
13
+ vm4x extends vm2x
14
+ vm5x extends vm2x
15
+ vm6x extends vm2x
16
+ vm7x extends vm2x
17
+ vm8x extends vm2x
18
+ vm9x extends vm2x
19
+ vm11x extends vm2x
20
+ vm12x extends vm2x*/
21
+ vm10x isa VM {
22
+ created = false
23
+ }
24
+
25
+ global {
26
+ if vm1x.apache.running = true then {
27
+ vm2x.apache.running = true
28
+ /*vm3x.apache.running = true
29
+ vm4x.apache.running = true
30
+ vm5x.apache.running = true
31
+ vm6x.apache.running = true
32
+ vm7x.apache.running = true
33
+ vm8x.apache.running = true
34
+ vm9x.apache.running = true
35
+ vm11x.apache.running = true
36
+ vm12x.apache.running = true*/
37
+ }
38
+
39
+ if vm2x.apache.running = true then vm10x.mysql.running = true
40
+ /*if vm3x.apache.running = true then vm10x.mysql.running = true
41
+ if vm4x.apache.running = true then vm10x.mysql.running = true
42
+ if vm5x.apache.running = true then vm10x.mysql.running = true
43
+ if vm6x.apache.running = true then vm10x.mysql.running = true
44
+ if vm7x.apache.running = true then vm10x.mysql.running = true
45
+ if vm8x.apache.running = true then vm10x.mysql.running = true
46
+ if vm9x.apache.running = true then vm10x.mysql.running = true
47
+ if vm11x.apache.running = true then vm10x.mysql.running = true
48
+ if vm12x.apache.running = true then vm10x.mysql.running = true*/
49
+ }
@@ -0,0 +1,71 @@
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
+ vm4x extends vm2x
28
+ vm5x extends vm2x
29
+ vm6x extends vm2x
30
+ vm7x extends vm2x
31
+ vm8x extends vm2x
32
+ vm9x extends vm2x
33
+ vm11x extends vm2x
34
+ vm12x extends vm2x*/
35
+ vm10x isa VM {
36
+ created = true
37
+ mysql isa Mysql {
38
+ running is true
39
+ }
40
+ wp_db isa WordpressDB {
41
+ installed is true
42
+ mysql is vm10x.mysql
43
+ }
44
+ in_cloud is proxy.epcc
45
+ }
46
+
47
+ global {
48
+ if vm1x.apache.running = true then {
49
+ vm2x.apache.running = true
50
+ /*vm3x.apache.running = true
51
+ vm4x.apache.running = true
52
+ vm5x.apache.running = true
53
+ vm6x.apache.running = true
54
+ vm7x.apache.running = true
55
+ vm8x.apache.running = true
56
+ vm9x.apache.running = true
57
+ vm11x.apache.running = true
58
+ vm12x.apache.running = true*/
59
+ }
60
+
61
+ if vm2x.apache.running = true then vm10x.mysql.running = true
62
+ /*if vm3x.apache.running = true then vm10x.mysql.running = true
63
+ if vm4x.apache.running = true then vm10x.mysql.running = true
64
+ if vm5x.apache.running = true then vm10x.mysql.running = true
65
+ if vm6x.apache.running = true then vm10x.mysql.running = true
66
+ if vm7x.apache.running = true then vm10x.mysql.running = true
67
+ if vm8x.apache.running = true then vm10x.mysql.running = true
68
+ if vm9x.apache.running = true then vm10x.mysql.running = true
69
+ if vm11x.apache.running = true then vm10x.mysql.running = true
70
+ if vm12x.apache.running = true then vm10x.mysql.running = true*/
71
+ }
@@ -0,0 +1,44 @@
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
+ vm10x isa VM {
27
+ created = true
28
+ mysql isa Mysql {
29
+ running is true
30
+ }
31
+ wp_db isa WordpressDB {
32
+ installed is true
33
+ mysql is vm10x.mysql
34
+ }
35
+ in_cloud is proxy.epcc
36
+ }
37
+
38
+ global {
39
+ if vm1x.apache.running = true then {
40
+ vm2x.apache.running = true
41
+ }
42
+
43
+ if vm2x.apache.running = true then vm10x.mysql.running = true
44
+ }
@@ -0,0 +1,54 @@
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
+ //installed is true
10
+ running is true
11
+ is_load_balancer is true
12
+ }
13
+ in_cloud is proxy.epcc
14
+ }
15
+ vm2x isa VM {
16
+ created = true
17
+ apache isa Apache {
18
+ running is true
19
+ }
20
+ wp_web isa WordpressWeb {
21
+ installed is true
22
+ http is vm2x.apache
23
+ database is vm10x.wp_db
24
+ }
25
+ in_cloud is proxy.epcc
26
+ }
27
+ vm3x extends vm2x {
28
+ wp_web isa WordpressWeb {
29
+ installed is true
30
+ http is vm3x.apache
31
+ database is vm10x.wp_db
32
+ }
33
+ }
34
+ vm10x isa VM {
35
+ created = true
36
+ mysql isa Mysql {
37
+ running is true
38
+ }
39
+ wp_db isa WordpressDB {
40
+ installed is true
41
+ mysql is vm10x.mysql
42
+ }
43
+ in_cloud is proxy.epcc
44
+ }
45
+
46
+ global {
47
+ if vm1x.apache.running = true then {
48
+ vm2x.apache.running = true
49
+ vm3x.apache.running = true
50
+ }
51
+
52
+ if vm2x.apache.running = true then vm10x.mysql.running = true
53
+ if vm3x.apache.running = true then vm10x.mysql.running = true
54
+ }
@@ -0,0 +1,62 @@
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
+ vm10x isa VM {
41
+ created = true
42
+ mysql isa Mysql {
43
+ running is true
44
+ }
45
+ wp_db isa WordpressDB {
46
+ installed is true
47
+ mysql is vm10x.mysql
48
+ }
49
+ in_cloud is proxy.epcc
50
+ }
51
+
52
+ global {
53
+ if vm1x.apache.running = true then {
54
+ vm2x.apache.running = true
55
+ vm3x.apache.running = true
56
+ vm4x.apache.running = true
57
+ }
58
+
59
+ if vm2x.apache.running = true then vm10x.mysql.running = true
60
+ if vm3x.apache.running = true then vm10x.mysql.running = true
61
+ if vm4x.apache.running = true then vm10x.mysql.running = true
62
+ }
@@ -0,0 +1,71 @@
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
+ vm10x isa VM {
48
+ created = true
49
+ mysql isa Mysql {
50
+ running is true
51
+ }
52
+ wp_db isa WordpressDB {
53
+ installed is true
54
+ mysql is vm10x.mysql
55
+ }
56
+ in_cloud is proxy.epcc
57
+ }
58
+
59
+ global {
60
+ if vm1x.apache.running = true then {
61
+ vm2x.apache.running = true
62
+ vm3x.apache.running = true
63
+ vm4x.apache.running = true
64
+ vm5x.apache.running = true
65
+ }
66
+
67
+ if vm2x.apache.running = true then vm10x.mysql.running = true
68
+ if vm3x.apache.running = true then vm10x.mysql.running = true
69
+ if vm4x.apache.running = true then vm10x.mysql.running = true
70
+ if vm5x.apache.running = true then vm10x.mysql.running = true
71
+ }