aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: 518d795f181ba04d6fd3cc268e15774e9d841173 (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
class ikiwiki(
  $www_user           = 'www-data',
  $sites_folder       = '/var/sites',
  $git_implementation = 'git',
  $git_folder         = '/var/git/repositories'
) {
  class { [ 'ikiwiki::packages', 'ikiwiki::packages::search', 'ikiwiki::packages::l10n' ]: }

  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,
  }
}