aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorDamien Lallement <dams@mageia.org>2011-02-17 12:37:19 +0000
committerDamien Lallement <dams@mageia.org>2011-02-17 12:37:19 +0000
commit08de7e2567962c01ff9152ba6ae8b5cf251ce9b6 (patch)
tree85c3509bd1c6457ac5e8f03211f81b8f83a358d6 /modules
parenta16160dd2ef4f6c90c8a08c4ddc5f10e2c5b9e0b (diff)
downloadpuppet-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.pp9
-rwxr-xr-xmodules/planet/templates/deploy_new-planet.sh1
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: "