nuri 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +12 -3
- data/VERSION +1 -1
- data/bin/nuri +10 -7
- data/nuri.gemspec +17 -17
- metadata +19 -94
- data/examples/.gitignore +0 -4
- data/examples/bonfire.sfp +0 -87
- data/examples/bonfire/epcc.sfp +0 -43
- data/examples/bonfire/epcc0.sfp +0 -49
- data/examples/bonfire/epcc2.sfp +0 -52
- data/examples/bonfire/epcc2a.sfp +0 -25
- data/examples/bonfire/inria.sfp +0 -72
- data/examples/bonfire/inria0.sfp +0 -49
- data/examples/bonfire/inria2.sfp +0 -71
- data/examples/bonfire/inria2a.sfp +0 -44
- data/examples/bonfire/inria2b.sfp +0 -54
- data/examples/bonfire/inria2c.sfp +0 -62
- data/examples/bonfire/inria2d.sfp +0 -71
- data/examples/bonfire/inria2e.sfp +0 -80
- data/examples/bonfire/main.sfp +0 -33
- data/examples/bonfire/old/bonfire-1-1-1.sfp +0 -76
- data/examples/bonfire/old/bonfire-1-10-1.sfp +0 -77
- data/examples/bonfire/old/bonfire-1-2-1.sfp +0 -58
- data/examples/bonfire/old/bonfire-1-3-1.sfp +0 -61
- data/examples/bonfire/old/bonfire-1-4-1.sfp +0 -64
- data/examples/bonfire/old/bonfire-1-5-1.sfp +0 -67
- data/examples/bonfire/old/bonfire-1-6-1.sfp +0 -82
- data/examples/bonfire/old/bonfire-1-7-1.sfp +0 -82
- data/examples/bonfire/old/bonfire-1-8-1.sfp +0 -79
- data/examples/bonfire/old/bonfire-1-9-1.sfp +0 -83
- data/examples/bonfire/old/wp-test1a.sfp +0 -38
- data/examples/bonfire/old/wp-test1b.sfp +0 -18
- data/examples/bonfire/old/wp-test1c.sfp +0 -7
- data/examples/bonfire/old/wp-test2.sfp +0 -47
- data/examples/bonfire/old3/bonfire-epcc.sfp +0 -57
- data/examples/bonfire/old3/bonfire-inria.sfp +0 -72
- data/examples/bonfire/old3/bonfire-master.sfp +0 -18
- data/examples/bonfire/old3/bonfire.sfp +0 -23
- data/examples/bonfire/old3/bonfire2.sfp +0 -49
- data/examples/bonfire/old3/bonfire3.sfp +0 -76
- data/examples/bonfire/old3/bonfire4.sfp +0 -78
- data/examples/bonfire/old3/bonfire5.sfp +0 -34
- data/examples/bonfire/old3/bonfire5b.sfp +0 -84
- data/examples/bonfire/old3/hpvm6.sfp +0 -22
- data/examples/bonfire/old3/model.json +0 -1
- data/examples/bonfire/old3/test0.sfp +0 -16
- data/examples/bonfire/old3/test1.sfp +0 -5
- data/examples/bonfire/old3/test10.sfp +0 -5
- data/examples/bonfire/old3/test2.sfp +0 -18
- data/examples/bonfire/old3/test3.sfp +0 -10
- data/examples/bonfire/old3/test4.sfp +0 -11
- data/examples/bonfire/old3/test5.sfp +0 -18
- data/examples/bonfire/old3/test6.sfp +0 -19
- data/examples/bonfire/old3/test7.sfp +0 -34
- data/examples/bonfire/old3/test8.sfp +0 -5
- data/examples/bonfire/old3/test9.sfp +0 -16
- data/examples/bonfire/old3/wordpress-test-cluster.sfp +0 -38
- data/examples/bonfire/old3/wordpress-test.sfp +0 -22
- data/examples/bonfire/old3/wp-test-2.sfp +0 -49
- data/examples/bonfire/test.sfp +0 -13
- data/examples/hadoop1.sfp +0 -21
- data/examples/hadoop2.sfp +0 -21
- data/examples/hpcloud.sfp +0 -18
- data/examples/mockcloud/apache2.sfp +0 -14
- data/examples/mockcloud/generator.rb +0 -22
- data/examples/mockcloud/generator.rb.bak +0 -66
- data/examples/mockcloud/hadoop2.sfp.template +0 -25
- data/examples/mockcloud/ping.rb +0 -38
- data/examples/mockcloud/run.rb +0 -17
- data/examples/openstack/openstack-hadoop1-cluster.sfp +0 -37
- data/examples/openstack/openstack-hadoop2-cluster.sfp +0 -39
- data/examples/test.inc +0 -0
- data/examples/test.sfp +0 -11
- data/examples/v2/apache.sfp +0 -30
- data/examples/v2/aptpackage.sfp +0 -6
- data/examples/v2/mock1.sfp +0 -12
- data/examples/v2/package.sfp +0 -22
- data/examples/v2/service.sfp +0 -94
- data/examples/v2/tarpackage.sfp +0 -5
- data/examples/wordpress.sfp +0 -41
data/examples/bonfire/epcc0.sfp
DELETED
@@ -1,49 +0,0 @@
|
|
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
|
-
}
|
9
|
-
vm2 isa VM {
|
10
|
-
created = false
|
11
|
-
}
|
12
|
-
/*vm3 extends vm2
|
13
|
-
vm4 extends vm2
|
14
|
-
vm5 extends vm2
|
15
|
-
vm6 extends vm2
|
16
|
-
vm7 extends vm2
|
17
|
-
vm8 extends vm2
|
18
|
-
vm9 extends vm2
|
19
|
-
vm11 extends vm2
|
20
|
-
vm12 extends vm2*/
|
21
|
-
vm10 isa VM {
|
22
|
-
created = false
|
23
|
-
}
|
24
|
-
|
25
|
-
global {
|
26
|
-
if vm1.apache.running = true then {
|
27
|
-
vm2.apache.running = true
|
28
|
-
/*vm3.apache.running = true
|
29
|
-
vm4.apache.running = true
|
30
|
-
vm5.apache.running = true
|
31
|
-
vm6.apache.running = true
|
32
|
-
vm7.apache.running = true
|
33
|
-
vm8.apache.running = true
|
34
|
-
vm9.apache.running = true
|
35
|
-
vm11.apache.running = true
|
36
|
-
vm12.apache.running = true*/
|
37
|
-
}
|
38
|
-
|
39
|
-
if vm2.apache.running = true then vm10.mysql.running = true
|
40
|
-
/*if vm3.apache.running = true then vm10.mysql.running = true
|
41
|
-
if vm4.apache.running = true then vm10.mysql.running = true
|
42
|
-
if vm5.apache.running = true then vm10.mysql.running = true
|
43
|
-
if vm6.apache.running = true then vm10.mysql.running = true
|
44
|
-
if vm7.apache.running = true then vm10.mysql.running = true
|
45
|
-
if vm8.apache.running = true then vm10.mysql.running = true
|
46
|
-
if vm9.apache.running = true then vm10.mysql.running = true
|
47
|
-
if vm11.apache.running = true then vm10.mysql.running = true
|
48
|
-
if vm12.apache.running = true then vm10.mysql.running = true*/
|
49
|
-
}
|
data/examples/bonfire/epcc2.sfp
DELETED
@@ -1,52 +0,0 @@
|
|
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
|
-
/*vm3 extends vm2
|
15
|
-
vm4 extends vm2
|
16
|
-
vm5 extends vm2
|
17
|
-
vm6 extends vm2
|
18
|
-
vm7 extends vm2
|
19
|
-
vm8 extends vm2
|
20
|
-
vm9 extends vm2
|
21
|
-
vm11 extends vm2
|
22
|
-
vm12 extends vm2*/
|
23
|
-
vm10 isa VM {
|
24
|
-
created = false
|
25
|
-
mysql isa Mysql
|
26
|
-
}
|
27
|
-
|
28
|
-
global {
|
29
|
-
if vm1.apache.running = true then {
|
30
|
-
vm2.apache.running = true
|
31
|
-
/*vm3.apache.running = true
|
32
|
-
vm4.apache.running = true
|
33
|
-
vm5.apache.running = true
|
34
|
-
vm6.apache.running = true
|
35
|
-
vm7.apache.running = true
|
36
|
-
vm8.apache.running = true
|
37
|
-
vm9.apache.running = true
|
38
|
-
vm11.apache.running = true
|
39
|
-
vm12.apache.running = true*/
|
40
|
-
}
|
41
|
-
|
42
|
-
if vm2.apache.running = true then vm10.mysql.running = true
|
43
|
-
/*if vm3.apache.running = true then vm10.mysql.running = true
|
44
|
-
if vm4.apache.running = true then vm10.mysql.running = true
|
45
|
-
if vm5.apache.running = true then vm10.mysql.running = true
|
46
|
-
if vm6.apache.running = true then vm10.mysql.running = true
|
47
|
-
if vm7.apache.running = true then vm10.mysql.running = true
|
48
|
-
if vm8.apache.running = true then vm10.mysql.running = true
|
49
|
-
if vm9.apache.running = true then vm10.mysql.running = true
|
50
|
-
if vm11.apache.running = true then vm10.mysql.running = true
|
51
|
-
if vm12.apache.running = true then vm10.mysql.running = true*/
|
52
|
-
}
|
data/examples/bonfire/epcc2a.sfp
DELETED
@@ -1,25 +0,0 @@
|
|
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
|
-
}
|
data/examples/bonfire/inria.sfp
DELETED
@@ -1,72 +0,0 @@
|
|
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
|
-
}
|
data/examples/bonfire/inria0.sfp
DELETED
@@ -1,49 +0,0 @@
|
|
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
|
-
}
|
data/examples/bonfire/inria2.sfp
DELETED
@@ -1,71 +0,0 @@
|
|
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
|
-
}
|
@@ -1,44 +0,0 @@
|
|
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
|
-
}
|
@@ -1,54 +0,0 @@
|
|
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
|
-
}
|
@@ -1,62 +0,0 @@
|
|
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
|
-
}
|