On Tue, Sep 11, 2012 at 12:22 PM, Kayode Odeyemi <drey...@gmail.com> wrote: > On Tuesday, 11 September 2012 19:35:27 UTC+1, Daniel Pittman wrote: >> On Tue, Sep 11, 2012 at 11:16 AM, Kayode Odeyemi <dre...@gmail.com> wrote: >> >> > I will like to have puppet agent as WSDL service that can be consumed >> > from >> > an external application. I want to be able to have access to puppet >> > agents >> > via some URL from an external application. > > I'm providing a management interface to manage DNS and other services > running on nodes. Some of the things I want to be able to do from the > management interface are; > > change network address > change nameserver > Install and configure DNS server > Ping a host machine > Install BIRD > Start an instance of BIRD > change domain name > change hostname > stop dns server > start dns server > > So from a click of a button I want to be able to start or stop a DNS server > etc.
That doesn't actually map super-well to the design of Puppet, since it doesn't instantly react to change, it reacts on a schedule. You can obviously make the latency low by running all the time, but it is still non-zero. The things you want to do are also not done by talking directly to the agent - you do those by having the catalog that is compiled for the node assert the things you want. So, you are really looking for a way to configure catalog compilation to do what you want, not to talk to the agent. Take a look at the documentation on https://docs.puppetlabs.com/ around the DSL and modules to figure that out; the best match for what you want is an ENC, or "External Node Classifier", which you would have to provide yourself. All that said, if you really want *instant* results, you want to look at MCollective: http://docs.puppetlabs.com/#mcollectivemcollective -- Daniel Pittman ⎋ Puppet Labs Developer – http://puppetlabs.com ♲ Made with 100 percent post-consumer electrons -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.