[Puppet Users] Re: from= in ssh key

2012-03-28 Thread Wil Cooley
On Wednesday, March 28, 2012 6:44:09 PM UTC-7, Brandon wrote: > > Fairly new to puppet here and trying to figure out a couple of issues > with distributing ssh keys. First one is how can I distribute a > public key with the from= field at the beginning. What I currently > have working is > >

Re: [Puppet Users] from= in ssh key

2012-03-28 Thread Tim Sharpe
I believe you need to add "options => 'from="1.1.1.1"'" to your resource to do this. Cheers, Tim On Thursday, 29 March 2012 at 12:44 PM, Brandon wrote: > Fairly new to puppet here and trying to figure out a couple of issues > with distributing ssh keys. First one is how can I distribute a > p

[Puppet Users] from= in ssh key

2012-03-28 Thread Brandon
Fairly new to puppet here and trying to figure out a couple of issues with distributing ssh keys. First one is how can I distribute a public key with the from= field at the beginning. What I currently have working is ssh_authorized_key { "brandon": user => "brandon", ensure => "present

Re: [Puppet Users] Could not load confine test 'operatingsystem': cannot load such file -- puppet/provider/confine/operatingsystem

2012-03-28 Thread Denmat
Hi, Is that a ruby 1.9.1 and 1.9.3 issue? Did you upgrade ruby on the host? Den On 29/03/2012, at 7:07, lth wrote: > Hello, > > I'm having some trouble. I keep getting the following warnings when > trying to run: > > $ puppet master --no-daemonize > /usr/local/build/puppet-bundle/vendor/gem

Re: [Puppet Users] Empty node definition mysteriously runs yum class!

2012-03-28 Thread Denmat
Hi, Grep your manifest for all 'yum' references (modules and manifest directories). If that doesn't show up anything please provide more detail on your manifests. Den On 29/03/2012, at 7:00, Ryan Bowlby wrote: > I'm having an issue where every single puppet node included our yum > class as pa

[Puppet Users] Re: Could not load confine test 'operatingsystem': cannot load such file -- puppet/provider/confine/operatingsystem

2012-03-28 Thread lth
Thanks for the quick response. However the agent is receiving an error and doesn't get the catalog. We're getting this: Ruby (Rack) application could not be started The application has exited during startup (i.e. during the evaluation of config/environment.rb). The error message can be found bel

RE: [Puppet Users] Could not load confine test 'operatingsystem': cannot load such file -- puppet/provider/confine/operatingsystem

2012-03-28 Thread Kinzel, David
These are harmless: http://projects.puppetlabs.com/issues/11325 >-Original Message- >From: puppet-users@googlegroups.com >[mailto:puppet-users@googlegroups.com] On Behalf Of lth >Sent: Wednesday, March 28, 2012 2:08 PM >To: Puppet Users >Subject: [Puppet Users] Could not load confine tes

[Puppet Users] Could not load confine test 'operatingsystem': cannot load such file -- puppet/provider/confine/operatingsystem

2012-03-28 Thread lth
Hello, I'm having some trouble. I keep getting the following warnings when trying to run: $ puppet master --no-daemonize /usr/local/build/puppet-bundle/vendor/gems/ruby/1.9.1/gems/ puppet-2.7.12/lib/puppet/external/pson/pure.rb:7:in `': iconv will be deprecated in the future, use String#encode i

[Puppet Users] Empty node definition mysteriously runs yum class!

2012-03-28 Thread Ryan Bowlby
I'm having an issue where every single puppet node included our yum class as part of the catalog. In all instances the nodes node definition was empty. Has anyone experienced something like this before? Is the yum class colliding with an internal class? We do not define a node default or use any n

[Puppet Users] Puppet Enterprise 2.5 is here

2012-03-28 Thread Michael Stahnke
As you may have seen by now, today marks the release of Puppet Enterprise 2.5. The new features are outlined by Luke Kanies in today's blog post[1]. Some feature highlights: * Puppet Module Tool is a completely new design, tightly integrated in the Puppet Forge, and available as puppet application

[Puppet Users] Strange behaviour of the exec / command function

2012-03-28 Thread Gael
Hi all, I am currently creating a java class to automate its installation. You can find the class definition is below. In a nutshell, it is creating a temp folder to put the ".bin" file, copy the .bin file in the folder then runs the installation. Since running the bin will create a couple of ".

[Puppet Users] retrieving module directory

2012-03-28 Thread Antidot SAS
Hi everyone, I have a puppet master/client infrastructure setup with apache. When on the same datacenter I don't have any problem. I am trying to use another datacenter, so I setup the fileserver.conf as followed: # Files in the /path/to/files directory will be served # at puppet:///mount_point/.

[Puppet Users] Re: Problems with custom type and provider, resulting file doesn't get updated

2012-03-28 Thread Michael K
Hello Nan, Ok, the article by Brice gives me some pointers. I'll see if I can get it working using properties, and write back with my findings tomorrow. If it works, I'll provide a complete working example for others to learn from. Many thanks! Michael -- You received this message because yo

[Puppet Users] Re: Problems with custom type and provider, resulting file doesn't get updated

2012-03-28 Thread deet
> create a md5 sum or something of both the file and my newly created content I think what you would want to do is pull out the dbnames from the tnsname.ora file and then compare that list against what the resource is trying to set. If the desired dbnames list and the list currently in the tnsn

Re: [Puppet Users] Re: Problems with custom type and provider, resulting file doesn't get updated

2012-03-28 Thread Nan Liu
On Wed, Mar 28, 2012 at 8:42 AM, Michael K wrote: > Hello Derek, > > Thanks for the quick reply. I've been thinking along those lines as well, > create a md5 sum or something of both the file and my newly created content > string. Problem is: is this the correct way to do it? I've found multiple >

[Puppet Users] Re: Problems with custom type and provider, resulting file doesn't get updated

2012-03-28 Thread Michael K
Hello Derek, Thanks for the quick reply. I've been thinking along those lines as well, create a md5 sum or something of both the file and my newly created content string. Problem is: is this the correct way to do it? I've found multiple type & provider examples on github which DO NOT do this. A

[Puppet Users] Re: Problems with custom type and provider, resulting file doesn't get updated

2012-03-28 Thread deet
>   def exists? >     File.file? resource[:path] >   end > end Michael. It looks like in your exists? method you are just checking that the tnsnames.ora file exists.So if that file is present the exists? method returns a true which is saying that the resource is present and accurate.In t

Re: [Puppet Users] Database and user not created (Puppetlabs mysql module)

2012-03-28 Thread Luca Spiller
Moteo, did you get this issue resolved? I've used the Puppetlabs MySql module in the past, but I'm now getting these issues setting up a new machine with Ubuntu 11.10. I've used the same Puppet scripts on other Ubuntu 11.10 machines previously with no issues. On Thursday, 15 March 2012 10:51:04

[Puppet Users] Re: puppetd not checking in

2012-03-28 Thread jcbollinger
On Mar 28, 5:09 am, John Kennedy wrote: > We have set up Nagios to monitor the access time for > /var/lib/puppet/state/state.yaml to ensure that puppetd is checking in in a > timely manner. > It appears as though it is not because state.yaml is over 39,000 seconds > old. If I manually run puppet

[Puppet Users] Problems with custom type and provider, resulting file doesn't get updated

2012-03-28 Thread Michael K
Hello Everyone, I've implemented a custom type and provider to generate a file, but am having some trouble with getting it to work right. Googling, reading the docs and searching the group here haven't led to a solution, so I decided to ask for help. As I said I've created a custom type and pr

Re: [Puppet Users] Re: Facts loading 4-5x

2012-03-28 Thread Michael Stahnke
I am fairly certain that 2.7.12 fixes these issues. On Wed, Mar 28, 2012 at 6:58 AM, Krzysztof Wilczynski wrote: > Hi, > > It is a known issue in older version. A quick search yields: > > http://projects.puppetlabs.com/issues/3741 > http://projects.puppetlabs.com/issues/8341 > > And probably more

[Puppet Users] Re: Facts loading 4-5x

2012-03-28 Thread Krzysztof Wilczynski
Hi, It is a known issue in older version. A quick search yields: http://projects.puppetlabs.com/issues/3741 http://projects.puppetlabs.com/issues/8341 And probably more could pop-up in results (citation needed). KW On Wednesday, 28 March 2012 14:51:03 UTC+1, Christopher Johnston wrote: > > Is

[Puppet Users] Facts loading 4-5x

2012-03-28 Thread Christopher Johnston
Is there any reason why my facts are loading 4-5x (I have even seen 6x) on puppet client runs? I am running 2.7.9, I remember running 2.6 and seeing usually 2x. Is there a known bug here or some configuration problem that could be causing this? Some of my facts collect/parse a bunch of data and

Re: [Puppet Users] Hash iteration order in a template not consistent

2012-03-28 Thread Sergey Zhuga
Hi, I did it something like that: <% aliases.sort.each do |alias| -%> Alias <%= alias.first %> <%= alias.last %> <% end -%> Regards. Hi, I did some basic googling, but didn't find an answer yet. I am sorry if this is a FAQ. In a manifest for creating an Apache config file, I define a h

Re: [Puppet Users] Hash iteration order in a template not consistent

2012-03-28 Thread R.I.Pienaar
- Original Message - > From: "Martijn Grendelman" > http://serverfault.com/questions/368784/puppet-and-templates-how-to-loop-sequently-and-not-randomly > > which suggests to do something like > > <% aliases.sort_by {|key, value| key}.each_pair do |key, val| -%> > <% end -%>

[Puppet Users] Hash iteration order in a template not consistent

2012-03-28 Thread Martijn Grendelman
Hi, I did some basic googling, but didn't find an answer yet. I am sorry if this is a FAQ. In a manifest for creating an Apache config file, I define a hash like this: $aliases = { '/foo/' => '/home/foo/www/', '/bar/' => '/home/bar/www/', '/baz/' => '/home

[Puppet Users] puppetd not checking in

2012-03-28 Thread John Kennedy
We have set up Nagios to monitor the access time for /var/lib/puppet/state/state.yaml to ensure that puppetd is checking in in a timely manner. It appears as though it is not because state.yaml is over 39,000 seconds old. If I manually run puppet agent --test on the client then puppet does run and

Re: [Puppet Users] Re: dsl check if port is open

2012-03-28 Thread Krzysztof Wilczynski
Hi David, No problem, although there are few things to consider. For instance, I would avoid unneeded fork(), therefore no need to use netcat if you can achieve the same thing with pure Ruby (you can literally copy and paste code from the function I have created for you). Remember, that in term