diff options
-rw-r--r-- | modules/planet/manifests/init.pp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/planet/manifests/init.pp b/modules/planet/manifests/init.pp index bf46b436..7d9c7786 100644 --- a/modules/planet/manifests/init.pp +++ b/modules/planet/manifests/init.pp @@ -1,15 +1,21 @@ class planet { + user { "planet": groups => apache, comment => "User running cronjob and deploying planet software", ensure => present, managehome => true, + home => "/var/lib/planet", } + $planet_location = "/var/www/html/planet.$domain" + $planet_domain = "planet.$domain" + include apache::mod_php include apache::mod_deflate - apache::vhost_other_app { "planet.$domain": - vhost_file => "planet/02_planet_vhosts.conf", + apache::vhost_base { "$planet_domain": + location => $planet_location, + content => template('planet/02_planet_vhosts.conf') } file { "/var/www/html/planet.$domain": |