aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: 938b2094cb5cb070cb33fcf12f7dab1e5ece6ff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class bootless (
  $folder     = false,
  $repository = '',
  $owner      = 'root',
){
  file { '/usr/local/bin/bootless':
    ensure => present,
    owner  => root,
    group  => root,
    mode   => 0755,
    source => 'puppet://modules/bootless/bootless',
  }

  if $folder != false {
    exec { "bootless-init":
      command => "/usr/local/bin/bootless init ${folder} ${repository}",
      user    => $owner,
      creates => $folder,
    }
  }
}