Puppet version: 3.1.1
When attempting to use activemq module:
package {'openjdk-6-jre-headless':
ensure => present,
}
class {'activemq':
version => '5.8.0',
user => 'activemq',
group => 'activemq',
home => '/opt',
console => true,
}
# following block causes issues with augeas
class { 'activemq::stomp':
port => 61613,
}
I receive this error, running from node:
# puppet agent --test
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Caching catalog for xxx
Info: Applying configuration version '1368621971'
Notice: /Stage[main]/Activemq/Service[activemq]: Dependency Augeas[activemq-stomp] has failures: true
Warning: /Stage[main]/Activemq/Service[activemq]: Skipping because of failed dependencies
Error: Could not find a suitable provider for augeas
Notice: Finished catalog run in 0.41 seconds
If I run it with --debug
, this is the output (grepped for augeas, for clarity):
# puppet agent --test --debug|grep augeas -i
Debug: Failed to load library 'augeas' for feature 'augeas'
Debug: Failed to load library 'augeas' for feature 'augeas'
Debug: Puppet::Type::Augeas::ProviderAugeas: feature augeas is missing
Debug: Failed to load library 'augeas' for feature 'augeas'
Debug: Puppet::Type::Augeas::ProviderAugeas: feature augeas is missing
Debug: /Stage[main]/Activemq::Stomp/Augeas[activemq-stomp]/require: requires File[/opt/activemq]
Debug: /Stage[main]/Activemq::Stomp/Augeas[activemq-stomp]/notify: subscribes to Service[activemq]
Debug: Failed to load library 'augeas' for feature 'augeas'
Debug: Puppet::Type::Augeas::ProviderAugeas: feature augeas is missing
Debug: Failed to load library 'augeas' for feature 'augeas'
Debug: Puppet::Type::Augeas::ProviderAugeas: feature augeas is missing
Notice: /Stage[main]/Activemq/Service[activemq]: Dependency Augeas[activemq-stomp] has failures: true
Warning: /Stage[main]/Activemq/Service[activemq]: Skipping because of failed dependencies
Error: Could not find a suitable provider for augeas
Update 1: Augeas appears to be installed correctly:
# dpkg -l | grep augeas
ii augeas-lenses 0.10.0-1 all
ii augeas-tools 0.10.0-1 amd64
ii libaugeas-ruby1.8 0.4.1-1.1 amd64
ii libaugeas0 0.10.0-1 amd64
Any ideas how to fix it?
Looking at the information reported by the one of the packages, it depends of any of
libaugeas-ruby1.{8,9}
So I would guess that you are setting ruby 1.9 to be the default. This can be checked using: