summaryrefslogtreecommitdiff
path: root/manifests/linux.pp
blob: d8095f88740d4318cca17d3803de7588ce4dc158 (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://$server/modules/puppet/cron.d/puppetd.${operatingsystem}",
                "puppet://$server/modules/puppet/cron.d/puppetd" ],
    owner => root, group => 0, mode => 0644,
  }
}