aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mga-mirrors/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mga-mirrors/manifests/init.pp')
-rw-r--r--modules/mga-mirrors/manifests/init.pp19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/mga-mirrors/manifests/init.pp b/modules/mga-mirrors/manifests/init.pp
new file mode 100644
index 00000000..9aa0ed58
--- /dev/null
+++ b/modules/mga-mirrors/manifests/init.pp
@@ -0,0 +1,19 @@
+class mga-mirrors {
+
+ include apache::mod_fcgid
+
+ package { 'mga-mirrors':
+ ensure => installed
+ }
+
+ # add a apache vhost
+ file { "mirrors.$domain.conf":
+ path => "/etc/httpd/conf/vhosts.d/$name",
+ ensure => "present",
+ owner => root,
+ group => root,
+ mode => 644,
+ notify => Service['apache'],
+ content => template("mga-mirrors/mirrors_vhost.conf")
+ }
+}