Using puppet for the configuration of a custom appliance

57 views
Skip to first unread message

varun umesh

unread,
Apr 6, 2015, 4:09:41 PM4/6/15
to puppet...@googlegroups.com

I am planning to use puppet for the configuration of a custom network appliance. My main problem is i am unable to install puppet on the appliance, as it is not supported. I have access to the rest api's exposed by the appliance. So can i use puppet to make the rest api calls and try to do the configurations as and when a parameter changes? Could anybody suggest me a good way to handle this problem?

Thanks!

lupin...@gmail.com

unread,
Apr 6, 2015, 11:38:29 PM4/6/15
to puppet...@googlegroups.com


On Tuesday, April 7, 2015 at 8:09:41 AM UTC+12, varun umesh wrote:

I am planning to use puppet for the configuration of a custom network appliance. My main problem is i am unable to install puppet on the appliance, as it is not supported. I have access to the rest api's exposed by the appliance. So can i use puppet to make the rest api calls and try to do the configurations as and when a parameter changes? Could anybody suggest me a good way to handle this problem?

Thanks!


Hello,

You can use a slave node ( which you can install Puppet and attached the module ), your module will do the call to ReST API of your appliance.

Cheers
Lupin

varun umesh

unread,
Apr 7, 2015, 2:05:56 PM4/7/15
to puppet...@googlegroups.com
Hello Lupin-

Thank you for the update! Could you point me for any article, so that i can take a look at how exactly it could be done.

Thanks!

-varun

lupin...@gmail.com

unread,
Apr 8, 2015, 3:11:11 AM4/8/15
to puppet...@googlegroups.com


On Wednesday, April 8, 2015 at 6:05:56 AM UTC+12, varun umesh wrote:
Hello Lupin-

Thank you for the update! Could you point me for any article, so that i can take a look at how exactly it could be done.

Thanks!

-varun

Hi,

I can't find any link but I won't be just treat it as normal puppet resource if you can create  a type/provider for it would be better else you just sort to 'exec' resource.

E.g if you go for exec route

exec { 'call_to_api':
   command => 'curl -X -H url'
   x...x
}

Hth,
Lupin 

Thomas Müller

unread,
Apr 8, 2015, 7:44:31 AM4/8/15
to puppet...@googlegroups.com


Am Montag, 6. April 2015 22:09:41 UTC+2 schrieb varun umesh:

I am planning to use puppet for the configuration of a custom network appliance. My main problem is i am unable to install puppet on the appliance, as it is not supported. I have access to the rest api's exposed by the appliance. So can i use puppet to make the rest api calls and try to do the configurations as and when a parameter changes? Could anybody suggest me a good way to handle this problem?


IMHO sounds like a device: 


try searching the web for "puppet device" 

- Thomas
Reply all
Reply to author
Forward
0 new messages