You are here

Opsview Puppet Module and REST API

2 posts / 0 new
Last post
matthewtwo
matthewtwo's picture
Opsview Puppet Module and REST API

Hello,

I'm currently trying out Opsview Pro for my company. One of the objectives that I've been tasked with is automating the addition of our nodes to Opsview using our current Puppet deployment.

So far I've been able to update the opsviewmonitored.rb provider type from the Puppet Forge module to support keywords and parents, however my boss would like us to be able to configure the Host Attributes from Puppet as well, and I've been unable to get that working so far.

I've attempted to hard code a test value into the JSON string to be sent, as a proof of concept before adding it as a Puppet parameter, but the attribute and change isn't being registered on the Opsview server when Puppet runs.

Any help regarding this would be greatly appreciated. I've attached the provider type file.

 

Thanks,

Matthew

matthewtwo
matthewtwo's picture
Re: Opsview Puppet Module and REST API

Just an example of a JSON string that would set Host Attributes on the opsview server would suffice. I'm not sure the format that I need to post the data in.