PDK's puppet 5 doesn't come with any augeas lenses
PDK 1.12.0 comes with 3 different puppet versions: 4.x, 5.x and 6.x
Two of these Puppet versions have an augeas provider built-in, however, there are no lenses distributed with PDK.
To Reproduce
augeas { 'activate gpgcheck':
incl => '/etc/yum.conf',
lens => 'Yum.lns',
context => '/files/etc/yum.conf/main/',
changes => 'set gpgcheck 1',
}
Trying to apply this will result in puppet complaining that,
Warning: Augeas[activate gpgcheck](provider=augeas): Loading failed for one or more files, see debug for /augeas//error output
Debug: Augeas[activate gpgcheck](provider=augeas): /augeas/load/Xfm/error = Can not find Yum.lns
a quick check into the RPM reveals that this is sadly true:
% rpm -ql pdk | grep "\.aug"
Expected behavior
I'd much rather this worked…
Additional context
- Your PDK installation method: rpm
- Your PDK version: 1.12.0
- Your operating system / platform: Red Hat Enterprise Linux 7.6.
now, to use strace, to find out where the lenses are expected:
/opt/puppetlabs/pdk/share/augeas/lenses/yum.aug
/opt/puppetlabs/pdk/share/augeas/lenses/dist/yum.aug
Yeah, we have been trying to reduce the package file count as much as possible but it's probably worth keeping the lenses around, they aren't that big:
https://github.com/puppetlabs/pdk-vanagon/blob/master/configs/components/pdk-runtime.rb#L30
This issue has been marked stale because it is open with no recent activity. The PDK Team is actively prioritizing existing bugs and new features, if this issue is still important to you please comment and we will add this to our backlog to complete.
augeas lenses are still being deleted: https://github.com/puppetlabs/pdk-vanagon/blob/main/configs/components/pdk-runtime.rb#L45
This issue has been marked stale because it is open with no recent activity. The PDK Team is actively prioritizing existing bugs and new features, if this issue is still important to you please comment and we will add this to our backlog to complete.
i just checked again, and augeas lenses are still being deleted: https://github.com/puppetlabs/pdk-vanagon/blob/main/configs/components/pdk-runtime.rb#L45
maybe we should move this issue to pdk-vanagon? or maybe i should just open a PR to remove that line…
This issue has been marked stale because it is open with no recent activity. The PDK Team is actively prioritizing existing bugs and new features, if this issue is still important to you please comment and we will add this to our backlog to complete.
@igalic I'm going to look in to this