[Puppet Users] Re: PuppetDB API permissions

2012-11-07 Thread ak0ska
We're still just getting familiar with PuppetDB, so at this point it's too early to say how fine grained we need this feature to be. We've already set up a proxy (as you recommended) and this solution suites us for now. On Friday, October 26, 2012 8:56:26 PM UTC+2, Nick Lewis wrote: On

Re: [Puppet Users] Puppet JBoss

2012-11-07 Thread j4m3s
Budicom I had the same problem with JBoss, and (following advice I read on this group) looked into creating my own deb. It turned out to be amazingly straightforward using a bit of software that's been discussed on here before (fpm: https://github.com/jordansissel/fpm). I now have my own deb

[Puppet Users] Custom Type Invalid Parameter...

2012-11-07 Thread Gavin Williams
Hi All As per my various other Posts, I'm writing a customer type and provider set for NetApp support.. My current problem is that the 'puppet device -v' run keeps failing with: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter aggregate at

[Puppet Users] Config Sync

2012-11-07 Thread John Macleod
What I am looking to do is use Puppet to automatically sync a handful of application configuration files between distributed servers, and bounce (reload) the applicable service. Forgive me for asking a question that is covered somewhere, however I did my best homework on the topic and found

[Puppet Users] How to configure puppet so that it installs yum repos with debug mode?

2012-11-07 Thread Imdad Ahmed
I have also posted this q at SO: http://stackoverflow.com/questions/13268846/how-to-configure-puppet-so-that-it-installs-yum-repos-with-debug-mode Quote: When i run *puppet apply*, it tries to install packages using the following command: /usr/bin/yum -d 0 -e 0 -y install couchdb-1.2.0-7.el6

[Puppet Users] Re: Custom Type Invalid Parameter...

2012-11-07 Thread Gavin Williams
Hmm... It seems that all that was needed was a Puppetmaster restart :s Now happily creating volumes... Cheers Gavin On Wednesday, 7 November 2012 10:46:55 UTC, Gavin Williams wrote: Hi All As per my various other Posts, I'm writing a customer type and provider set for NetApp support..

[Puppet Users] Re: Puppet NetApp Network device management...

2012-11-07 Thread Gavin Williams
Quick update... It looks like all that was needed to resolve the below was a puppetmaster restart. Have successfully managed to create a new volume on the NetApp filer using puppet :) :D Now to plough on with adding support for the rest of the bits we need :) Cheers Gavin On Tuesday, 6

RE: [Puppet Users] Config Sync

2012-11-07 Thread Bernd Adamowicz
The Puppet cookbook is always a good starting point: http://puppetcookbook.com/. And for your particular problem this is the real world example: http://puppetcookbook.com/posts/restart-a-service-when-a-file-changes.html Bernd From: puppet-users@googlegroups.com

[Puppet Users] Re: Config Sync

2012-11-07 Thread jcbollinger
On Wednesday, November 7, 2012 5:34:16 AM UTC-6, John Macleod wrote: What I am looking to do is use Puppet to automatically sync a handful of application configuration files between distributed servers, and bounce (reload) the applicable service. Forgive me for asking a question that is

[Puppet Users] File header including timestamp

2012-11-07 Thread j4m3s
I have noticed that if I create a hosts file entry using the host {} type, a header is added to teh top of the file showing when it was last updated. I'm wondering if it is possible something similar in a template? Calling %= Time.now().to_s() % inside the template (obviously) causes the file

[Puppet Users] Reload fact variable during run

