Opsview puppet module - purging hosts from opsview

78 views
Skip to first unread message

Galed Friedmann

unread,
Oct 5, 2011, 7:48:22 AM10/5/11
to puppet...@googlegroups.com
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.

devon

unread,
Oct 5, 2011, 1:02:17 PM10/5/11
to Puppet Users
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
Reply all
Reply to author
Forward
0 new messages