} 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
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
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
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
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
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
}
}
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
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
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
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!
>
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
#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,
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
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
>> 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
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
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
17 matches
Mail list logo