Re: [Puppet Users] duplicated resource with an exported resource

2014-07-14 Thread Kristof Willaert
Hi, I think you should be able to use the exported resource on both the remote node, and the node that exports it, by using collection both local and remote and overriding the necessary attribute: On host A: @@host { $::hostname : ensure = present, ip = $secondary_ip, } Also on

Re: [Puppet Users] Re: duplicated resource with an exported resource

2014-07-14 Thread Kristof Willaert
[snip] You will not be able to collect that resource on the node that exports it (you would again -- and rightfully -- get a duplicate resource complaint), but I think otherwise you should be ok. The documentation for exported resources suggests otherwise: Any node (including the node that

Re: [Puppet Users] Re: Augeas, fstab and duplicate lines: How to test ? (onlyif ? not_include ?) ... Examples ?

2013-07-30 Thread Kristof Willaert
Hi, you probably already tested this already, but how about: onlyif = match *[spec = \${fs_dev}\] size == 0 Regards, k ** ** On Tue, Jul 30, 2013 at 3:54 PM, Sneha More snehamore...@gmail.com wrote: Hi, The solution which i have given you is nothing but the another form of what you have

Re: [Puppet Users] Best practice to always fully qualify classes with :: ?

2013-04-21 Thread Kristof Willaert
Hi, [snip] And given how puppet's variable scoping works, it makes most sense. But this fully qualified class name syntax isn't present in the documentation[1][2], so I'm wondering : Is this the proper syntax? Has this (or will this) become the best practice? This behaviour, and the

Re: [Puppet Users] Re: Duplicate class declaration because of counterintuitive class scoping

2012-12-17 Thread Kristof Willaert
[snip] While it is easy to work around this by top-scoping the class, some form of documented warning might prevent some hairpulling :) Mostly for posterity, this behaviour is indeed considered buggy (a major outstanding design issue) and is in fact documented: *

[Puppet Users] Duplicate class declaration because of counterintuitive class scoping

2012-10-22 Thread Kristof Willaert
Hi, I bumped into the following this afternoon (on a 2.7.19 puppet master/agent combo): consider a class profile::tomcat in module profile with the following content: $ cat modules/profile/manifests/tomcat.pp class profile::tomcat { class { 'tomcat': } notice('Class profile::tomcat in

Re: [Puppet Users] Re: Duplicate class declaration because of counterintuitive class scoping

2012-10-22 Thread Kristof Willaert
Hi John, I think the behavior you discovered is a natural and expected consequence of Puppet's name scoping and resolution rules. The current namespace is searched first for unqualified class names. Only if no matching class is found there will other namespaces be considered. The difference

Re: [Puppet Users] update yumrepo followed by packages updates.

2012-08-08 Thread Kristof Willaert
Hi, Issue: 1) I update my VERSION variable 2) the next puppet run and only updates the repo (no rpms are upgraded) 3) next puppet run updates the rpms. There are no errors. but shouldn't my rpms update on the first run after the variable change? not sure if this causes it, but yum by

Re: [Puppet Users] Re: Running make via puppet manifest

2012-08-02 Thread Kristof Willaert
Hi, On Thu, Aug 2, 2012 at 6:25 PM, Mike Reed mjohn.r...@gmail.com wrote: Thank you all for the responses. I think the solution of scripting the install and calling the script via puppet is an interesting thought. Thanks as well for the suggested reading. just my thoughts on this: if you

Re: [Puppet Users] plugin sync in masterless mode

2012-07-07 Thread Kristof Willaert
Hi, I think you are hitting this issue: https://projects.puppetlabs.com/issues/12127 Kind regards, kristof -- 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

Re: [Puppet Users] virtual resources spaceship syntax

2012-06-29 Thread Kristof Willaert
Hi, [snip] node 'puppet-slave.test.net' { include users::accounts User | title=account | } Your virtual resource is not a user, but a define called users::virtual::account. So you need to realize it using: Users::Virtual::Account | title == account | Kind regards, kristof --

Re: [Puppet Users] Managing Puppet modules as RPMs

2012-05-29 Thread Kristof Willaert
Hi, [snip] Very interesting that you should say that you created a Puppet master for each environment ... it's the obvious way to accommodate the limits of RPM packaging while retaining the ability to use Puppet in full agent mode. Is this considered a best practice? What other

Re: [Puppet Users] Managing Puppet modules as RPMs

2012-05-27 Thread Kristof Willaert
Hi, [snip] - Hack the RPM package names to include a version discriminator (e.g. packageV1-1.0-noarch.rpm rather than package-1.0-noarch.rpm) to allow them all to be installed on Puppet maste This is a practice that is already used for the kernel, so it seems like a legitimate way

Re: [SPAM] Re: [Puppet Users] how to restrict an exec?

2011-12-03 Thread Kristof Willaert
[snip] But that wouldn't work with puppet kick, right? I want to be able to have a host reboot another host. :-) That looks to me more like an orchestration issue, which is probably better solved by a tool like mcollective, func, rundeck, ... You are not changing state here, merely executing

Re: [Puppet Users] Installing Oracle

2011-11-20 Thread Kristof Willaert
Hi, [snip] Thanks. One question though. I'm not much of an Oracle expert, and I guess this is more of an Oracle question, than a puppet one, but what did you do to configure Oracle on the command line once it was installed? Oracle actually provides some stuff exactly for this. There is a

Re: [Puppet Users] chaining resources problem

2011-08-14 Thread Kristof Willaert
Hi, [snip] But the problem is that a certain module I include follows the principles of Example42 's Puppet modules of splitting up resources in classes according to the operating system. [snip] When I include this specific class in my developer-workstation module below, the resource

Re: [Puppet Users] Custom data embedded in Puppet SSL Certs...

2011-04-26 Thread Kristof Willaert
[snip] The hard part it turns out is getting some custom data into the SSL cert to begin with. The CSR thats generated does not get generated with 'certdnsnames' embedded in it, thats done purely on the Signing side (aka, your puppet ca). I had hoped I could set 'certdnsnames' on the client

Re: [Puppet Users] Custom data embedded in Puppet SSL Certs...

2011-04-26 Thread Kristof Willaert
[snip] Below the relevant parts of my openssl.conf: x509_extensions = usr_cert [ usr_cert ] basicConstraints= critical, CA:FALSE keyUsage= digitalSignature, keyEncipherment extendedKeyUsage= serverAuth, clientAuth, emailProtection