summaryrefslogtreecommitdiff
path: root/manifests/linux.pp
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2015-02-24 14:34:39 -0500
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2015-02-24 14:38:39 -0500
commit0bb70b28a7c7679d0e07fd75230d40203c0d53b5 (patch)
treeacd91c59fea86768f81d98e262ed1677f646fa47 /manifests/linux.pp
parentbeae5a608dd1b1d370917896d853a6b53ad73a45 (diff)
parent8584340c2aeac7d97a78b8303ab377b5049b80c2 (diff)
Merge branch 'master' of git://git.puppet.immerda.ch/module-puppet
Conflicts: files/master/config.ru files/master/puppet.conf manifests/base.pp manifests/centos.pp manifests/cron.pp manifests/cron/base.pp manifests/cron/linux.pp manifests/debian.pp manifests/init.pp manifests/linux.pp manifests/master/linux.pp manifests/master/package/debian.pp manifests/puppetmaster/base.pp manifests/puppetmaster/centos.pp manifests/puppetmaster/checklastrun.pp manifests/puppetmaster/checklastrun/disable.pp manifests/puppetmaster/cleanup_reports.pp manifests/puppetmaster/cleanup_reports/disable.pp manifests/puppetmaster/debian.pp manifests/puppetmaster/package.pp manifests/puppetmaster/package/base.pp manifests/puppetmaster/passenger.pp
Diffstat (limited to 'manifests/linux.pp')
-rw-r--r--manifests/linux.pp18
1 files changed, 9 insertions, 9 deletions
diff --git a/manifests/linux.pp b/manifests/linux.pp
index e752788..7bf3331 100644
--- a/manifests/linux.pp
+++ b/manifests/linux.pp
@@ -1,13 +1,12 @@
+# puppet on linux
class puppet::linux inherits puppet::base {
- if !$puppet_ensure_version { $puppet_ensure_version = 'installed' }
package { 'puppet':
- ensure => $puppet_ensure_version,
+ ensure => $puppet::ensure_version,
}
- if !$facter_ensure_version { $facter_ensure_version = 'installed' }
package { 'facter':
- ensure => $facter_ensure_version,
+ ensure => $puppet::ensure_facter_version,
}
Service['puppet']{
@@ -15,10 +14,11 @@ class puppet::linux inherits puppet::base {
}
file { '/etc/cron.d/puppetd':
- ensure => absent
- }
- # For backwards compatibility, remove this so that the cron is not duplicated
- file { '/etc/cron.d/puppetd.cron':
- ensure => absent
+ source => ['puppet:///modules/site_puppet/cron.d/puppetd',
+ "puppet:///modules/puppet/cron.d/puppetd.${::operatingsystem}",
+ 'puppet:///modules/puppet/cron.d/puppetd' ],
+ owner => root,
+ group => 0,
+ mode => '0644',
}
}