summaryrefslogtreecommitdiff
path: root/manifests/linux.pp
blob: a217f660cf3cd8481c02d06c24d0d0d1c9853c9f (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 puppet::linux inherits puppet::base {

  if !$puppet_ensure_version { $puppet_ensure_version = 'installed' }
  package{ 'puppet':
    ensure => $puppet_ensure_version,
  }

  if !$facter_ensure_version { $facter_ensure_version = 'installed' }
  package{ 'facter':
    ensure => $facter_ensure_version,
  }

  # package bc needed for cron job
  include bc
  Service['puppet']{
    require => Package[puppet],
  }

  file{'/etc/cron.d/puppetd.cron':
    source => [ "puppet:///modules/puppet/cron.d/puppetd.${operatingsystem}",
                "puppet:///modules/puppet/cron.d/puppetd" ],
    owner => root, group => 0, mode => 0644,
  }
}