[Puppet Users] Using ENC and node defintion for configuration

2015-10-07 Thread Richard Rechenberg
Hello Puppet Users, for handling my different environments I'am using directory environments. Every environment has its own node definiton stored in the nodes.pp. For only one of the environments I want to use an ENC. Caused by this I added the following inside the masters puppet.conf: node_te

[Puppet Users] Error:Could not autoload puppet/type/ec2_instance: /etc/puppet/modules/aws/lib/puppet/type/ec2_instance.rb:31:

2015-10-07 Thread Ramkumar Nagaraj
Does anyone have experience with getting the puppetlabs-aws module to work? I am running: Puppet 3.8.3 Centos 6.7 Ruby 1.8.7 Following the readme on the forge: http://ift.tt/1Q4LHkQ I should be able to run commands like puppet apply tests/create.pp --test puppet apply tests/test.pp --

[Puppet Users] Write arrays to an erb

2015-10-07 Thread Sergiu Cornea
Hello guys, I am passing 4 arrays in the Hiera file a: {a,b,c} b: {d,e,f} c: {g,h,i} d: {j,k,l} which I am using them in an .erb template. However, when I am trying to run Puppet it is complaining saying that cannot associate the file with that name as it is already declared in a manifest. I a

Re: [Puppet Users] Using ENC and node defintion for configuration

2015-10-07 Thread Christopher Wood
In a similar situation (multiple sets of node data) I put the hiera node yaml in its own r10k branch/environment and use that as the canonical source of node hiera data for all environments in /etc/puppet/hiera.yaml. (These node files are also the data source for the ENC.) Then /etc/puppet/hier

[Puppet Users] Re: err: Failed to apply catalog: Parameter source failed on File[...]: Cannot use URLs of type 's001ap38-test' as source for fileserving at /etc/puppet/modules/httpd/manifests/init.pp:

2015-10-07 Thread jcbollinger
On Tuesday, October 6, 2015 at 8:02:23 AM UTC-5, Wei Chen wrote: > > Hi all, > > As I run following command: > > puppet agent --server s001ap38-test --no-daemonize --verbose --onetime > > I got error as follow: > ... > err: Failed to apply catalog: Parameter source failed on > File[/etc/httpd/co

Re: [Puppet Users] Write arrays to an erb

2015-10-07 Thread Martin Alfke
Hi Sergiu, On 07 Oct 2015, at 09:12, Sergiu Cornea wrote: > Hello guys, > > I am passing 4 arrays in the Hiera file a: {a,b,c} b: {d,e,f} c: {g,h,i} d: > {j,k,l} which I am using them in an .erb template. However, when I am trying > to run Puppet it is complaining saying that cannot associate

[Puppet Users] The right way to create Hiera resources?

2015-10-07 Thread Marc Teale
Is there a right/approved/standard way to create hiera resources for forge modules that don't do it on their own? (This is a question about the right way to structure my Puppet code. I'm not asking how to use hiera_create_resources.) To create resources from hiera definitions in the past, I'v

Re: [Puppet Users] Ordering agent runs

2015-10-07 Thread Xav Paice
On 07/10/15 08:20, Rick Lindal wrote: > Thanks for the link Martin. We are using open source. > Same - that's why I've started to look at using Salt to drive orchestration for Puppet - see https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.puppet.html I like Puppet a lot, but orche

[Puppet Users] Re: ANNOUNCE: puppet-retrospec -- automate your unit test creation and other cool stuff

2015-10-07 Thread Martijn
That looks very useful. Thanks for releasing it! Regards, Martijn Op donderdag 1 oktober 2015 07:25:01 UTC+2 schreef Corey Osman: > > Last year I had an idea to create a tool to automate the buildout of > puppet unit tests by inspecting puppet code inside puppet manifests. Along > with this ide

[Puppet Users] Re: err: Failed to apply catalog: Parameter source failed on File[...]: Cannot use URLs of type 's001ap38-test' as source for fileserving at /etc/puppet/modules/httpd/manifests/init.pp:

2015-10-07 Thread Wei Chen
Hi John, Thanks very much. It works now with your code. But even though I can't understand, why I have to take out the 'files' ? The file to be copied, the "s001is35-test.conf", locates under "/etc/puppet/modules/httpd/files/" on the server. Wei Am Mittwoch, 7. Oktober 2015 21:17:34 UTC+2 sc

Re: [Puppet Users] Re: err: Failed to apply catalog: Parameter source failed on File[...]: Cannot use URLs of type 's001ap38-test' as source for fileserving at /etc/puppet/modules/httpd/manifests/init

2015-10-07 Thread Rich Burroughs
Puppet knows to look in the files directory in your module. There's a bit of an explanation here: https://docs.puppetlabs.com/puppet/latest/reference/modules_fundamentals.html Rich On Wed, Oct 7, 2015 at 10:31 PM Wei Chen wrote: > Hi John, > > Thanks very much. It works now with your code.

Re: [Puppet Users] Re: err: Failed to apply catalog: Parameter source failed on File[...]: Cannot use URLs of type 's001ap38-test' as source for fileserving at /etc/puppet/modules/httpd/manifests/init

2015-10-07 Thread Wei Chen
Hi Rich, Many thanks! -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https

Re: [Puppet Users] Ordering agent runs

2015-10-07 Thread Thomas Müller
Am Mittwoch, 7. Oktober 2015 23:21:59 UTC+2 schrieb Xav Paice: > > On 07/10/15 08:20, Rick Lindal wrote: > > Thanks for the link Martin. We are using open source. > > sounds like it will be made available later on: "Language changes used to model applications will be available as part of Open S

[Puppet Users] Why the copied file on client site will not be recovered from server?

2015-10-07 Thread Wei Chen
Hi, I change the copied file on client site on purpose to see if this will be recovered by server. According to the document, the changed file on client will be recovered by server every half an hour. But this doesn't happen. Why? -- You received this message because you are subscribed to the