2012-11-07 Thread loic
Hi, I just made a custom fact to display a status about mysql. The fact variable is 'foo'. In a module I test this fact variable to apply or not a ressource : class bar { if $::foo == 'toto' { notice(Execute ressource) # Reload fact variable ? if $::foo == 'toto' {

Re: [Puppet Users] File header including timestamp

2012-11-07 Thread Matthew Burgess
On Wed, Nov 7, 2012 at 2:00 PM, j4m3s mrfell...@gmail.com wrote: I have noticed that if I create a hosts file entry using the host {} type, a header is added to teh top of the file showing when it was last updated. I'm wondering if it is possible something similar in a template? Calling %=

Re: [Puppet Users] File header including timestamp

2012-11-07 Thread j4m3s
Thank you very much Matt. My searches hadn't turned that up - I was searching on keywords relating to templates I think. Thanks again, James. On Wednesday, November 7, 2012 2:12:27 PM UTC, Matthew Burgess wrote: On Wed, Nov 7, 2012 at 2:00 PM, j4m3s mrfe...@gmail.com javascript: wrote:

Re: [Puppet Users] SSH authorized key module with support for multiple local accounts (Request for Feedback)

2012-11-07 Thread Lukas Hetzenecker
Hello, my module is now available from puppet forge too, thanks for your suggestion: http://forge.puppetlabs.com/hetzeneckerl/ssh_authorized_key However, I'm still having one problem developing this module: On *every* run I get some of these messages:

Re: [Puppet Users] Re: Can Puppet alert about dead nodes?

2012-11-07 Thread Martijn Heemels
Thanks for the info, Greg and Walter. I missed that announcement. We can keep using the current Dashboard until something else comes along. I have no problems with the parts that we use. The deprecation actually makes sense, now that I read it. I was never happy with the ENC functionality, which

Re: [Puppet Users] Augeas and custom lenses?

2012-11-07 Thread Dominic Cleal
On 06/11/12 22:31, Jakov Sosic wrote: Hi I want to modify one of the existing lenses to better suit my needs, but I don't know where to put it on the filesystem? It seems wrong to overwrite file in /usr/share/augeas/lenses/dist or to rebuild augeas-libs, is there any other way to

[Puppet Users] Re: Puppet NetApp Network device management...

2012-11-07 Thread Gavin Williams
:( Seems to be one step forward and two steps back atm... Following the successful creation and deletion of NetApp filer volumes using puppet earlier in the day, I added the required provider and type to support qtree creation and deletion... However since then, I haven't been able to create

Re: [Puppet Users] Re: Announce: Puppet Dashboard 1.2.13 Available

2012-11-07 Thread Matthaus Owens
Stefan, Thanks for catching that. A recent change to our packaging workflow unintentionally stopped empty directories from getting included in the tarballs. We've since reverted that change, and a new release of Dashboard will be forthcoming with an updated tarball, complete with tmp dir.. On

[Puppet Users] Re: augeas syntax for adding similar lines to hosts.allow

2012-11-07 Thread Nathan Huff
You are going to probably need something along the lines of context = '/files/etc/hosts.allow' changes = [ 'ins 01 after *[last()]', 'set 01/process[1] ssh', 'set 01/process[2] ssh2', 'set 01/client ipaddr' ] onlyif = 'match *[process[1] == 'ssh' and 'client' == 'ipaddr'] size == 0' you

Re: [Puppet Users] Re: Managing home directory on Windows

2012-11-07 Thread Nick Fagerlund
On Tuesday, November 6, 2012 2:22:25 PM UTC-8, Josh Cooper wrote: That said, would it perhaps be worth putting a note/warning in the documentation for managehome that it will delete the user's home directory and any data therein? The removal is mentioned under the 'Features' entry

[Puppet Users] Re: Hiera autolookup for defined types

2012-11-07 Thread Bruno Leon
Thanks John for your very interesting reply. On Tuesday, November 6, 2012 4:13:03 PM UTC-5, jcbollinger wrote: On Tuesday, November 6, 2012 11:04:46 AM UTC-6, Bruno Leon wrote: Hello, since Puppet 3 hiera is doing auto variable lookup for classes, which in my view makes the code

Re: [Puppet Users] Re: Announce: Puppet Dashboard 1.2.13 Available

2012-11-07 Thread Stefan Heijmans
Matthaus, I also noticed the following messages with the 1.2.13 db:migrate rake task, haven't seem them before; # rake db:migrate RAILS_ENV=production config.gem: Unpacked gem rspec-1.3.2 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this. config.gem: Unpacked

Re: [Puppet Users] Puppet creates a file even though an exec fails

2012-11-07 Thread Mason Turner
You want refreshonly = true on file2, as well. On Nov 7, 2012, at 3:56 PM, Chris Hirsch ch...@base2technology.com wrote: Hi all, I'm trying to figure out if my expectations are correct for this class. Basically I'd like to have file1 created and then run an exec. If that exec should

[Puppet Users] for i in array do something - iteration irritation

2012-11-07 Thread earthgecko
Hi I am sure that there is some way to iterate an array and do something for each in. It must be a wheel that has been invented (even if in a ruby function)? I have needed to do something like this a few times now and I reckon someone clever has already done it :) Using a normal bash type

Re: [Puppet Users] Puppet creates a file even though an exec fails

2012-11-07 Thread Chris Hirsch
Except my resource is a File and not an Exec. refreshonly is invalid for a File afik. Are there alternatives you may suggest to accomplish the same? You want refreshonly = true on file2, as well. On Nov 7, 2012, at 3:56 PM, Chris Hirsch ch...@base2technology.com wrote: Hi all, I'm

Re: [Puppet Users] Re: puppet failing to run

2012-11-07 Thread Jeff McCune
On Tue, Nov 6, 2012 at 7:08 PM, Asif Iqbal vad...@gmail.com wrote: I did some clean up. Now I have only one version of puppet and facter. It still seems like you could have stale files. Could you verify there are no stale files by pasting the output of this command? ruby -r puppet -e 'puts

[Puppet Users] Re: for i in array do something - iteration irritation

2012-11-07 Thread earthgecko
Apologies app::thing { 'foo': config_templates = ['foo.conf', 'foo.more.conf'] } -- You received this message because you are subscribed to the Google Groups Puppet Users group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/tsXtAlEp-8sJ. To post to

Re: [Puppet Users] Puppet creates a file even though an exec fails

2012-11-07 Thread R.I.Pienaar
- Original Message - From: Chris Hirsch ch...@base2technology.com To: puppet-users@googlegroups.com Sent: Wednesday, November 7, 2012 9:18:15 PM Subject: Re: [Puppet Users] Puppet creates a file even though an exec fails Except my resource is a File and not an Exec. refreshonly

Re: [Puppet Users] Puppet creates a file even though an exec fails

2012-11-07 Thread Chris Hirsch
Except my resource is a File and not an Exec. refreshonly is invalid for a File afik. Are there alternatives you may suggest to accomplish the same? I believe this is http://projects.puppetlabs.com/issues/5876 in action :( Bummer! Especially since I added a me-too to that bug over a

Re: [Puppet Users] Reload fact variable during run

2012-11-07 Thread Denmat
Hi, Not from within puppet but there are external ways (ssh, MCollective ). From them you can schedule action. You can run puppet again (as compilation is done on the master not the client). The facts are sent to the master at the start of the run and puppet can't do anything with them

Re: [Puppet Users] Puppet creates a file even though an exec fails

2012-11-07 Thread Chris Hirsch
This example *may* be able to get me though this: file{/tmp/file1: content=file1} ~ exec{ /bin/false: refreshonly = true, notify = Exec[file2]} - exec {file2: command = touch /tmp/file2, refreshonly = true } of course I'll have to create the file though the file2 exec instead. -- You

[Puppet Users] Re: for i in array do something - iteration irritation

2012-11-07 Thread jcbollinger
On Wednesday, November 7, 2012 3:15:15 PM UTC-6, earthgecko wrote: Hi I am sure that there is some way to iterate an array and do something for each in. It must be a wheel that has been invented (even if in a ruby function)? I have needed to do something like this a few times now and

[Puppet Users] Strange Issue with Symlink

2012-11-07 Thread jbrown
I'm seeing a strange issue with symlinks in Puppet 2.7.19. File { ensure = directory, owner= apache, group= apache, } file { /mnt/${site_name}: mode = 0660, } mount { /mnt/${site_name}: ensure = mounted, atboot = true, device =

[Puppet Users] Re: for i in array do something - iteration irritation

2012-11-07 Thread earthgecko
Hi John Thanks, that will solve my immediate requirement. Trying to keep it as puppet DSL and simple as possible. However, I will check out the create_resources() function further. Thanks for the pointers. -- You received this message because you are subscribed to the Google Groups Puppet

Re: [Puppet Users] File header including timestamp

2012-11-07 Thread jcbollinger
On Wednesday, November 7, 2012 8:17:50 AM UTC-6, j4m3s wrote: Thank you very much Matt. My searches hadn't turned that up - I was searching on keywords relating to templates I think. Thanks again, James. Do note that the reason that approach can work for cron jobs and hosts entries is

[Puppet Users] Re: Strange Issue with Symlink

2012-11-07 Thread jbrown
Please disregard the original post. I found the issue. I had the following incorrect require line in the link resource: require = [Mount[/mnt/${site_name}], File[/var/www/${site_name}/${drupal_shared_reldir}]], It should be require = Mount[/mnt/${site_name}], Cheers, Justin On

Re: [Puppet Users] Re: puppet failing to run

2012-11-07 Thread Asif Iqbal
On Wed, Nov 7, 2012 at 4:18 PM, Jeff McCune j...@puppetlabs.com wrote: On Tue, Nov 6, 2012 at 7:08 PM, Asif Iqbal vad...@gmail.com wrote: I did some clean up. Now I have only one version of puppet and facter. It still seems like you could have stale files. Could you verify there are no

Re: [Puppet Users] Re: puppet failing to run

2012-11-07 Thread Asif Iqbal
On Wed, Nov 7, 2012 at 9:51 PM, Asif Iqbal vad...@gmail.com wrote: On Wed, Nov 7, 2012 at 4:18 PM, Jeff McCune j...@puppetlabs.com wrote: On Tue, Nov 6, 2012 at 7:08 PM, Asif Iqbal vad...@gmail.com wrote: I did some clean up. Now I have only one version of puppet and facter. It still