Re: [Puppet Users] Very large resource_statuses. reports:prune:orphaned fails with Mysql error

2014-08-14 Thread Erling Ringen Elvsrud
On Tuesday, August 12, 2014 5:58:34 PM UTC+2, Ramin K wrote: On 8/12/2014 8:54 AM, Ramin K wrote: [...] You could try dropping the table and recreating it, but it might orphan all the resources. If you want the longer safer way, this is how I've done it in the past. Note that

Re: [Puppet Users] Augeas hates me!!!

2014-08-14 Thread Poil
Hi, I think you can use file_line from stdlib https://forge.puppetlabs.com/puppetlabs/stdlib#file_line It's really more simple than Augeas and it works better. For multi-line I also use editfile a custom module, but you need to be good with regex =)

Re: [Puppet Users] Re: Puppet uses catalog of node B for node A

2014-08-14 Thread Helmut Rickel
Hello John, from a puppet-beginners point of view it seems astonishing that running puppet agent -t on node A can have influence on the catalog prepared for node B. I agree that your inital response perfectly fitted to the solution of the problem. Thanks for that explanation! Kind regards

[Puppet Users] Re: Wild Card in Augeas

2014-08-14 Thread Vikas Kumar
Hi David, Many thanks for the information, but still I am having some issues with puppet class when I am trying to use double quotes. This is working good setm *[label() =~ glob('ifcfg-eth*')] NM_CONTROLLED no, But, this isn't. I tried few combinations of single and double quotes, but none of

[Puppet Users] puppet can't get the right service status from centos5.3

2014-08-14 Thread li jackie
when i disable puppet service ,centos5.3 system always have change: Notice: /Stage[main]/Puppet/Service[puppet]/ensure: ensure changed 'running' to 'stopped' Notice: Finished catalog run in 1.15 seconds just say the code : [root@xen-21206-vm02 ~]# puppet resource service puppet -d Debug:

Re: [Puppet Users] puppet can't get the right service status from centos5.3

2014-08-14 Thread David Schmitt
The init script on 5 only checks for running puppet processes. puppet resource is a puppet process. Therefore the init script thinks the service is running. Solution: use Service#pattern to match bettern on the process name. Regards, David On 2014-08-14 12:06, li jackie wrote: when i

[Puppet Users] is it possible to run agent with negated tag?

2014-08-14 Thread Maciek Jackowski
is it possible to run agent with negated tag? for example puppet agent --verbose --no-daemonize --runinterval=30 --tags !negated_tag of course above is not working i want to simply compile and run puppet catalog without specific negated_tag tagged resources regards -- You received this

[Puppet Users] puppet not respect basemodulepath

2014-08-14 Thread 李逸超
$ cat /etc/puppet/puppet.conf [main] environmentpath = $confdir/environments basemodulepath = $confdir/environments/$environment/dist $ sudo puppet config print modulepath --environment datanode /etc/puppet/environments/datanode/modules:/etc/puppet/environments/datanode/dist $ ls ~/puppet

[Puppet Users] Re: Error: Puppet::Parser::AST::Resource failed with error Hiera::InterpolationLoop: Detected in [::environment]

2014-08-14 Thread Veda Balan
Hello Roman Shiryaev, Did you find the solution for this issue. I am facing the same issue and not finding any solution anywhere. Do share if your workaround if any. Thanks Veda On Friday, December 13, 2013 1:00:37 PM UTC+5:30, Roman Shiryaev wrote: Hello, just upgraded Hiera from ver.

[Puppet Users] Remove java from path - Windows

2014-08-14 Thread Jeff Sparrow
We are having an issue with some modules. They are adding the correct path, but they do not remove the old path: C:\Windows\system32path PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files

[Puppet Users] puppet CLA

2014-08-14 Thread Darin Perusich
I'm trying to sign this new github linked CLA and it's saying the my email address is already taken, which I'm guessing is because my puppetlabs and github accounts share a common email address. How can I get around this annoyance? -- Later, Darin -- You received this message because you are

