aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/websites/manifests/maintenance.pp
blob: 0005c7953c0e127e677ed0d4775c15b8b78bbd49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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',
    }
}