diff options
-rw-r--r-- | modules/planet/manifests/init.pp | 9 | ||||
-rwxr-xr-x | modules/planet/templates/deploy_new-planet.sh | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/modules/planet/manifests/init.pp b/modules/planet/manifests/init.pp index dd7345e6..89239f69 100644 --- a/modules/planet/manifests/init.pp +++ b/modules/planet/manifests/init.pp @@ -18,6 +18,15 @@ class planet { content => template('planet/planet_vhosts.conf') } + file { "deploy_new-planet": + path => "/usr/local/bin/deploy_new-planet.sh", + ensure => present, + owner => root, + group => root, + mode => 755, + content => template("planet/deploy_new-planet.sh") + } + file { "/var/www/html/planet.$domain": ensure => directory, owner => planet, diff --git a/modules/planet/templates/deploy_new-planet.sh b/modules/planet/templates/deploy_new-planet.sh index 83bc88f5..0c930773 100755 --- a/modules/planet/templates/deploy_new-planet.sh +++ b/modules/planet/templates/deploy_new-planet.sh @@ -2,6 +2,7 @@ # Initialization PATH_TO_FILE=${PATH_TO_FILE:-/var/lib/planet} +PATH_TO_PLANET=${PATH_TO_FILE:-/var/www/html/planet<%= domain %>} #Ask for new locale name if no parameter given echo -n "Locale name: " |