[Puppet Users] Re: RFC: Default File Permissions

2013-09-18 Thread Klavs Klavsen
This would be a GREAT benefit, and I for one, would definetely make it my File default :) source_permissions is a fine name for it. -- 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 i

Re: [Puppet Users] if/or regex entry

2013-09-18 Thread Mike Reed
Thank you very much Peter. I also found that putting the regex entry in single quotes - as in my above examples - does not give me the expected results. As per your example, the regex entries are properly parsed when entries start and end with a forward slash. I hope this helps somebody else

Re: [Puppet Users] b64_zlib_yaml errros after server upgrade to

2013-09-18 Thread Patrick Carlisle
Do either of you happen to have multiple versions of the puppet installed on the master? One through rubygems and one through yum? I've only been able to reproduce this so far when I accidentally ran a 3.3.0 master that loaded some code from 3.2.4. If not, can you run the master with --trace and -

Re: [Puppet Users] b64_zlib_yaml errros after server upgrade to

2013-09-18 Thread Patrick Carlisle
On Tue, Sep 17, 2013 at 1:14 AM, Andrei-Florian Staicu < andrei.sta...@gmail.com> wrote: > Any idea if this is a recognized bug? I don't think it is. Please file a bug report at projects.puppetlabs.comand we can investigate this further. -- You received this message because you are subscribed

[Puppet Users] Puppet requires second run to execute some catalog items.

2013-09-18 Thread Sam Tresler
Hi, I've inherited a puppet setup for automating php installation and extension management. We're on Debian and we've encountered a strange issue that I've traced down back to puppet I think. I've stripped back the configuration and made the problem reproducible, logs and config pasted below.

[Puppet Users] Re: /var/opt/lib/pe-puppet/reports/$hostname yaml files not recent

2013-09-18 Thread root
Thanks for the response. Alas, the Master has only reports for itself, and even those are not up to date. It looks like Puppet Enterprise sends all the reports to PuppetDB. Not sure why I have any yaml files at all in the reportdir. On Tuesday, September 17, 2013 2:34:57 PM UTC-4, Ellison

Re: [Puppet Users] "puppet module install simondean/iis" gives error "Error: cert already in hash table"

2013-09-18 Thread Samuel Huang
Yeah I rebooted, and it still didn't work. On Monday, September 16, 2013 1:40:34 PM UTC-7, Rob Reynolds wrote: > > Yes, that is the one that I meant. I know you hate hearing this question, > but did you reboot after you removed it (prior to module install) for full > effect? > > > On Mon, Sep 16

[Puppet Users] questions about verifying template paths and variables with rspec

