diff options
author | Michael Scherer <misc@mageia.org> | 2012-01-08 18:09:18 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-01-08 18:09:18 +0000 |
commit | d5bff2ba89ed464d5a05f8af09677474db61aca6 (patch) | |
tree | 4b0c4aac9e9e05e8110f041fa01addae2c577553 /modules/planet/manifests | |
parent | 1403da52f0620a1267d867273adcb8f36d6547e9 (diff) | |
download | puppet-d5bff2ba89ed464d5a05f8af09677474db61aca6.tar puppet-d5bff2ba89ed464d5a05f8af09677474db61aca6.tar.gz puppet-d5bff2ba89ed464d5a05f8af09677474db61aca6.tar.bz2 puppet-d5bff2ba89ed464d5a05f8af09677474db61aca6.tar.xz puppet-d5bff2ba89ed464d5a05f8af09677474db61aca6.zip |
cleaning, refactoring and removal of default already set elsewhere
Diffstat (limited to 'modules/planet/manifests')
-rw-r--r-- | modules/planet/manifests/init.pp | 51 |
1 files changed, 17 insertions, 34 deletions
diff --git a/modules/planet/manifests/init.pp b/modules/planet/manifests/init.pp index 2432f54c..be53444d 100644 --- a/modules/planet/manifests/init.pp +++ b/modules/planet/manifests/init.pp @@ -1,66 +1,49 @@ class planet { user { "planet": - groups => apache, - comment => "Planet Mageia", - ensure => present, - managehome => true, - home => "/var/lib/planet", + groups => apache, + comment => "Planet Mageia", + ensure => present, + managehome => true, + home => "/var/lib/planet", } - $planet_location = "/var/www/vhosts/planet.$domain" - $planet_domain = "planet.$domain" + $location = "/var/www/vhosts/planet.$domain" + $vhost = "planet.$domain" include apache::mod_php include apache::mod_deflate - apache::vhost_base { "$planet_domain": - location => $planet_location, + + apache::vhost_base { "$vhost": + location => $location, 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, + local_script { "deploy_new-planet.sh": content => template("planet/deploy_new-planet.sh") } file { "$planet_location": - ensure => directory, - owner => planet, - group => apache, - mode => 644, + ensure => directory, + owner => planet, + group => apache, } - file { "index": - path => "$planet_location/index.php", - ensure => present, + file { "$planet_location/index.php": owner => planet, group => apache, mode => 755, content => template("planet/index.php") } - package { ['php-iconv']: - ensure => installed - } + package { ['php-iconv']: } class files_backup inherits base { file { "/var/lib/planet/backup": ensure => directory, - owner => root, - group => root, - mode => 644, } - file { "backup_planet-files": - path => "/usr/local/bin/backup_planet-files.sh", - ensure => present, - owner => root, - group => root, - mode => 755, + local_script { "backup_planet-files.sh": content => template("blog/backup_planet-files.sh") } |