[Puppet Users] Defined Resource types and Relationship

2016-09-21 Thread Erez Zarum
Is it the same behavior as classes? Example: define app::server { ::app::server::config { '/etc/app.conf': } ::app::server::service { 'app': } App::Server::Config['/etc/app.conf'] -> App::Server::Service['app'] } define app::server::config { file { $name: ensure => present } } def

[Puppet Users] Order of removal of resources

2016-09-21 Thread Peter Faller
What is the effect of the 'require' metaparameter when ensure is set to absent, i.e. when a resource is removed? It seems that changes to the required resource are applied before changes to the requiring resource are applied - is that always the case? When one resource (R1) depends on another re

Re: [Puppet Users] Order of removal of resources

2016-09-21 Thread Craig Dunn
On Wed, Sep 21, 2016 at 9:33 AM, Peter Faller wrote: > What is the effect of the 'require' metaparameter when ensure is set to > absent, i.e. when a resource > is removed? It seems that changes to the required resource are applied > before changes to the requiring > resource are applied - is that

Re: [Puppet Users] Defined Resource types and Relationship

2016-09-21 Thread R.I.Pienaar
- Original Message - > From: "Erez Zarum" > To: "puppet-users" > Sent: Wednesday, 21 September, 2016 09:16:18 > Subject: [Puppet Users] Defined Resource types and Relationship > Is it the same behavior as classes? > Example: > > define app::server { > ::app::server::config { '/etc/ap

Re: [Puppet Users] Defined Resource types and Relationship

2016-09-21 Thread Erez Zarum
If i understand correctly, I do not have to contain (declare contain) on the defined resource (like in app::server)? As in my example it will work as expected? On Wednesday, September 21, 2016 at 10:59:27 AM UTC+3, R.I. Pienaar wrote: > > > > - Original Message - > > From: "Erez Zar

Re: [Puppet Users] Defined Resource types and Relationship

2016-09-21 Thread R.I.Pienaar
- Original Message - > From: "Erez Zarum" > To: "puppet-users" > Sent: Wednesday, 21 September, 2016 10:19:24 > Subject: Re: [Puppet Users] Defined Resource types and Relationship > If i understand correctly, I do not have to contain (declare contain) on > the defined resource (like in

Re: [Puppet Users] Defined Resource types and Relationship

2016-09-21 Thread Erez Zarum
Thanks! On Wednesday, September 21, 2016 at 11:26:57 AM UTC+3, R.I. Pienaar wrote: > > > > - Original Message - > > From: "Erez Zarum" > > > To: "puppet-users" > > > Sent: Wednesday, 21 September, 2016 10:19:24 > > Subject: Re: [Puppet Users] Defined Resource types and Relationship >

[Puppet Users] puppetdb 4.x filling up /opt/puppetlabs/server/data/puppetdb/mq

2016-09-21 Thread Ryan Anderson
I'm using puppetdb-4.0.0-1.el7 (open source) and over time the ActiveMQ part of it has been saving a bunch of logs under /opt/puppetlabs/server/data/puppetdb/mq, and there does not appear to be any built-in log rotation, at least in the version I am using. After using this puppetdb a couple mon

[Puppet Users] Duplicate declaration - hard to find...

2016-09-21 Thread Ugo Bellavance
Hi, I'm getting this error message when I run a puppet noop: Error 400 on SERVER: Duplicate declaration: File[/var/www/atd/src/agtweb] is already declared in file /etc/puppet/modules/apache/manifests/varwwwatdsrcapp.pp at line 17; cannot redeclare at /etc/puppet/modules/apache/manifests/varwww

Re: [Puppet Users] Duplicate declaration - hard to find...

2016-09-21 Thread R.I.Pienaar
- Original Message - > From: "Ugo Bellavance" > To: "puppet-users" > Sent: Wednesday, 21 September, 2016 14:29:50 > Subject: [Puppet Users] Duplicate declaration - hard to find... > Hi, > > I'm getting this error message when I run a puppet noop: > > Error 400 on SERVER: Duplicate de

Re: [Puppet Users] Duplicate declaration - hard to find...

2016-09-21 Thread Ugo Bellavance
> > > in a define all resources have to have unique names, error says in some > case > you do not. So you're either attempting to make 2 instances where > application > is 'agtweb' or something else, > > Show the actual code. And the actual code where you make 'agtweb' > application. > > S

Re: [Puppet Users] Duplicate declaration - hard to find...

2016-09-21 Thread R.I.Pienaar
- Original Message - > From: "Ugo Bellavance" > To: "puppet-users" > Sent: Wednesday, 21 September, 2016 14:51:00 > Subject: Re: [Puppet Users] Duplicate declaration - hard to find... >> >> >> in a define all resources have to have unique names, error says in some >> case >> you do not

Re: [Puppet Users] Order of removal of resources

2016-09-21 Thread Peter Faller
Thanks Craig - that does work, but what it says in the documentation is true: "Note: Chained collectors can potentially cause huge dependency cycles and should be used carefully." This approach works fine

Re: [Puppet Users] Duplicate declaration - hard to find...

2016-09-21 Thread Ugo Bellavance
I found the problem by making the classe temporarily non-parameterized and it threw an error "Invalid parameter application". I called this class in another file. I'll fix that up. Thanks for your help! Ugo -- You received this message because you are subscribed to the Google Groups "Puppe

Re: [Puppet Users] Order of removal of resources

2016-09-21 Thread Rob Nelson
The dependency warning may be overstated a bit, in your situation you're not likely to cause that issue by accident. Another view might be that systems should be built from scratch when significant changes are made. Regardless of your CM tool, that's generally a better idea these days - even upgra

Re: [Puppet Users] Order of removal of resources

2016-09-21 Thread Peter Faller
That was a contrived, simplified example. The real situation is much more complicated. -- 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...@

[Puppet Users] Puppet scheduled_tasks do not show up

2016-09-21 Thread urhs
Hi, I am running scheduledtasklist.pp with following: scheduled_task { 'ExampleTask': ensure => 'present', command => 'E:\Example.exe', enabled => 'true', trigger => {'every' => '1', 'schedule' => 'daily', 'start_time' => '08:00', 'minutes_interval' => '1'}, user

[Puppet Users] Puppetfile git url representation

2016-09-21 Thread J.T. Conklin
At work, I'm taking over primary administration of a puppet deployment that had previously been maintained by a contractor. Shortly before he left, it upgraded from PE 3.X to 2016.2.0, and moved from r10k to Code Manager. This has been running well, but "something happened" yesterday where code d

[Puppet Users] Smoke testing puppet modules within Red Hat Satellite v6.2 Puppet Master

2016-09-21 Thread Warron French
As most of you I know, I am a total novice at Puppet. I have built, on my own however, a PE Puppet Master at home and it is running on a CentOS-6.7 VM. Now, I am at work, trying to write modules and smoke test them, like I have learned to do much better now at home. At home, I can write some

[Puppet Users] Re: How do i set the effective role if there is a subrole

2016-09-21 Thread Ivan Arjune
Are subroles implemented as a conditional statement within the profile manifest? -- 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...@google

[Puppet Users] resource collector with multiple 'tag !=' test

2016-09-21 Thread Isaiah Frantz
Hello, I am trying to realize users and am not getting what I expect with multiple != test. Here is a simplified version that I have tested with puppet gem 4.2.2 and 4.6.2 (results were the same for all tests): cat t.ppt.pp (common to all tests): @notify {'This is a test 1': tag => 'one'

Re: [Puppet Users] Smoke testing puppet modules within Red Hat Satellite v6.2 Puppet Master

2016-09-21 Thread Rob Nelson
Warren, It seems like you might be running afoul of the autoloader. It expects that within the module path, each module has a certain layout - the class ntp is defined in ntp/manifests/init.pp, etc. if you place that in a directory called module2, puppet will not find it, since it expects module2/

Re: [Puppet Users] Puppetfile git url representation

2016-09-21 Thread Rob Nelson
J.T., is it possible that the shell Git was using a key on disk that was removed recently? On Wednesday, September 21, 2016, J.T. Conklin wrote: > > At work, I'm taking over primary administration of a puppet deployment > that had previously been maintained by a contractor. Shortly before he > l

Re: [Puppet Users] Puppetfile git url representation

2016-09-21 Thread J.T. Conklin
Rob Nelson writes: > J.T., is it possible that the shell Git was using a key on disk that > was removed recently? That's my working hypothesis. Just haven't escaped from a constant stream of other interrupts in order to verify. --jtc -- You received this message because you are subscribed

Re: [Puppet Users] puppetdb 4.x filling up /opt/puppetlabs/server/data/puppetdb/mq

2016-09-21 Thread Wyatt Alt
Hey Ryan, At first glance this sounds like https://tickets.puppetlabs.com/browse/PDB-2390, but that was fixed in 4.0.0 so it shouldn't be the issue. The fact that you have 2 gigs under discarded means you are sending a significant number of commands that PuppetDB is unable to accept. There ar

Re: [Puppet Users] Re: How do i set the effective role if there is a subrole

2016-09-21 Thread Rob Nelson
Ivan, In discussing roles, I always encourage reviewing http://www.craigdunn.org/2012/05/239/, the original guideline for the roles and profiles pattern. It posits that the role, like the profile, is just another class inside the 'role' module - role::www, role::mail, etc - that is composed of pro

Re: [Puppet Users] Smoke testing puppet modules within Red Hat Satellite v6.2 Puppet Master

2016-09-21 Thread Warron French
Thanks Rob, I will review your advice when I am in the environment (back at work) tomorrow. Thanks again. On 9/21/2016 5:14 PM, Rob Nelson wrote: Warren, It seems like you might be running afoul of the autoloader. It expects that within the module path, each module has a certain layout - t

RE: [Puppet Users] resource collector with multiple 'tag !=' test

2016-09-21 Thread Johan De Wit
-Original message- From: Isaiah FrantzĀ  Sent: Wednesday 21st September 2016 21:35 To: Puppet Users Subject: [Puppet Users] resource collector with multiple 'tag !=' test Hello, I am trying to realize users and am not getting what I expect with multiple != test. Here is a simplified versi