[Puppet Users] function that returns parameters from a webservice

2016-06-10 Thread Pearl Raj
I am trying to write a module containing a function that returns parameters from a webservice - http://localhost:5000/app/api/nodes/node_id. This function should return a hash of configuration settings specific to that host. How do I do this? I am using puppet 3.0. pseudo code is as follows n

Re: [Puppet Users] function that returns parameters from a webservice

2016-06-10 Thread Pearl Raj
paramx => $config['lvs::real_server']['paramx'] } class appx::agent($config) { class {'lvs'::agent': param1 => $config['lvs::agent']['param1'] paramx => $config['lvs::agent']['paramx'] } My doubt is ab

[Puppet Users] common template instead of two

2016-06-27 Thread Pearl Raj
Hi, While setting up persistant load balancer configuration in linux virtul server, I ended up with following two templates. On the load balancer: In lvs/manifests/ifcfg-lo_lb.erb DEVICE=eth1:lb IPADDR= NETMASK=255.255.255.0 ONBOOT=yes NM_CONTROLLED=no On the app servers: In lvs/manifests/i