Re: [Puppet Users] Re: puppet slow when ensuring user with groups in combination with winbind auth

2014-08-14 Thread jcbollinger
On Wednesday, August 13, 2014 10:34:30 PM UTC-5, Garrett Honeycutt wrote: I'm not familiar with winbind itself though your performance might improve by using nscd to cache the lookups. Although in principle a name service cache might help with the performance issue, the winbind docs say

Re: [Puppet Users] puppet CLA

2014-08-14 Thread Ken Barber
I'm trying to sign this new github linked CLA and it's saying the my email address is already taken, which I'm guessing is because my puppetlabs and github accounts share a common email address. How can I get around this annoyance? Can you try logging a ticket here?

Re: [Puppet Users] puppet CLA

2014-08-14 Thread Darin Perusich
https://tickets.puppetlabs.com/browse/CLA-4 -- Later, Darin On Thu, Aug 14, 2014 at 8:59 AM, Ken Barber k...@puppetlabs.com wrote: I'm trying to sign this new github linked CLA and it's saying the my email address is already taken, which I'm guessing is because my puppetlabs and github

Re: [Puppet Users] puppet CLA

2014-08-14 Thread Dawn Foster
On Thu, Aug 14, 2014 at 6:16 AM, Darin Perusich da...@darins.net wrote: https://tickets.puppetlabs.com/browse/CLA-4 -- Later, Darin On Thu, Aug 14, 2014 at 8:59 AM, Ken Barber k...@puppetlabs.com wrote: I'm trying to sign this new github linked CLA and it's saying the my email address is

[Puppet Users] Host inventory and management application?

2014-08-14 Thread Atom Powers
I have a mix of hosts with several OSs and many versions of each on three different puppet masters that I am working to bring together onto one puppet master and upgrade as much as possible. I need a tool to keep track of what I have so I know what I need to change. I want to: View and query an

Re: [Puppet Users] More admins using the same master

2014-08-14 Thread Luca Mazzaferro
Hi to everybody, I'm really sorry for this late answer. I solved the problem using Gitolite for the users code and the puppet variable config_version to run a script for automatically updating the environments. I needed to do this because this is a temporary multiusers enviroment for a

Re: [Puppet Users] Host inventory and management application?

2014-08-14 Thread Christopher Wood
This might give you some: http://puppetlabs.com/mcollective In your situation I would get puppetdb on all puppetmasters and wait until after the next set of agent runs to query it/them. On Thu, Aug 14, 2014 at 09:09:12AM -0700, Atom Powers wrote: I have a mix of hosts with several OSs and

[Puppet Users] How can managed directory be updated after an rpm is upgraded?

2014-08-14 Thread Tim Arnold
I want to 'manage' the files in a certain directory ONLY if the rpm is updated. Any help is appreciated. For example (this doesn't work): package { 'package-name' : ensure = 'Version-2', provider = 'rpm', } file { '/home/thisuser/.java' : ensure = directory, subscribe

[Puppet Users] Confused Puppet Manifest ... Possible caching issue?

2014-08-14 Thread Matt Wise
I've got a pretty strange issue here. Imagine we have two servers... *ServerA* and *ServerB*. Last night *ServerB* pulled down some configuration bits from our puppet servers and tried to re-name itself to *ServerA*. How? Well theres two things that may have triggered this behavior. 1. We use a

Re: [Puppet Users] How can managed directory be updated after an rpm is upgraded?

2014-08-14 Thread Christopher Wood
If somebody came to me with this question at work, I'd ask why they aren't already managing the files in the directory to eliminate this dependency. There's no refreshonly for files like there is for execs per the type list, so you're out of luck there (not all types can refresh).

[Puppet Users] Puppet 'node data' when using common node_names?

2014-08-14 Thread Matt W
We noticed that our puppet reports and our puppet node data stored on our puppet servers is always written out in the form of the 'node name'. So when we use a node name like 'prod_webserver' across many webserver machines, we get a tree of reports and node data like this:

Re: [Puppet Users] How to make puppetlabs_spec_helper ignore modules inside fixtures

2014-08-14 Thread Sebastian Otaegui
I created a small POC module using puppet from master and `puppet module generate` I still have rspec-puppet go inside the apt module in fixtures and execute the tests: Failures: 1) poc with defaults for all parameters should contain Class[poc] Failure/Error: it { should

Re: [Puppet Users] How to make puppetlabs_spec_helper ignore modules inside fixtures

2014-08-14 Thread Garrett Honeycutt
On 8/14/14 3:56 PM, Sebastian Otaegui wrote: I created a small POC module using puppet from master and `puppet module generate` I still have rspec-puppet go inside the apt module in fixtures and execute the tests: Failures: 1) poc with defaults for all parameters should contain

