Skip to content

Commit

Permalink
Stop managing services.d dir in /opt/puppetlabs
Browse files Browse the repository at this point in the history
This directory is ensured by the puppetserver package and since
puppetserver 2.5 the directory that users are supposed to use is in
/etc. This code appears tom be a leftover from when the code supported
both < 2.5 and >= 2.5 in 68c2d50.
  • Loading branch information
ekohl committed Mar 24, 2023
1 parent 7bb1178 commit 87500e4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
9 changes: 0 additions & 9 deletions manifests/server/puppetserver.pp
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,6 @@
content => template('puppet/server/puppetserver/services.d/ca.cfg.erb'),
}

unless $facts['os']['family'] == 'FreeBSD' {
file { '/opt/puppetlabs/server/apps/puppetserver/config':
ensure => directory,
}
file { '/opt/puppetlabs/server/apps/puppetserver/config/services.d':
ensure => directory,
}
}

file { "${server_puppetserver_dir}/conf.d/ca.conf":
ensure => file,
content => template('puppet/server/puppetserver/conf.d/ca.conf.erb'),
Expand Down
2 changes: 0 additions & 2 deletions spec/classes/puppet_server_puppetserver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@
.with_context('/files/etc/rc.conf')
}
else
it { should contain_file('/opt/puppetlabs/server/apps/puppetserver/config').with_ensure('directory') }
it { should contain_file('/opt/puppetlabs/server/apps/puppetserver/config/services.d').with_ensure('directory') }
it {
should contain_augeas('puppet::server::puppetserver::bootstrap')
.with_changes('set BOOTSTRAP_CONFIG \'"/etc/custom/puppetserver/services.d/,/opt/puppetlabs/server/apps/puppetserver/config/services.d/"\'')
Expand Down

0 comments on commit 87500e4

Please sign in to comment.