Pascal Robert
2014-Feb-26 15:47 UTC
[Puppet Users] Provider macports is not functional on this host error
Hi, I'm working on our first Puppet deployment, and one of the things we want to install is the NRPE (Nagios agent) on our CentOS, Ubuntu and OS X boxes. The problem is: MacPorts don't get installs, and I get: Error: /Stage[main]/Nagios/Package[${nagios_plugins}]: Provider macports is not functional on this host Error: /Stage[main]/Nagios/Package[${$nrpe}]: Provider macports is not functional on this host Error: /Stage[main]/Macosx/Package[smartmontools]: Provider macports is not functional on this host Structure: site.pp: node 'agent-puppet-os-x.local' { include macosx file_line { 'apple raid': ensure => present, line => 'command[check_raid]=/opt/local/libexec/nagios/check_apple_raid 0B6D5A7C-7EF1-4775-8F73-9D8EB912560E', path => '/opt/local/etc/nrpe/nrpe.cfg', require => Package['nrpe'], } } modules/macosx/manifests/init.pp: class macosx { include macosx::macports include nagios::client } modules/macosx/manifests/macports.pp: class macosx::macports { package { 'CommandLineTools': ensure => installed, provider => pkgdmg, source => "http://192.168.1.157/CommandLineTools_10_8.dmg", } package { 'macports': ensure => installed, provider => pkgdmg, source => "https://distfiles.macports.org/MacPorts/MacPorts-2.2.1-10.8-MountainLion.pkg", require => Package['CommandLineTools'], before => Package['nrpe','nagios-plugins'], } } modules/macosx/nagios/init.pp: class nagios { include macosx::macports $provider = $operatingsystem ? { ubuntu => 'apt', centos => 'yum', darwin => 'macports', default => 'yum' } package { '${$nrpe}': ensure => installed, alias => 'nrpe', provider => $provider, } } -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/9bbabee7-d2c9-47dc-90f9-533f4bc01b7b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.