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
|
class hotglue {
case $apache_www_folder {
'': { $apache_www_folder = "/var/www" }
}
vcsrepo { "${apache_www_folder}/hotglue2":
ensure => present,
provider => git,
source => 'https://github.com/hotglue/hotglue2.git',
revision => 'ddd9ba49767e9fe92297160f26d72bf46b916b26',
owner => 'root',
group => 'root',
}
file { "${apache_www_folder}/hotglue2/sites":
ensure => directory,
owner => root,
group => root,
mode => 0755,
require => Vcsrepo["${apache_www_folder}/hotglue2"],
}
file { "${apache_www_folder}/hotglue2/user-config.inc.php":
ensure => present,
owner => root,
group => root,
mode => 0644,
source => "puppet:///modules/hotglue/user-config.inc.php",
require => Vcsrepo["${apache_www_folder}/hotglue2"],
}
}
|