voxpupuli / puppet-augeas

Helper for using augeas with puppet
Apache License 2.0
44 stars 82 forks source link

ruby-augeas package is not present with puppet-agent #79

Closed func0der closed 3 years ago

func0der commented 4 years ago

Installing puppet 5.5.19 on a DEbian stretch like this:

wget -O puppet5-release-stretch.deb https://apt.puppetlabs.com/puppet5-release-stretch.deb
dpkg -i puppet5-release-stretch.deb

apt update && apt install -y puppet-agent 
puppet module install camptocamp-augeas --version 1.9.0

default.pp:

include ::augeas
augeas { '/etc/foo':
        provider => augeas,
}
$ puppet apply default.pp 
Warning: /etc/puppetlabs/code/environments/production/modules/augeas/data/common.yaml: file does not contain a valid yaml hash
Notice: Compiled catalog for foo.local in environment production in 0.28 seconds
Error: /Stage[main]/Main/Augeas[/etc/foo]: Provider augeas is not functional on this host

This seems to be related to this ominous AIO puppet package that you included this piece of code for:

if versioncmp($::puppetversion, '4.0.0') >= 0 {

I can not test it with Puppet 4 anymore, but with Puppet 5 it seems broken.

The missing package in question is ruby-augeas. After that is installed, everything works fine.

How can we solve this?

raphink commented 4 years ago

I'm guessing it's the stretch packages that are broken, as I've never seen this before with AIO packages.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.