[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 o

[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 dis

[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 messa

[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 Puppetf

[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\system32>path PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\IBM\RationalSDLC\common;;C:\

[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 s

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 doc

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? https://tickets.pupp

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 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 accounts share a c

Re: [Puppet Users] puppet CLA

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

[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 in

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 tutorial

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 m

[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, subscri

[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 c

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"). https://d

[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: /var/lib/puppet/yaml/

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 contain_class('po

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 conta

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 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 enclosed in do

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 wrote: > On 8/14/14 3:56

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

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 wrote: > > Using pup

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

2014-08-14 Thread Trey Dockendorf
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 my "master", and what's worse is I'

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 > wrote: > > >> But, this isn't. I tried few combinations

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

2014-08-14 Thread li jackie
thank you David~ I changed some config,and it work fine~ service { 'puppet': ensure => 'running', enable => 'false', } changed service { 'puppet': ensure => 'running', enable => 'false', hasstatus => 'false', status => '/etc/init.d/puppet status' } as you said . if the service