diff options
author | Damien Lallement <dams@mageia.org> | 2011-02-17 12:37:19 +0000 |
---|---|---|
committer | Damien Lallement <dams@mageia.org> | 2011-02-17 12:37:19 +0000 |
commit | 08de7e2567962c01ff9152ba6ae8b5cf251ce9b6 (patch) | |
tree | 85c3509bd1c6457ac5e8f03211f81b8f83a358d6 /modules | |
parent | a16160dd2ef4f6c90c8a08c4ddc5f10e2c5b9e0b (diff) | |
download | puppet-08de7e2567962c01ff9152ba6ae8b5cf251ce9b6.tar puppet-08de7e2567962c01ff9152ba6ae8b5cf251ce9b6.tar.gz puppet-08de7e2567962c01ff9152ba6ae8b5cf251ce9b6.tar.bz2 puppet-08de7e2567962c01ff9152ba6ae8b5cf251ce9b6.tar.xz puppet-08de7e2567962c01ff9152ba6ae8b5cf251ce9b6.zip |
update path to planet and add the deployment of scrip via puppet
Diffstat (limited to 'modules')
-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: " |