aboutsummaryrefslogtreecommitdiffstats
path: root/modules/planet
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-04-02 11:24:40 +0000
committerMichael Scherer <misc@mageia.org>2012-04-02 11:24:40 +0000
commit86ed741826a8a2f4bdd738cf35c96021927dc85b (patch)
tree866827f93a21830aa01395f0268bbc8ff986f1d7 /modules/planet
parent3010c0835a42c0f107a7b028f58fdd7ba0dcfd87 (diff)
downloadpuppet-86ed741826a8a2f4bdd738cf35c96021927dc85b.tar
puppet-86ed741826a8a2f4bdd738cf35c96021927dc85b.tar.gz
puppet-86ed741826a8a2f4bdd738cf35c96021927dc85b.tar.bz2
puppet-86ed741826a8a2f4bdd738cf35c96021927dc85b.tar.xz
puppet-86ed741826a8a2f4bdd738cf35c96021927dc85b.zip
fix some puppet-lint warning
Diffstat (limited to 'modules/planet')
-rw-r--r--modules/planet/manifests/init.pp34
1 files changed, 17 insertions, 17 deletions
diff --git a/modules/planet/manifests/init.pp b/modules/planet/manifests/init.pp
index 14930899..81abb0e2 100644
--- a/modules/planet/manifests/init.pp
+++ b/modules/planet/manifests/init.pp
@@ -1,37 +1,37 @@
class planet {
- user { "planet":
- groups => apache,
- comment => "Planet Mageia",
- home => "/var/lib/planet",
+ user { 'planet':
+ groups => 'apache',
+ comment => 'Planet Mageia',
+ home => '/var/lib/planet',
}
- $location = "/var/www/vhosts/planet.$domain"
- $vhost = "planet.$domain"
+ $vhost = "planet.$::domain"
+ $location = "/var/www/vhosts/$vhost"
include apache::mod::php
include apache::mod::deflate
- apache::vhost::base { "$vhost":
+ apache::vhost::base { $vhost:
location => $location,
- content => template('planet/planet_vhosts.conf')
+ content => template('planet/planet_vhosts.conf')
}
- local_script { "deploy_new-planet.sh":
- content => template("planet/deploy_new-planet.sh")
+ local_script { 'deploy_new-planet.sh':
+ content => template('planet/deploy_new-planet.sh')
}
- file { "$location":
+ file { $location:
ensure => directory,
- owner => planet,
- group => apache,
+ owner => 'planet',
+ group => 'apache',
}
file { "$location/index.php":
- owner => planet,
- group => apache,
- mode => 755,
- content => template("planet/index.php")
+ owner => 'planet',
+ group => 'apache',
+ mode => '0755',
+ content => template('planet/index.php')
}
package { ['php-iconv']: }