aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: b2c25b2d224bbf278fc4b8619b6ad0f0c0947418 (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
class ikiwiki(
  $sites_folder       = '/var/sites',
  $git_implementation = 'gitolite',
  $www_user           = 'www-data'
) {
  package { [ "ikiwiki", "po4a" ]:
    ensure => installed,
  }

  file { "/usr/local/sbin/ikiwiki-deploy":
    ensure  => present,
    content => template('ikiwiki/deploy.sh.erb'),
    owner   => root,
    group   => root,
    mode    => 755,
  }

  file { "/usr/local/sbin/ikiwiki-refresh":
    ensure  => present,
    content => template('ikiwiki/refresh.sh.erb'),
    owner   => root,
    group   => root,
    mode    => 755,
  }

}