Puppet Class: snapshot::dumps::templates

Defined in:
modules/snapshot/manifests/dumps/templates.pp

Overview



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'modules/snapshot/manifests/dumps/templates.pp', line 1

class snapshot::dumps::templates {
    $templsdir = $snapshot::dumps::dirs::templsdir

    file { "${templsdir}/download-index.html":
        ensure => 'present',
        path   => "${templsdir}/download-index.html",
        mode   => '0644',
        owner  => 'root',
        group  => 'root',
        source => 'puppet:///modules/snapshot/dumps/templates/download-index.html',
    }
    file { "${templsdir}/dvd.html":
        ensure => 'present',
        path   => "${templsdir}/dvd.html",
        mode   => '0644',
        owner  => 'root',
        group  => 'root',
        source => 'puppet:///modules/snapshot/dumps/templates/dvd.html',
    }
    file { "${templsdir}/errormail.txt":
        ensure => 'present',
        path   => "${templsdir}/errormail.txt",
        mode   => '0644',
        owner  => 'root',
        group  => 'root',
        source => 'puppet:///modules/snapshot/dumps/templates/errormail.txt',
    }
    file { "${templsdir}/feed.xml":
        ensure => 'present',
        path   => "${templsdir}/feed.xml",
        mode   => '0644',
        owner  => 'root',
        group  => 'root',
        source => 'puppet:///modules/snapshot/dumps/templates/feed.xml',
    }
    file { "${templsdir}/legal.html":
        ensure => 'present',
        path   => "${templsdir}/legal.html",
        mode   => '0644',
        owner  => 'root',
        group  => 'root',
        source => 'puppet:///modules/snapshot/dumps/templates/legal.html',
    }
    file { "${templsdir}/report.html":
        ensure => 'present',
        path   => "${templsdir}/report.html",
        mode   => '0644',
        owner  => 'root',
        group  => 'root',
        source => 'puppet:///modules/snapshot/dumps/templates/report.html',
    }

    $warning = "The files in this directory are maintained by puppet!\n"
    $location = "puppet:///modules/snapshot/dumps/templates\n"

    file { "${templsdir}/README":
        ensure  => 'present',
        path    => "${templsdir}/README",
        mode    => '0644',
        owner   => 'root',
        group   => 'root',
        content => "${warning}${location}",
    }
}