diff options
author | Olivier Thauvin <nanardon@mageia.org> | 2010-11-04 18:25:08 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mageia.org> | 2010-11-04 18:25:08 +0000 |
commit | 7728f62f235c2637397d323d8f906878841a8d75 (patch) | |
tree | 51a4f758e9052676c8214a72da283a9a32e5cbca /modules/mga-mirrors/manifests | |
parent | 5d76a7d959d1345451e3774dc3473d60512e3fa6 (diff) | |
download | puppet-7728f62f235c2637397d323d8f906878841a8d75.tar puppet-7728f62f235c2637397d323d8f906878841a8d75.tar.gz puppet-7728f62f235c2637397d323d8f906878841a8d75.tar.bz2 puppet-7728f62f235c2637397d323d8f906878841a8d75.tar.xz puppet-7728f62f235c2637397d323d8f906878841a8d75.zip |
- add config for mga-mirrors
Diffstat (limited to 'modules/mga-mirrors/manifests')
-rw-r--r-- | modules/mga-mirrors/manifests/init.pp | 19 |
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") + } +} |