|
40 | 40 | # Only used when environments == directory
|
41 | 41 | $environmentpath = "${confdir}/environments"
|
42 | 42 |
|
| 43 | + if versioncmp($::puppetversion, "4.0.0") >= 0 { |
| 44 | + $puppet_conf = '/etc/puppetlabs/puppet/puppet.conf' |
| 45 | + $puppet_run_command = '/opt/puppetlabs/bin/puppet agent --no-daemonize --onetime --logdest syslog > /dev/null 2>&1', |
| 46 | + } else { |
| 47 | + $puppet_conf = '/etc/puppet/puppet.conf' |
| 48 | + $puppet_run_command = '/usr/bin/puppet agent --no-daemonize --onetime --logdest syslog > /dev/null 2>&1', |
| 49 | + } |
| 50 | + |
43 | 51 | case $::osfamily {
|
44 | 52 | 'RedHat': {
|
45 | 53 | $puppet_master_package = 'puppet-server'
|
|
48 | 56 | $puppet_agent_package = 'puppet'
|
49 | 57 | $package_provider = undef # falls back to system default
|
50 | 58 | $puppet_defaults = '/etc/sysconfig/puppet'
|
51 |
| - $puppet_conf = '/etc/puppet/puppet.conf' |
52 | 59 | $puppet_vardir = '/var/lib/puppet'
|
53 | 60 | $puppet_ssldir = '/var/lib/puppet/ssl'
|
54 | 61 | $passenger_package = 'mod_passenger'
|
|
61 | 68 | $puppet_agent_service = 'puppet'
|
62 | 69 | $puppet_agent_package = 'puppet'
|
63 | 70 | $package_provider = undef # falls back to system default
|
64 |
| - $puppet_conf = '/etc/puppet/puppet.conf' |
65 | 71 | $puppet_vardir = '/var/lib/puppet'
|
66 | 72 | $puppet_ssldir = '/var/lib/puppet/ssl'
|
67 | 73 | $passenger_package = 'rubygem-passenger-apache2'
|
|
74 | 80 | $puppet_agent_package = 'puppet'
|
75 | 81 | $package_provider = undef # falls back to system default
|
76 | 82 | $puppet_defaults = '/etc/default/puppet'
|
77 |
| - $puppet_conf = '/etc/puppet/puppet.conf' |
78 | 83 | $puppet_vardir = '/var/lib/puppet'
|
79 | 84 | $puppet_ssldir = '/var/lib/puppet/ssl'
|
80 | 85 | $passenger_package = 'libapache2-mod-passenger'
|
|
94 | 99 | $puppet_agent_package = 'puppet-3.8.5.dmg'
|
95 | 100 | $puppet_facter_package = 'facter.2.4.5.dmg'
|
96 | 101 | $package_provider = 'pkgdmg'
|
97 |
| - $puppet_conf = '/etc/puppet/puppet.conf' |
98 | 102 | $puppet_vardir = '/var/lib/puppet'
|
99 | 103 | $puppet_ssldir = '/etc/puppet/ssl'
|
100 | 104 | }
|
|
0 commit comments