Sha256: e7954981493aa7e071b34c674923823cf08a185cdaa1d2e551719cfcf45de6d4
Contents?: true
Size: 1.42 KB
Versions: 5
Compression:
Stored size: 1.42 KB
Contents
include "../apache/apache.sfp" include "../mysql/mysql.sfp" schema WordpressCluster schema WordpressDB extends WordpressCluster { installed : Bool mysql isref Mysql final db_name = "wordpress" final db_user = "wordpress" final db_password = "password" sub install(mysql: Mysql) { condition { this.installed != true mysql.running = true mysql.public = true } effect { this.installed = true this.mysql = mysql } } sub uninstall (mysql: Mysql) { condition { this.mysql = mysql mysql.running = true this.installed = true } effect { this.installed = false } } } schema WordpressWeb extends WordpressCluster { installed : Bool http isref Apache database isref WordpressDB final path = "/var/www/wp" final source_url = "http://wordpress.org/latest.tar.gz" sub install (http: Apache, database: WordpressDB) { condition { this.installed != true http.installed = true http.running = false http.php_module = true http.php_mysql_module = true database.installed = true } effect { this.installed = true this.http = http this.database = database } } sub uninstall (http: Apache, database: WordpressDB) { condition { this.installed = true this.http = http http.running = false http.installed = true this.database = database database.installed = true } effect { this.installed = false this.http = null this.database = null } } }
Version data entries
5 entries across 5 versions & 1 rubygems