From 08de7e2567962c01ff9152ba6ae8b5cf251ce9b6 Mon Sep 17 00:00:00 2001 From: Damien Lallement Date: Thu, 17 Feb 2011 12:37:19 +0000 Subject: update path to planet and add the deployment of scrip via puppet --- modules/planet/manifests/init.pp | 9 +++++++++ modules/planet/templates/deploy_new-planet.sh | 1 + 2 files changed, 10 insertions(+) (limited to 'modules') 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: " -- cgit v1.2.1