Re: [Puppet Users] RSpec test to verify variable/parameter declaration

2012-06-04 Thread Markus Falb
On 24.4.2012 00:49, Tim Sharpe wrote: > So, rspec-puppet can't and won't ever work this way. What it's testing is > the resulting catalogue of Puppet resources that your host executes (the > behaviour of Puppet). Instead of testing that a variable is defined, you > should be testing the resour

[Puppet Users] node yaml files on master

2012-06-04 Thread denmat
Hi all, Can anyone tell me what config setting generates the yaml output in / var/lib/puppet/yaml/node? I'm getting output in /var/lib/puppet/yaml/facts but not node. This is puppet v3.rc2 and I've specified report = true all over the place but nothing is being produced (except of course in /var

[Puppet Users] Re: node yaml files on master

2012-06-04 Thread denmat
Think I might be already answering my own question but it appears that this is a change in v3 - have downgraded to v2.7 and it appears. However I did find this while grep'ing through the source code of v3, puppet node find node2.mylocal --terminus plain --render-as yaml It appears very similar i

[Puppet Users] Appending to facts through REST api

2012-06-04 Thread Cor Bosman
Hi all, im playing with the REST api to add some custom facts to nodes. Am I right in concluding that you can't add to the facts of a node, only replace all facts, using the REST api? I want to just add a single custom fact to a set of nodes, preferably through the api. Regards, Cor -- You rec

[Puppet Users] Nginx + passenger + puppetmaster

2012-06-04 Thread vulzscht
Hello! Are there any success stories with nginx, passenger and puppetmaster? I'm trying to setup mentioned scheme and have problems - client cannot get its own catalog (removed only hostnames and domain names) err: Could not retrieve catalog from remote server: Error 403 on SERVER: Forbidden req

[Puppet Users] Re: Update .k5login with Puppet

2012-06-04 Thread Paul Tötterman
Hi Dhaval, > can you anyone suggest me how can i update .k5login to append new entry or > remove existing line > Can you use the file_line type in puppet stdlib? https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/type/file_line.rb Cheers, Paul -- You received this mes

[Puppet Users] How to view files content in dashboard

2012-06-04 Thread mac01
Hi, I want to dispaly a files content from server to dashboard for which I had created a custom facter but unable to view the same in dashboard ? I am able to view the files content under facter & /var/lib/puppet/yaml/facts. but how can i upload or display the files content in dashboard as I a

[Puppet Users] Re: override parameter within base class?

2012-06-04 Thread jcbollinger
On Jun 1, 9:44 pm, Ryan Bowlby wrote: > Thanks John, but it appears the ability to override a parent class > parameter is limited to the resources DEFINED within that class. Subclasses can override only parameters of resources *declared* by their parent classes. And that's exactly what I sugg

[Puppet Users] Re: Nginx + passenger + puppetmaster

2012-06-04 Thread Rémi
Hi, Check file permission of /etc/puppet/rack/public/config.ru and restart Nginx. The user/group must be "puppet". Take a look at http://binbash.fr/2012/01/16/installer-un-serveur-puppet-scalable-partie-2/ (in french). Regards On Monday, June 4, 2012 11:00:34 AM UTC+2, vulzscht wrote: > > He

[Puppet Users] Re: Announce: Hiera-Puppet 1.0.0rc1 Available

2012-06-04 Thread Jos Houtman
Hello, I am trying to install the hiera(-puppet) 1.0 rc's but I am having trouble installing from source. The goal is a 3.0 puppet installation with hiera. The rake file seems to be broken because it fails on the require on the 3rd line. What am i missing? Jos On Wednesday, May 23, 2012 1:

[Puppet Users] Need help resolving bad Puppet module entries for STIG

2012-06-04 Thread Swampcritter
I discovered that a number of our STIG Puppet modules are failing. I am thinking its because the code is wrong because when I make a quick chance to the actual code being used, then the code actually works as intended. STIG Puppet Code Repository: https://fedorahosted.org/aqueduct/browser/trunk/

[Puppet Users] Re: error trying ENC.

2012-06-04 Thread Rémi
Hi, i couldn't reproduce your problem with Puppet 2.7.14 : # tree /etc/puppet/modules /etc/puppet/modules/ └── hola └── manifests └── init.pp # cat /etc/puppet/modules/hola/manifests/init.pp class hola( $mens = "HELLO" ) { notify{"puppet": message => "$mens"} } # /usr/local/bin/e

Re: [Puppet Users] Appending to facts through REST api

2012-06-04 Thread Jeff McCune
You are correct. The REST API for facts does not have the ability to merge a new fact and value into the existing set. You could retrieve the current set, update it and replace it. Coukd you let me know what you're trying to accomplish? Maybe there is another approach. -Jeff On Jun 4, 2012, at

Re: [Puppet Users] rspec spec_helper

2012-06-04 Thread Jeff McCune
On Sun, Jun 3, 2012 at 8:06 AM, Markus Falb wrote: > Hi, > I was playing with rspec and every time I find a possible improvement > that could be made in spec_helper or rakefile I have to change it in > every module that is using rspec tests. So maybe these things could be > centralized, I thought

[Puppet Users] Re: error trying ENC.

2012-06-04 Thread erasmo
Thanks remi for your answer, I have 2.6.4 puppet version installed from ubuntu natty (11.04) repos (initials one, without any upgrade of them). I'm don't pretty sure if uninstall packages and install it via gems. I'm testing having agent and master locally, i'm wondering, is there any problem

[Puppet Users] Re: error trying ENC.

2012-06-04 Thread erasmo
Thanks remi for your answer, I have 2.6.4 puppet version installed from ubuntu natty (11.04) repos (initials one, without any upgrade of them). I'm don't pretty sure if uninstall ubuntu packages and install all via gems. I'm testing having agent and master locally, i'm wondering, is there any

[Puppet Users] Windows architecture fact

2012-06-04 Thread Josh Cooper
We recently fixed the hardwaremodel and architecture facts on Windows as they were always returning i386[1]. The change will be in the upcoming 1.6.10 release of Facter[2]. The new behavior is that hardwaremodel will return something like i686, ia64, x64, etc, while the architecture fact will retur

Re: [Puppet Users] rspec spec_helper

2012-06-04 Thread Nan Liu
On Mon, Jun 4, 2012 at 9:06 AM, Jeff McCune wrote: > On Sun, Jun 3, 2012 at 8:06 AM, Markus Falb wrote: >> Hi, >> I was playing with rspec and every time I find a possible improvement >> that could be made in spec_helper or rakefile I have to change it in >> every module that is using rspec tests

Re: [Puppet Users] Re: node yaml files on master

2012-06-04 Thread Jeff McCune
On Mon, Jun 4, 2012 at 3:48 AM, denmat wrote: > Think I might be already answering my own question but it appears that > this is a change in v3 - have downgraded to v2.7 and it appears. In Puppet 2.7 this is handled by the save method called on the node instance of Puppet::Node::Yaml which is a s

Re: [Puppet Users] Re: Announce: Hiera-Puppet 1.0.0rc1 Available

2012-06-04 Thread Matthaus Litteken
Line 3 of hiera's rakefile is require 'rspec/core/rake_task'. Rspec can be installed via packages or gems, but you shouldn't need to use the rake tasks to install from source. To use hiera or hiera-puppet from source, just add hiera/lib and/or hiera-puppet/lib to your RUBYLIB. So, for example, if

Re: [Puppet Users] Re: Configuring Puppet for OnApp Cloud

2012-06-04 Thread Jeff McCune
On Sun, Jun 3, 2012 at 11:48 PM, ankush grover wrote: > My approach will be like this > > generate uuid through uuidgen command and put that in certname under > puppet.conf > start the puppet client > on the server allow autosigning of the client machines and a default policy > > The issue with t

Re: [Puppet Users] How do I get a PE 2.5.1 agent to run as a non-root user in Solaris?

2012-06-04 Thread Jeff McCune
On Wed, May 30, 2012 at 10:45 AM, Berry Sizemore wrote: > Hi, > > Some months ago I got PE 1.5.6 agent running as a non-root user on Solaris > 10.  I upgraded my agents to PE 2.5.1 and now I cannot successfully start > them as non-root user.  I get no error message or logs. Berry, Would you mind

[Puppet Users] Re: error trying ENC.

2012-06-04 Thread Rémi
Hi, You need Puppet 2.6.5 to use ENC and parametized class. "As of Puppet 2.6.5, parameterized classes can be declared by external node classifiers; see the ENC documentation for details." It's time to upgrade ;-) Regards On Monday, June

[Puppet Users] Re: Autoscaling with Puppet

2012-06-04 Thread Matthew
I'm in the same boat here. I have a puppet master server that provides config to a few different classes of machines. I'm struggling with a way to have instances from one autoscale group come up, and attach to a "webgroup-a" or "webgroup-b" puppet configuration. Is there a way for a puppet cli

[Puppet Users] mysql or postgresql

2012-06-04 Thread akaroot
Hi! Which database would you recommend to use mysql or postgresql for puppet? Estimated number of nodes 3, they send reports every 30 minutes. Thanks -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet

Re: [Puppet Users] Re: Autoscaling with Puppet

2012-06-04 Thread Jeff McCune
On Mon, Jun 4, 2012 at 1:01 PM, Matthew wrote: > I'm in the same boat here. I have a puppet master server that provides > config to a few different classes of machines. I'm struggling with a way to > have instances from one autoscale group come up, and attach to a > "webgroup-a" or "webgroup-b" pu

[Puppet Users] Re: error trying ENC.

2012-06-04 Thread eduardo
Thank you very much, I had read it many , many , many times, but I don't realize about that HEADLINE. I appreciate your help and I'm going to upgrade. Regards, eduardo. On 4 jun, 15:39, Rémi wrote: > Hi, > > You need Puppet 2.6.5 to use ENC and parametized class. > "As of Puppet 2.6.5,

Re: [Puppet Users] Re: node yaml files on master

2012-06-04 Thread denmat
Thanks Jeff, Cucumber-puppet uses those files as input for testing. That's the only reason I noticed. So in this case, if I can use the puppet node find command I can populate the yaml directories for cucumber. On Tue, Jun 5, 2012 at 3:17 AM, Jeff McCune wrote: > On Mon, Jun 4, 2012 at 3:48 AM,

[Puppet Users] Re: How do puppet transform group with username in /etc/sudoers file

2012-06-04 Thread Matt
There is a trick I use on my infrastructure, it is around having an include dir for sudoers. You can write a custom function to retrieve the data from the database and return it as a hash. You would need to do a define if you want to define each user sudo permissions as a individual resource. A

Re: [Puppet Users] mysql or postgresql

2012-06-04 Thread Denmat
Hi, You should checkout puppetdb which currently locks you into PostgreSQL. Docs here: http://docs.puppetlabs.com/#puppetdbpuppetdb09 It's new so may be buggy - though I haven't seen any reports on this (haven't looked ;) ) Den On 05/06/2012, at 4:05, akaroot wrote: > Hi! > Which database

Re: [Puppet Users] mysql or postgresql

2012-06-04 Thread Gary Larizza
On Mon, Jun 4, 2012 at 7:54 PM, Denmat wrote: > Hi, > > You should checkout puppetdb which currently locks you into PostgreSQL. > > Docs here: > http://docs.puppetlabs.com/#puppetdbpuppetdb09 > > It's new so may be buggy - though I haven't seen any reports on this (haven't > looked ;) ) PuppetDB

Re: [Puppet Users] mysql or postgresql

2012-06-04 Thread Brian Gupta
On Mon, Jun 4, 2012 at 11:19 PM, Gary Larizza wrote: > On Mon, Jun 4, 2012 at 7:54 PM, Denmat wrote: >> Hi, >> >> You should checkout puppetdb which currently locks you into PostgreSQL. >> >> Docs here: >> http://docs.puppetlabs.com/#puppetdbpuppetdb09 >> >> It's new so may be buggy - though I ha

Re: [Puppet Users] mysql or postgresql

2012-06-04 Thread Gary Larizza
On Mon, Jun 4, 2012 at 8:48 PM, Brian Gupta wrote: > On Mon, Jun 4, 2012 at 11:19 PM, Gary Larizza wrote: >> On Mon, Jun 4, 2012 at 7:54 PM, Denmat wrote: >>> Hi, >>> >>> You should checkout puppetdb which currently locks you into PostgreSQL. >>> >>> Docs here: >>> http://docs.puppetlabs.com/#pu

Re: [Puppet Users] mysql or postgresql

2012-06-04 Thread Brian Gupta
On Tue, Jun 5, 2012 at 12:07 AM, Gary Larizza wrote: > On Mon, Jun 4, 2012 at 8:48 PM, Brian Gupta wrote: >> On Mon, Jun 4, 2012 at 11:19 PM, Gary Larizza wrote: >>> On Mon, Jun 4, 2012 at 7:54 PM, Denmat wrote: Hi, You should checkout puppetdb which currently locks you into Post

Re: [Puppet Users] mysql or postgresql

2012-06-04 Thread Ryan Coleman
On Mon, Jun 4, 2012 at 9:07 PM, Gary Larizza wrote: > Reports, on the other hand, contain information on transactional > events FROM a Puppet run.  Reports are stored in the Puppet Dashboard, > which is a separate database I think it's also important to point out, since you weren't specific in yo

Re: [Puppet Users] Re: Configuring Puppet for OnApp Cloud

2012-06-04 Thread ankush grover
On Mon, Jun 4, 2012 at 10:56 PM, Jeff McCune wrote: > On Sun, Jun 3, 2012 at 11:48 PM, ankush grover wrote: >> My approach will be like this >> >> generate uuid through uuidgen command and put that in certname under >> puppet.conf >> start the puppet client >> on the server allow autosigning of

[Puppet Users] Re: Update .k5login with Puppet

2012-06-04 Thread Dhaval
On Monday, June 4, 2012 6:13:45 PM UTC+5:30, Paul Tötterman wrote: > > Hi Dhaval, > > >> can you anyone suggest me how can i update .k5login to append new entry >> or >> remove existing line >> > > Can you use the file_line type in puppet stdlib? > https://github.com/puppetlabs/puppetlabs-s

[Puppet Users] Re: mysql or postgresql

2012-06-04 Thread akaroot
I do not use puppet dashboard, I use my own software for store reports and generating hosts config. The database used to store inventory data (Facter facts). It create the most load on the database (insert many requests). -- You received this message because you are subscribed to the Google Group

Re: [Puppet Users] Re: Configuring Puppet for OnApp Cloud

2012-06-04 Thread Jeff McCune
On Mon, Jun 4, 2012 at 10:17 PM, ankush grover wrote: > On Mon, Jun 4, 2012 at 10:56 PM, Jeff McCune wrote: >> On Sun, Jun 3, 2012 at 11:48 PM, ankush grover >> wrote: >>> My approach will be like this >>> >>> generate uuid through uuidgen command and put that in certname under >>> puppet.conf