2013-09-18 Thread Corey Osman
Hi, How can I verify the template exists in the given path? Example, Given the following in my manifest: if $somevar == 'true' { $templatefile='mymodule/mytemplate.xml.erb' } else { $templatefile='mymodule/mytemplate2.xml.erb' } file{"somefile.txt": ensure => present,

[Puppet Users] if/or regex entry

2013-09-18 Thread Mike Reed
Hello all, I've been fighting a pesky regex issue and I was hoping somebody might have a solution handy. I'm trying to evaluate the hostname variable based on a few regex entries and apply some configurations accordingly. Here's what I've got: if ($hostname == '/^([a-z]*[-]\d{2,})*$/') or ($h

[Puppet Users] Re: Unable to specify hierarchy for data-in-modules

2013-09-18 Thread Igor Berger
Any ideas? On Monday, September 16, 2013 11:30:42 AM UTC-4, Igor Berger wrote: > > Hello, > > I'm running Puppet agent stand-alone on Windows. > > I got data-in-modules working. However, no matter what I put into the > module hiera.yaml, > I can only override the defaults from common.yaml by osf

Re: [Puppet Users] if/or regex entry

2013-09-18 Thread Peter Bukowinski
On Sep 18, 2013, at 12:33 PM, Mike Reed wrote: > Hello all, > > I've been fighting a pesky regex issue and I was hoping somebody might have a > solution handy. I'm trying to evaluate the hostname variable based on a few > regex entries and apply some configurations accordingly. > > Here's wh

[Puppet Users] Some php5 extensions not installed until a second run

2013-09-18 Thread Sam Tresler
Hi, I've inherited a puppet setup for automating php installation and extension management. We're on Debian and we've encountered a strange issue that I've traced down back to puppet I think. I've stripped back the configuration and made the problem reproducible, logs and config pasted below.

[Puppet Users] Re: Trouble using the dns_alt_names config option

2013-09-18 Thread Sven Milinski
Hello, same problem here... anybody knows what todo ? Running Puppet 3.2.4... -- 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...@googlegr

[Puppet Users] Re: b64_zlib_yaml errros after server upgrade to

2013-09-18 Thread Henrik Nicolaisen
I also have this error after upgrading my server to 3.3.0 on an ubuntu 12.04 Old clients with 3.2.4 says : Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not intern from b64_zlib_yaml: invalid code lengths set Clients with the new 3.3.0 version says : Error:

Re: [Puppet Users] Fail/stop after a step fails?

2013-09-18 Thread Chris McDermott
Try the fail() function. Something like this: if ($continue != true) { fail('Condition not met, failing now.') } On Tue, Sep 17, 2013 at 1:36 PM, Robin Lee Powell < rlpow...@digitalkingdom.org> wrote: > On Tue, Sep 17, 2013 at 12:35:15PM -0700, Robin Lee Powell wrote: > > > > Is it possible t

[Puppet Users] Re: Using a varaible from another virtual resource?

2013-09-18 Thread jcbollinger
On Wednesday, September 18, 2013 6:03:27 AM UTC-5, Roman wrote: > > Hi everyone, > > i am currently trying to reduce some redundancy in my puppet-setup. I have > setup user-account using virtual-resources like this: > > @users::account { 'xyz': > uid => '1000', > ... > key => 'AAAsfhjujbh...' >

[Puppet Users] Re: Creating multiple redis instances

2013-09-18 Thread jcbollinger
On Tuesday, September 17, 2013 6:36:54 PM UTC-5, Charles Mean wrote: > > My question is, why the "define" redisInstance cannot create multiple > instances when I use the "include" directive, but when I call the "file" > directive into the define it create as many instances as I want ? > For ex

Re: [Puppet Users] Using a varaible from another virtual resource?

2013-09-18 Thread Nick Cammorato
The puppetlabs-stdlib module includes a getparam function that you can use to retrieve a resource parameter if you know the resource type, name and parameter you want to retrieve(which may fit your use case, I'm a little unclear). You can see it here: https://github.com/puppetlabs/puppetlabs-stdli

[Puppet Users] Re: Puppet ignores schedules

2013-09-18 Thread jcbollinger
On Tuesday, September 17, 2013 5:37:36 AM UTC-5, jamido wrote: > > Hello, > > the following small code works, but the file /tmp/test will never be > created because the schedule is skipped because running on an host. > You are misinterpreting the output. File['/tmp/test'] is not applied bec

Re: [Puppet Users] Re: hostname appears in classes.txt

2013-09-18 Thread mark bradley
Hi, It was a problem with my script that updates the git repository. Embarrassingly, Puppet was doing the right thing, which was "do nothing". On Sat, Sep 14, 2013 at 6:22 AM, Rahul Khengare wrote: > Hello Mark, >can you post what is the problem you faced and how you solved, this > will be

[Puppet Users] ENC paramater interpolation in ENC, and inline templates

2013-09-18 Thread Jason Antman
I'm in the process of rolling out a new homegrown ENC (we've decided on using an ENC over hiera; I know it's not the way a lot of you are going, but it's right for us) and am running into some issues with variable interpolation in ENC data. To give a concrete example, I'm using modules to configur

Re: [Puppet Users] default data lookup w/ hiera2? "Data in Modules"

2013-09-18 Thread Henrik Lindberg
On 2013-16-09 20:34, robbyt wrote: Henrik, Thank you for your quick response. Sorry mine wasn't so quick- Google ate my message, perhaps it contained too many curly braces. :) Anyhow, adding a default argument option to lookup() would be great. But adding the option to pass a hash with keyword

[Puppet Users] Sshkey[hostname]: Could not evaluate: Field 'type' is required

2013-09-18 Thread Steffen Flemming
On some hosts i get: Notice: /Stage[main]/Trustedhosts/Sshkey[hostname]/key: key changed 'quHqi6XkksBB3NzaC1yc2EBIwAAAQEAvVmR8qyRkOlHnblUHDh' to 'CJp+NZwm0cx3UJY/dw+jYdWpWMQ8vHZr4IrDuKrN364+Necn9NzqdDnj40ji9j+qsBEUUBC06GlHFV6+6dH8zzboLPchyMOsU8Fu9ev/LgqE7+LW9fJ/uJjkobqs4MB3dH1B3NzaC1y

Re: [Puppet Users] Run a custom function through the ruby debugger

2013-09-18 Thread Henrik Lindberg
Here is how to invoke the function 'fqdn_rand(30)' in irb irb > require 'puppet' irb > scope => Puppet::Parser::Scope.new_for_test_harness('localhost') irb>> scope.function_fqnrand([30]) => "1" That may not work if your function requires a fully configured system. If you need that set the break

Re: [Puppet Users] Not able to capture node info via browser

2013-09-18 Thread Ken Barber
> If I run below command on puppet master. I am able to get output pasted > here. > But the same information, I am trying to capture via browser using > http://puppetdb:8080/v2/facts/operatingsystembut not working Well, a browser probably won't work trying to traverse that URL anyway, since a

[Puppet Users] Re: Not able to capture node info via browser

2013-09-18 Thread Raju Patil
On Wednesday, 18 September 2013 16:59:29 UTC+5:30, Raju Patil wrote: > > If I run below command on puppet master. I am able to get output pasted > here. > But the same information, I am trying to capture via browser using > http://puppetserverip:8080/v2/facts/operatingsystem but not working

[Puppet Users] Not able to capture node info via browser

2013-09-18 Thread Raju Patil
If I run below command on puppet master. I am able to get output pasted here. But the same information, I am trying to capture via browser using http://puppetdb:8080/v2/facts/operatingsystembut not working [root@puppetmaster ~]curl -X GET http://puppetdb:8080/v2/facts/operatingsystem c

[Puppet Users] Using a varaible from another virtual resource?

2013-09-18 Thread Roman
Hi everyone, i am currently trying to reduce some redundancy in my puppet-setup. I have setup user-account using virtual-resources like this: @users::account { 'xyz': uid => '1000', ... key => 'AAAsfhjujbh...' } Now i have written another simple module to setup mercurial-repositories with hgss

[Puppet Users] rake problem for dashboard

2013-09-18 Thread Thomas
I've setup a new puppet master and I'm having trouble with running dashboard rake commands. Any advise on why I may be getting this error would be appreciated! Thanks, Thomas sh-4.1# pwd /usr/share/puppet-dashboard sh-4.1# sudo -u puppet-dashboard rake RAILS_ENV=production jobs:work /usr/lib/r

[Puppet Users] Cloud provisionner on CentOS 6 issue

2013-09-18 Thread Vincent Nawrocki
Hi ! I am currently testing puppet on CentOS 6 and I wish to test the cloud provisioner tool. The problem is the following : I can't use fog because of ruby version issue. The system : CentOS 6.4 with Ruby 1.8.7 (last version for CentOS) What I did to get the problem : install puppet-server in

Re: [Puppet Users] Puppet to install and rollback using single module.

2013-09-18 Thread David Schmitt
Hi, Alessandro's modules at http://github.com/example42 do install/rollback all the time. You might want to look at them how they do it. Regards, David On 2013-09-16 11:31, Chatchai Neanudorn wrote: Hi all, I would like to provide installation and rollback for any module. Here are was I'v