Galed Friedmann
2011-Oct-05 11:48 UTC
[Puppet Users] Opsview puppet module - purging hosts from opsview
Hi all, I''m using the opsview module and the Opsviewmonitored type and it''s working just fine, I''m now trying to purge unused hosts from the Opsview monitoring (I have several hosts that dynamically go up and down). The problem is that it seems like the destroy function for opsview was not really implemented and therefore I can''t really delete hosts from there.. For example: # puppet apply -e "opsviewmonitored{ ''icap15'': ensure => absent }" err: /Stage[main]//Opsviewmonitored[icap15]/ensure: change from present to absent failed: Could not set ''absent on ensure: undefined method `destroy'' for #<Puppet::Type::Opsviewmonitored:0x7fada76aa250> at line 1 Did anybody ever dealt with purging Opsviewmonitored hosts? Maybe there is an implementation of this somewhere? I couldn''t find one on the net and I wanted to know if anybody has done it before I''m writing one myself... Thanks, Galed. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/g_nw7i12Y4QJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
devon
2011-Oct-05 17:02 UTC
[Puppet Users] Re: Opsview puppet module - purging hosts from opsview
The short answer is that this functionality has not yet been implemented. * If you''re using the module provided by Opsview, then posting a feature request on their forums *might* get some attention... * If you''re using the cparedes fork of the module (http:// forge.puppetlabs.com/cparedes/puppet_opsview) then submitting an issue (or a pull request) to the github page will likely get some attention. * If you''re using the module that I posted to the Opsview forums a while back, then you should really look at switching over to cparedes'' fork - it''s much nicer. Fwiw, implementing "ensure => absent" for the providers is something I''ve been wanting to do, but I haven''t had enough justification to spend the time doing it yet. -devon On Oct 5, 4:48 am, Galed Friedmann <galed.friedm...@onavo.com> wrote:> Hi all, > > I''m using the opsview module and the Opsviewmonitored type and it''s working > just fine, I''m now trying to purge unused hosts from the Opsview monitoring > (I have several hosts that dynamically go up and down). The problem is that > it seems like the destroy function for opsview was not really implemented > and therefore I can''t really delete hosts from there.. > > For example: > # puppet apply -e "opsviewmonitored{ ''icap15'': ensure => absent }" > err: /Stage[main]//Opsviewmonitored[icap15]/ensure: change from present to > absent failed: Could not set ''absent on ensure: undefined method `destroy'' > for #<Puppet::Type::Opsviewmonitored:0x7fada76aa250> at line 1 > > Did anybody ever dealt with purging Opsviewmonitored hosts? Maybe there is > an implementation of this somewhere? I couldn''t find one on the net and I > wanted to know if anybody has done it before I''m writing one myself... > > Thanks, > Galed.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.