summaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: 989dcebf76b31437353d40df99b1f5b213e58370 (plain)
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
class hotglue(
  $folder = '/var/www/data'
) {

  vcsrepo { "${folder}/hotglue2":
    ensure   => present,
    provider => git,
    source   => 'https://github.com/hotglue/hotglue2.git',
    revision => '0865f1738030e277879c4fe297ad277c3c645166',
    owner    => 'root',
    group    => 'root',
  }

  file { "${folder}/hotglue2/sites":
    ensure  => directory,
    owner   => root,
    group   => root,
    mode    => '0755',
    require => Vcsrepo["${folder}/hotglue2"],
  }

  file { "${folder}/hotglue2/user-config.inc.php":
    ensure  => present,
    owner   => root,
    group   => root,
    mode    => '0644',
    source  => "puppet:///modules/hotglue/user-config.inc.php",
    require => Vcsrepo["${folder}/hotglue2"],
  }
}