diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-05-04 13:51:46 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-05-04 13:51:46 +0000 |
commit | 4e5bc7b1312b886c4702688733298b366e014e8e (patch) | |
tree | ce352ab2a712a52d55440d2a094957ffdbe0a2f2 /deployment/websites/manifests | |
parent | c2c40ccf9172d74aa39c2cb5cdb3d8d93d709ca1 (diff) | |
download | puppet-4e5bc7b1312b886c4702688733298b366e014e8e.tar puppet-4e5bc7b1312b886c4702688733298b366e014e8e.tar.gz puppet-4e5bc7b1312b886c4702688733298b366e014e8e.tar.bz2 puppet-4e5bc7b1312b886c4702688733298b366e014e8e.tar.xz puppet-4e5bc7b1312b886c4702688733298b366e014e8e.zip |
Add websites::maintenance
Diffstat (limited to 'deployment/websites/manifests')
-rw-r--r-- | deployment/websites/manifests/maintenance.pp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/deployment/websites/manifests/maintenance.pp b/deployment/websites/manifests/maintenance.pp new file mode 100644 index 00000000..0005c795 --- /dev/null +++ b/deployment/websites/manifests/maintenance.pp @@ -0,0 +1,22 @@ +class websites::maintenance { + $vhostdir = "$websites::base::webdatadir/maintenance" + + file {$vhostdir: + ensure => 'directory', + mode => '0755', + owner => 'root', + group => 'root', + } + + file {"$vhostdir/index.html": + ensure => 'present', + mode => '0644', + owner => 'root', + group => 'root', + source => 'puppet:///deployment/websites/maintenance.html', + } + + apache::vhost::other_app { "maintenance.$::domain": + vhost_file => 'websites/vhost_maintenance.conf', + } +} |