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 wrote: > > > > On Wed, Nov 7, 2012 at 4:18 PM, Jeff McCune wrote: > >> On Tue, Nov 6, 2012 at 7:08 PM, Asif Iqbal wrote: >> >>> I did some clean up. Now I have only one version of puppet and facter. >> >> >> It still seems like you could have stale fil

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 wrote: > On Tue, Nov 6, 2012 at 7:08 PM, Asif Iqbal 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 ou

[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

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 entri

[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

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

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

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 inste

[Puppet Users] Announce: Puppet-Dashboard 1.2.14 Available

2012-11-07 Thread Moses Mendoza
Puppet Dashboard 1.2.14 is a bugfix release of Puppet Dashboard. This release is available for download at: https://downloads.puppetlabs.com/dashboard/puppet-dashboard-1.2.14.tar.gz Debian packages are available at https://apt.puppetlabs.com RPM packages are available at https://yum.puppetlabs.c

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 midstre

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

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

2012-11-07 Thread R.I.Pienaar
- Original Message - > From: "Chris Hirsch" > 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 is invalid > for

[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] Re: puppet failing to run

2012-11-07 Thread Jeff McCune
On Tue, Nov 6, 2012 at 7:08 PM, Asif Iqbal 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 %w{ puppet facter

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 wrote: > >> Hi all, >> >> I'm trying to figur

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

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 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 fail file2 should NOT

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

2012-11-07 Thread Chris Hirsch
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 fail file2 should NOT be created. Currently as you can see from the below output, the refresh failed yet file2 was still created.

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 g

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

[Puppet Users] Re: Puppet 3.0: Not authorized to call find on /file_metadata, more issues?

2012-11-07 Thread Nick Fagerlund
On Tuesday, November 6, 2012 2:44:25 PM UTC-8, Forrie wrote: > > > path ~ ^/file_(metadata|content)/files/etc/ > path /file > auth yes > allow /^(.+\.)?ourdomain.com$/ > allow_ip 10.0.0.0/8 > > This path is still wrong. The path in auth.conf needs to refer to the LOGICAL path that you set up wi

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 > > 'Feature

[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' yo

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 Wed,

[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

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

2012-11-07 Thread Stefan Heijmans
Hi, Just updated from 1.2.11 to 1.2.13 with the tarball ( http://downloads.puppetlabs.com/dashboard/puppet-dashboard-1.2.13.tar.gz) Starting puppet-dashboard-workers it gives the following message; # service puppet-dashboard-workers start Starting puppet-dashboard-workers: /opt/puppet-dashboa

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 di

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 i

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

2012-11-07 Thread Walter Heck
The open source dashboard is being deprecated indeed, as announced on this list by puppet Labs last month. The enterprise dashboard is a different story. Over time there will be a replacement for the open source dashboard, but it might be a while and it might not be a one to one replacement. Be a

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: /Stage[main]/Ssh::Hetzeneckerl/Ssh[long_ss

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 > > wrote: > > I have noticed that if I

Re: [Puppet Users] File header including timestamp

2012-11-07 Thread Matthew Burgess
On Wed, Nov 7, 2012 at 2:00 PM, j4m3s 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 > <%= Time.now().to_s()

[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' {

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

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

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 [mailto:puppet-users@googlegroups

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

[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] 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] 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 num

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

2012-11-07 Thread Greg Sutcliffe
This post to the list concerns PuppetLabs ceasing development on Dashboard - https://groups.google.com/forum/#!msg/puppet-users/j44EbTJY7HI/EQSJgh-g1fgJ A few people have expressed interest in taking Dashboard on, but I've seen no announcement that this has officially happened. Perhaps I missed it

[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 /etc/pu

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 i

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