Re: [Puppet Users] Re: Wild Card in Augeas

2014-08-14 Thread David Lutterkort
Hi Vikas, On Thu, Aug 14, 2014 at 12:09 AM, Vikas Kumar vikas...@gmail.com wrote: But, this isn't. I tried few combinations of single and double quotes, but none of them are working :( setm *[label() =~ glob('ifcfg-eth*')] NM_CONTROLLED \'no\', The problem is that the Puppet string is

Re: [Puppet Users] How to make puppetlabs_spec_helper ignore modules inside fixtures

2014-08-14 Thread Sebastian Otaegui
Hi Garrett, thanks, just to clarify and make sure I understood, so it is not running the spec.rb files in apt/spec/* but it is just evaluating the facts within the puppet runtime in the apt/manifest/*.pp, right? Thanks On Thu, Aug 14, 2014 at 3:27 PM, Garrett Honeycutt g...@garretthoneycutt.com

Re: [Puppet Users] How to make puppetlabs_spec_helper ignore modules inside fixtures

2014-08-14 Thread Garrett Honeycutt
On 8/14/14 4:58 PM, Sebastian Otaegui wrote: Hi Garrett, thanks, just to clarify and make sure I understood, so it is not running the spec.rb files in apt/spec/* but it is just evaluating the facts within the puppet runtime in the apt/manifest/*.pp, right? Thanks On Thu, Aug 14, 2014

Re: [Puppet Users] Managing multiple hosts in a single service

2014-08-14 Thread Matthew Schmitt
Using puppetdbquery (https://github.com/dalen/puppet-puppetdbquery), you could do something like this in your manifests - $hosts = query_nodes('Class[memcached]', hostname) And then loop through this in your template - % @hosts.sort.each do |host| -%%= host %:%= @memcached_port % % end -%

Re: [Puppet Users] Managing multiple hosts in a single service

2014-08-14 Thread Betsy Schwartz
The Puppet Practitioner course talks about this. Look at exported resources and exported resource collectors Each node exports the resource then can collect the set ( probably , by doubt the puppetdb query under the hood) On Aug 14, 2014, at 6:44 PM, Matthew Schmitt killas...@gmail.com wrote:

Re: [Puppet Users] Re: Exported resources applied on exporting host - EL7 only

2014-08-14 Thread Trey Dockendorf
snip lots of debug output that is just noise And AH HA! I did grep -HnR Firewall /etc/puppet/environments/production/modules/*/manifests/ and see the problem, I'm using older version of puppetlabs-firewall that does Package['iptables-services'] - Firewall || for EL7. I had not pushed my fork to

Re: [Puppet Users] Re: Wild Card in Augeas

2014-08-14 Thread Vikas Kumar
Awesome David, many thanks for the explanation and the code as well, works like a charm. Regards, Vikas On Friday, 15 August 2014 06:47:58 UTC+10, David Lutterkort wrote: Hi Vikas, On Thu, Aug 14, 2014 at 12:09 AM, Vikas Kumar vika...@gmail.com javascript: wrote: But, this isn't. I