From 4e5bc7b1312b886c4702688733298b366e014e8e Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sat, 4 May 2013 13:51:46 +0000 Subject: Add websites::maintenance --- deployment/websites/manifests/maintenance.pp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 deployment/websites/manifests/maintenance.pp (limited to 'deployment/websites/manifests') 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', + } +} -- cgit v1.2.1