[Puppet Users] Re: How to use variables in a puppet class

2014-07-24 Thread CD
/os/$basearch/ Regards, CD On Thursday, July 24, 2014 5:07:51 PM UTC+10, Vikas Kumar wrote: > > Hello All, > > I have a kickstart server which I use to deploy many minor versions of > CentOS/RHEL 5 and 6 for both 32 and 64 Bit OS. > > I have lots of yum repository files. Fo

[Puppet Users] Deploying HA cluster with pacemaker using Puppet

2014-07-24 Thread CD
automated cluster deployment with Puppet would you share that information please. Thanks, CD -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-user

[Puppet Users] Re: Using Virtual Resources and create_resource combination

2014-02-03 Thread CD
Thanks for the information John. On Friday, January 24, 2014 1:23:43 AM UTC+11, jcbollinger wrote: > > > > On Wednesday, January 22, 2014 8:19:15 PM UTC-6, CD wrote: >> >> Hi John, >> >> Thanks a lot for the information. I checked the variables and could

Re: [Puppet Users] Using hiera to separate code and data

2014-01-22 Thread CD
"interface":"eth0", "ipaddress":"10.10.1.2", "netmask":"255.255.255.0" } } } On Wednesday, January 15, 2014 3:56:57 AM UTC+10, Felix.Frank wrote: > > On 01/12/2014 09:15 AM, CD wrote: > > 1. hiera($varia

[Puppet Users] Re: Using Virtual Resources and create_resource combination

2014-01-22 Thread CD
dns2 => $dns2, domain => $domain, } Though I haven't dive deep in module code it seems having title variable repeated with value "eth0" when it runs for each server seems. Thanks, Chaminda On Friday, January 17, 2014 1:58:51 AM UTC+10, jcbollinger wrote: &g

[Puppet Users] Re: Using Virtual Resources and create_resource combination

2014-01-15 Thread CD
;:"192.168.1.1", "netmask":"255.255.255.0" } } } But I still like to know is it possible to use the create_resources and virtual resources together where I need to pass hieradata also. Thanks, CD On Thursday, January 16, 2014 1:57:41 PM UTC+10, CD wrote: &g

[Puppet Users] Using Virtual Resources and create_resource combination

2014-01-15 Thread CD
a for the host in concern $nics = hiera("networks",{}) # Configure networks based on the parameters create_resources(network::if::static, $nics, $nic_default) } Above class is included in base node and individual nodes has extended from the base node /etc/puppet/manifests/nodes.

[Puppet Users] Re: Help on Hiera automate

2014-01-13 Thread CD
Hi Alessandro, I think if you specify $users it has all the content of children but in a single string. Don't know whether this is what you need. try: $users=hiera('users') notify { $users: } Regards, CD On Tuesday, January 14, 2014 11:02:29 AM UTC+10, alessandro mazzoli wr

[Puppet Users] Using hiera to separate code and data

2014-01-13 Thread CD
gt; $nics[$name]["ip"] } Specific problems I face: 1. hiera($variable) returns a hash but for resource to iterate it requires and array. Any idea how to convert it to an array 2. How to specify ip so that it get the corresponding value from eth0 or eth1. Many Thanks, CD -- You