From: Silvio Rhatto Date: Sat, 19 Jan 2013 18:07:01 +0000 (-0200) Subject: Upgrading for 2.7 compatibility --config X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=bdc4c8b05c52b0bb3695047f3b21333e66eab27c;p=puppet-hotglue.git Upgrading for 2.7 compatibility --config --- diff --git a/manifests/init.pp b/manifests/init.pp index 1d3775f..dd39e37 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,9 +1,8 @@ -class hotglue { - case $apache_www_folder { - '': { $apache_www_folder = "/var/www" } - } +class hotglue( + $folder = ${apache::www_folder} +) { - vcsrepo { "${apache_www_folder}/hotglue2": + vcsrepo { "${folder}/hotglue2": ensure => present, provider => git, source => 'https://github.com/hotglue/hotglue2.git', @@ -12,20 +11,20 @@ class hotglue { group => 'root', } - file { "${apache_www_folder}/hotglue2/sites": + file { "${folder}/hotglue2/sites": ensure => directory, owner => root, group => root, mode => 0755, - require => Vcsrepo["${apache_www_folder}/hotglue2"], + require => Vcsrepo["${folder}/hotglue2"], } - file { "${apache_www_folder}/hotglue2/user-config.inc.php": + file { "${folder}/hotglue2/user-config.inc.php": ensure => present, owner => root, group => root, mode => 0644, source => "puppet:///modules/hotglue/user-config.inc.php", - require => Vcsrepo["${apache_www_folder}/hotglue2"], + require => Vcsrepo["${folder}/hotglue2"], } }