example42 / puppet-monit

Puppet module for Monit
Other
3 stars 12 forks source link

Monit module not working with puppet 5 #21

Open bobweston opened 6 years ago

bobweston commented 6 years ago

Just wanted to alert you folks that this module has problems with puppet 5.

86) role::search on ubuntu-14.04-x86_64 it should behave like a standard ubuntu role should contain Class[profile_base::ubuntu]
Failure/Error: classname = scope.namespaces.first

Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, undefined method `namespaces' for Scope(Class[Monit]):Puppet::Parser::Scope at /interact/interact-puppet/spec/fixtures/modules/monit/manifests/init.pp:292:32 on node runner-7c1b7f96-project-392-concurrent-1q6gln.gitlab-ci.svc.cluster.local
alvagante commented 6 years ago

Thanks for the notice, the module was written in Puppet 2 times and is not supported nor intended to be used any more (at least in modern Puppet setups). Consider using other modules or eventually tiny puppet to manage monit.

dagobert commented 5 years ago

Using Debian 9 is no problem.