[Puppet Users] Resource ordering only using Hiera?

2013-12-13 Thread Joseph Swick
} else { File[$resource1_name] -> Service[$resource2_name] } } default: {fail("Unknown resource type '${resource2_type}' for \$resource2_type")} } } default: {fail("Unknown resource type '${resource1_type}' for \$resource1_type")} } Thank you for taking the time to wade through my lengthy question. -- Joseph Swick Operations Engineer Meltwater Group signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] Re: Resource ordering only using Hiera?

2013-12-16 Thread Joseph Swick
On 12/16/2013 10:59 AM, jcbollinger wrote: > > > On Friday, December 13, 2013 3:56:50 PM UTC-6, Joseph Swick wrote: > > [...] > > What am I missing to get Puppet to evaluate the $resourceX_type >> variables as a resource type [e.g: File, Service, et

Re: [Puppet Users] Roles/profile design

2013-12-23 Thread Joseph Swick
n: http://docs.puppetlabs.com/hiera/1/puppet.html#assigning-classes-to-nodes-with-hiera-hierainclude There are some gotchas that come up with the hiera merge behavior depending on how complex you're hiera layout becomes. For example, we had to set the hiera merge_behavior to deeper for us to

Re: [Puppet Users] Roles/profile design

2013-12-26 Thread Joseph Swick
ue as we're not using any other ENCs with our current configuration. -- Joseph Swick Operations Engineer Meltwater Group signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] Re: Run stages of virtual resources

2014-01-06 Thread Joseph Swick
e did provide a way to require repos with our virtual package definitions, so I was able to remove the resource chaining and still have the desired result. -- Joseph Swick Operations Engineer Meltwater Group signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] Notify service in one class from other class

2014-01-13 Thread Joseph Swick
tems in different stages. I try to avoid stages whenever possible and do resource ordering within the main puppet stage to ensure items are created in the correct order. The few places I do use stages, I have them run after main and I'll eventually work to remove them. Have you tried running it without the stage? -- Joseph Swick Operations Engineer Meltwater Group signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] Title on file resources

2014-01-14 Thread Joseph Swick
} } I wasn't the first to figure that out, I think I remember who I got it from, but I'm not sure if it's something they came up with or if they got it from somewhere else. Hope that helps. -- Joseph Swick Operations Engineer Meltwater Group signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] Puppet manage HOMES on Desktop Computers

2014-02-10 Thread Joseph Swick
i ${homedir_real}; done; /bin/chown -R ${username}:${username} ${homedir_real}", unless => "test \"\$(j=0;for i in `ls -A /etc/skel`; do test -e ${homedir_real}/\$i; if [ \"\$?\" -ne \"0\" ]; then j=1;fi; done;echo \$j)\" = \"0\"", } It may not be all that efficient for a system that has a lot of users on it. Hope that helps. -- Joseph Swick Operations Engineer Meltwater Group signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] Re: Puppet manage HOMES on Desktop Computers

2014-02-10 Thread Joseph Swick
On 02/10/2014 12:09 PM, Rafael Cristaldo wrote: > Hi Joseph Swick ! > > Thanks for the answer ! > > This really can help me! .. but thereis some questions about your manifest. > > Did you build custom factes for ${username} and ${homedir_real} ? Or you > propose to

Re: [Puppet Users] puppet 3.4: N00b has Trouble with regexes in a if-else structure manifest config.pp

2014-02-10 Thread Joseph Swick
bles::config for myname on node me" Is the file containing iptables::config in the appropriate directory and named properly? E.g: modules/iptables/manifests/config.pp ? > Please can some kind person show a poor little beginner what I am doing > wrong? > > Thanks! >

Re: [Puppet Users] Managing iptables with puppet

2014-03-12 Thread Joseph Swick
PuppetLabs Firewall module from the forge yet? It can do most (if not all) of what you're trying to do for iptables management with manifests. http://forge.puppetlabs.com/puppetlabs/firewall -- Joseph Swick Operations Engineer Meltwater Group signature.asc Description: OpenPGP digital signature

[Puppet Users] Package Resource, Versioning and Yum

2014-06-12 Thread Joseph Swick
#x27;yum install puppet-3.6.2' works as desired, but adding 'allow_virutal => true,' to the package resource doesn't change the previous error. Is this working as designed for the Yum provider for the package resource or is this a bug with the provider? For some reason,

Re: [Puppet Users] Package Resource, Versioning and Yum

2014-06-17 Thread Joseph Swick
as well later on. I wasn't sure originally if this was a known issue or not. We'll see what presents Puppet 4 brings us. -- Joseph Swick Operations Engineer Meltwater Group signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] Re: "require" broken with create_resources() ?

2014-08-20 Thread Joseph Swick
service is started, as it's been configured not to use the default directory. This worked as desired when I first did it and I haven't seen any errors. However, from reading the other comments in the thread, maybe it shouldn't work? -- Joseph Swick Operations Engineer Meltwater Group signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] Hiera Hash Merge - Avoiding Duplicating

2015-04-29 Thread Joseph Swick
>> On Apr 29, 2015, at 5:39 AM, Dan Gibbons wrote: >> >> Hi, >> >> I'm just starting to use create_resources and hash merging which I have >> working but I'm not sure how I can avoid duplicating some of the hash values >> further up in the hierarch

Re: [Puppet Users] Hiera Hash Merge - Avoiding Duplicating

2015-04-30 Thread Joseph Swick
nly reference to it I could find when I first started looking into what was going on and why I wasn't getting the results I expected. It's even mentioned in the hiera documentation: https://docs.puppetlabs.com/hiera/1/lookup_types.html#deep-merging-in-hiera--120 -- Joseph Swick Senior

Re: [Puppet Users] Hiera Hash Merge - Avoiding Duplicating

2015-05-04 Thread Joseph Swick
On 01/05/15 09:40, jcbollinger wrote: > On Thursday, April 30, 2015 at 12:10:19 PM UTC-5, Joseph Swick wrote: >> The hiera issue is >> the only reference to it I could find when I first started looking into >> what was going on and why I wasn't getting the results