diff options
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', + } +} |