Move encapic config to /etc/encapi (#569)

encapic 0.4.0 reads /etc/encapi/encapic.conf ahead of the legacy RPM-owned /etc/encapic/encapic.conf, so puppet-managed config no longer collides with the packaged %config(noreplace) file.

- default profiles::puppet::encapic config_dir to /etc/encapi
- bump the encapic pin on puppet masters to 0.4.0

Reviewed-on: #569
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
This commit was merged in pull request #569.
This commit is contained in:
2026-11-08 22:16:31 +11:00
committed by BenVincent
parent 8e2497d612
commit 3726210d38
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ profiles::puppet::enc::repo: https://git.service.au-syd1.consul/unkinben/puppet-
# Deep-merged with the entries in roles/infra/puppet.yaml.
profiles::packages::include:
encapic:
ensure: '0.2.0'
ensure: '0.4.0'
certmanager:
ensure: '0.2.0'
sshsignhost:
+3 -3
View File
@@ -5,14 +5,14 @@
# config so the encapi endpoint can change without repackaging.
class profiles::puppet::encapic (
Stdlib::HTTPUrl $encapi_url,
Stdlib::AbsolutePath $config_dir = '/etc/encapic',
Stdlib::AbsolutePath $config_dir = '/etc/encapi',
String $config_name = 'encapic.conf',
String $owner = 'root',
String $group = 'root',
) {
# The RPM ships this file as %config(noreplace), so puppet must write it only
# once the package is present or the install overwrites it.
# encapic >= 0.4.0 reads this path ahead of the RPM-owned /etc/encapic one;
# order after the package so the shim exists before the config does.
file { $config_dir:
ensure => directory,
mode => '0755',