Sha256: 44270c23e7b5e7e3273092ba93da483999cf686f6fd8da74843dbf2ff52ecd30

Contents?: true

Size: 1.87 KB

Versions: 3

Compression:

Stored size: 1.87 KB

Contents

include "modules/node/node.sfp"
include "modules/vm/vm.sfp"
include "modules/apache/apache.sfp"
include "modules/mysql/mysql.sfp"
include "modules/wordpresscluster/wordpresscluster.sfp"
include "modules/bonfire/bonfire.sfp"

proxy isa Node {
	sfpAddress is "localhost"
	epcc isa Bonfire {
		experiment is "autocloud"
		location is "uk-epcc"
		image_name is "BonFIRE Debian Squeeze 10G v5"
		wan_name is "BonFIRE WAN"
	}
}

vmlb isa VM {
	created = true
	apache isa Apache {
		running is true
		is_load_balancer is true
		lb_members is (vmapp1,vmapp2,vmapp3,vmapp4,vmapp5)
	}
	in_cloud is proxy.epcc
}
vmapp1 extends vmlb {
	wp_web isa WordpressWeb {
		installed is true
		http is vmapp1.apache
		database is vmdb.wp_db
	}
}
vmapp2 extends vmlb {
	wp_web isa WordpressWeb {
		installed is true
		http is vmapp2.apache
		database is vmdb.wp_db
	}
}
vmapp3 extends vmlb {
	wp_web isa WordpressWeb {
		installed is true
		http is vmapp3.apache
		database is vmdb.wp_db
	}
}
vmapp4 extends vmlb {
	wp_web isa WordpressWeb {
		installed is true
		http is vmapp4.apache
		database is vmdb.wp_db
	}
}
vmapp5 extends vmlb {
	wp_web isa WordpressWeb {
		installed is true
		http is vmapp5.apache
		database is vmdb.wp_db
	}
}
vmdb isa VM {
	created = true
	mysql isa Mysql {
		running is true
	}
	wp_db isa WordpressDB {
		installed is true
		mysql is vmdb.mysql
	}
	in_cloud is proxy.epcc
}

global {
	if vmlb.apache.running = true then {
		vmapp1.apache.running = true
		vmapp2.apache.running = true
		vmapp3.apache.running = true
		vmapp4.apache.running = true
		vmapp5.apache.running = true
	}
	if vmapp1.apache.running = true then vmdb.mysql.running = true
	if vmapp2.apache.running = true then vmdb.mysql.running = true
	if vmapp3.apache.running = true then vmdb.mysql.running = true
	if vmapp4.apache.running = true then vmdb.mysql.running = true
	if vmapp5.apache.running = true then vmdb.mysql.running = true
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nuri-0.5.4 examples/bonfire.sfp
nuri-0.5.3 examples/bonfire.sfp
nuri-0.5.2 examples/bonfire.sfp