aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/planet/manifests/init.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/planet/manifests/init.pp b/modules/planet/manifests/init.pp
new file mode 100644
index 00000000..813fa6d7
--- /dev/null
+++ b/modules/planet/manifests/init.pp
@@ -0,0 +1,17 @@
+#TODO:
+# - add the creation of the user 'planet' in puppet
+# - add the user 'planet' to the 'apache' group (usermod -a -G apache blog)
+class blog {
+ include apache::mod_php
+
+ apache::vhost_other_app { "planet.$domain":
+ vhost_file => "planet/02_planet_vhosts.conf",
+ }
+
+ file { "/var/www/html/planet.mageia.org":
+ ensure => directory,
+ owner => apache,
+ group => blog,
+ mode => 644,
+ }
+}