[Puppet Users] Re: How to use Agent on localized Windows?

2013-01-28 Thread Евгений Верещагин
Puppet client 3.1b2 write other message. It works with US-ASCII only. пятница, 21 декабря 2012 г., 14:57:50 UTC+4 пользователь Евгений Верещагин написал: > > I try configure Puppet for m

Re: [Puppet Users] pocco - a puppet manifest documentation experiment

2013-01-28 Thread Erik Dalén
On Friday, 19 October 2012 20:11:51 UTC+2, Nan Liu wrote: > > On Fri, Oct 19, 2012 at 11:09 AM, Joe Topjian > > > wrote: > > Hi Nan, > > > > Like everyone else, I think this is great. > > > >> > >> Run pocco against a modules directory: > >> > >> pocco /etc/puppet/modules/ > > > > >

[Puppet Users] Req setup guide

2013-01-28 Thread Vishvendra Chauhan
Hello Guys, Can enyone provide me a step by step setup guide of puppet on rhel6.2 thanks in advanced. -- 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-u

[Puppet Users] Puppet // Puppet Dashboard // PuppetDB

2013-01-28 Thread Tony McMahon
Hi I have a frustrating problem with puppet.. I have (had) it all working, I'd gotten puppet-dashboard working and everything was fine :) I then thought I'd try to get puppetDB going so I can use the inventory facilities within puppet dashboard. It's working, sort of. If I click on a node I ca

Re: [Puppet Users] Puppet // Puppet Dashboard // PuppetDB

2013-01-28 Thread Erik Dalén
Puppet dashboard doesn't use the puppetdb reports (yet at least), so to get reports into puppet dashboard you need to use the http report handler and set reporturl to point to your puppet dashboard server. -- Erik Dalén On Monday 28 January 2013 at 15:20, Tony McMahon wrote: > Hi I have a

Re: [Puppet Users] Re: Dynamic yum.conf 'exclude' line

2013-01-28 Thread jcbollinger
On Friday, January 25, 2013 4:05:37 PM UTC-6, Gonzalo wrote: > > > On Sat, Jan 26, 2013 at 1:38 AM, jcbollinger > > > wrote: > >> >> Puppet's architecture does not lend itself to constructing values >> iteratively, and what Hiera brings to the table in that area does not apply >> to the scena

[Puppet Users] testing puppet manifests

2013-01-28 Thread Scott Anderson
The information I can find is somewhat spotty.. but is there a good way to test puppet manifests. It seems that using 'puppet apply --noop' only really tests the syntax. I am looking for more functional tests for things like templates before they go into a prod environment. Right now the way I hav

Re: [Puppet Users] How to increase performance of managed directories?

2013-01-28 Thread Schofield
On Thursday, January 10, 2013 1:57:34 AM UTC-5, Pete wrote: > > I used to manage a few directories recursively and it was very slow and > cumbersome. > I just manage the directories themselves if i need to and the files > individually. > It makes it a bit more complex initially but you get fine g

[Puppet Users] Puppet variable in site not accessible from class

2013-01-28 Thread Fabien Bagard
Hi, I am having trouble trying to auto configure network on a client : Her are the important content : Site.pp : import "classes/client.pp" import "classes/server.pp" import "classes/service1.pp" import "classes/default-company.pp" ... node 'puppet-test-ubuntu.sub.domain.com' inherits service1 {

[Puppet Users] Re: define()'s sloooow

2013-01-28 Thread jcbollinger
On Friday, January 25, 2013 9:29:00 AM UTC-6, asq wrote: > > W dniu piątek, 25 stycznia 2013 16:07:43 UTC+1 użytkownik jcbollinger > napisał: >> >> >> To be clear, it looks like you are talking about counts of defined type * >> instances*, not counts of distinct defined types. Is that right? >>

[Puppet Users] Re: hash/class problem

2013-01-28 Thread jcbollinger
On Friday, January 25, 2013 5:26:13 AM UTC-6, emzvargas wrote: > > Hello. > I'm kind of new with puppet and i'mhaving a problem using hashes with > classes or defines. > Here is an example of what im trying to do: > > $myhash = { key => "some value", > other_key => "some

[Puppet Users] Re: About How puppetserver handle reuest from client

2013-01-28 Thread jcbollinger
On Friday, January 25, 2013 7:16:19 AM UTC-6, sneha...@gmail.com wrote: > > Hi, >I am using puppet from last 2-3 months, I want to know about how puppet > internally handles request from puppet client, sequentially or parallel > execution as in Puppet Enterprise - Orchestration. Is There an

[Puppet Users] Re: define()'s sloooow

2013-01-28 Thread asq
W dniu poniedziałek, 28 stycznia 2013 16:49:38 UTC+1 użytkownik jcbollinger napisał: > > - 1 erb (35 lines with 5 variables substitution and 1 if/else clause) > > The erb evaluation is probably more costly than everything else about that > particular File declaration, combined. Especially so in

[Puppet Users] Re: define()'s sloooow

2013-01-28 Thread asq
W dniu poniedziałek, 28 stycznia 2013 17:04:51 UTC+1 użytkownik asq napisał: > > > on production we use passenger with no of puppetmaster processes equal to > number of threads (and queue of excessive catalog requests on haproxy on > front of it). > i mean - number of cores (8). -- You receive

[Puppet Users] Re: Extending a standard type

2013-01-28 Thread jcbollinger
On Saturday, January 26, 2013 6:55:57 PM UTC-6, Matthew Pounsett wrote: > > I'm trying to extend the standard 'user' type to add maintenance of some > of the contents of a user's home directory, and I'm trying to avoid > creating an entirely new custom type if I can. The approach I'm taking is

[Puppet Users] Referencing a variable from one class in another

2013-01-28 Thread Ti Leggett
I have one module, kibana, that defines a file snippet for the apache module to fulfill (e.g., /etc/https/conf.d/kibana.conf). The apache::params class defines a variable of the path of where this snippet should be placed, $config_d. The snippet uses this variable in its definition. However, i

Re: [Puppet Users] testing puppet manifests

2013-01-28 Thread Gareth Rushgrove
The best starting point is probably rspec-puppet. The tutorial is a good starting point and you'll find a growing number of modules available with small test suites. These are good for testing logic based on passed parameters, or template rendering. http://rspec-puppet.com/tutorial/ Gareth On

Re: [Puppet Users] Referencing a variable from one class in another

2013-01-28 Thread Calvin Walton
On Mon, 2013-01-28 at 08:24 -0800, Ti Leggett wrote: > I have one module, kibana, that defines a file snippet for the apache > module to fulfill (e.g., /etc/https/conf.d/kibana.conf). The apache::params > class defines a variable of the path of where this snippet should be > placed, $config_d. T

Re: [Puppet Users] Referencing a variable from one class in another

2013-01-28 Thread Ti Leggett
On Jan 28, 2013, at 10:56 AM, Calvin Walton wrote: > The fix is trivial, just add an "include apache::params" (or even just > "include apache") at the top of your kibana::apache class, like so: > > # modules/kibana/manifests/apache.pp > class kibana::apache ( >$version = $kibana::params::pa

[Puppet Users] puppetmaster loads ruby gems which significantly slows it down

2013-01-28 Thread asq
as a side check for "define()'s slw" topic, i've shaved my rvm ruby from all gems (but passenger and gpgme used by hiera) to observe compilation times drop in half. wtf? why is puppet/ruby loading all those gems it doesn't need? i share my rvm ruby with foreman, so i had installed some 60

Re: [Puppet Users] Referencing a variable from one class in another

2013-01-28 Thread Calvin Walton
On Mon, 2013-01-28 at 11:00 -0600, Ti Leggett wrote: > On Jan 28, 2013, at 10:56 AM, Calvin Walton wrote: > > > The fix is trivial, just add an "include apache::params" (or even just > > "include apache") at the top of your kibana::apache class, like so: > > > > # modules/kibana/manifests/apache

[Puppet Users] Re: Extending a standard type

2013-01-28 Thread Matthew Pounsett
On Monday, 28 January 2013 11:14:59 UTC-5, jcbollinger wrote: > define site::user ( >> $comment, >> $ensure, >> $home, >> $name = $title, >> > > > Don't do that ($name = $title). Puppet provides it automatically (both > the parameter and the default). > In th

Re: [Puppet Users] Referencing a variable from one class in another

2013-01-28 Thread Luke Bigum
On Monday, January 28, 2013 5:00:24 PM UTC, Ti Leggett wrote: > > Thanks for the response. > > Can multiple classes include the same class. Let's say I instantiate the > apache class from manifests/nodes.pp which in turns includes > apache::params. Can kibana include apache::params then as well

Re: [Puppet Users] Referencing a variable from one class in another

2013-01-28 Thread Calvin Walton
On Mon, 2013-01-28 at 09:12 -0800, Luke Bigum wrote: > On Monday, January 28, 2013 5:00:24 PM UTC, Ti Leggett wrote: > However, let me warn you against going overboard with having classes > include other classes from other modules. It can be annoying to track down > where resources coming from f

Re: [Puppet Users] Re: Dynamic yum.conf 'exclude' line

2013-01-28 Thread Aaron Grewell
Take a look at the yum versionlock plugin. It allows you to lock a particular package at a given version for situations like this. We use the following define to manage our locked packages. If I were writing it today I'd probably use file_line, but it's worked well for us so I've had more import

Re: [Puppet Users] Puppet Support for Windows

2013-01-28 Thread Josh Cooper
Hi Damian, On Sat, Jan 26, 2013 at 1:12 PM, wrote: > Hi All, > > I am currently looking at using PE to provide our config management (and > orchestrated deployment via MCollective) for our app stack. It is currently > used to manage the Linux OS estate but not yet for Windows. I'd like to use >

Re: [Puppet Users] All nodes are showing unresponsive

2013-01-28 Thread James Sweeny
I should note also that the Console determines the time a node last submitted a report based on the agent's timestamp. If your agents' time is out of sync from the master, it is common to see this. On Friday, January 25, 2013 10:47:01 AM UTC-5, Gary Larizza wrote: > > Mamta, > > Nodes go 'Unresp

Re: [Puppet Users] Puppet Support for Windows

2013-01-28 Thread damian . folwell
Hi Josh, First of all thanks for the quick reply. The main priorities to make Puppet usable on Windows for us would be: 1> Control complete state of the DACL for grant (we don't use deny). 2> Control inheritance on DACL (at the same time as being able to control other DACL grant entries for t

Re: [Puppet Users] Invalid resource type anchor.

2013-01-28 Thread Ryan Trinder
I noticed that puppet modules installs modules in */etc/puppet/modules*, which is different than where I keep my modules. I added* /etc/puppet/modules *to the* modulepath *in puppet.conf, fixed the problem On Tuesday, October 9, 2012 11:01:55 AM UTC-4, Fran Rodríguez wrote: > > Thanks Hugh, you

Re: [Puppet Users] OS X Lion group membership not updated

2013-01-28 Thread Doug Mayer
Hi Gary, Thanks for the response. I am running Facter v1.6.17 and Puppet v2.7.20 (both are the latest versions for Ubuntu 12 LTS, so I wanted to run the same version on OS X if possible). Running OS X Server v10.7.5. Every time I run, it says that it changes the groups (it always says it was "")

[Puppet Users] Announce: Puppet Dashboard 1.2.21 available [ security release ]

2013-01-28 Thread Matthaus Owens
Puppet Dashboard 1.2.21 is now available. This release of Puppet Dashboard addresses CVE-2013-0333. All users are strongly encouraged to update when possible. This vulnerability exposes ActiveSupport to unsafe query generation. More information on the vulnerability can be found here: http://cve

[Puppet Users] How to collect hostnames or host ips

2013-01-28 Thread Dusty Doris
I'd like to be able to collect all the hostnames (fqdn) or ips of certain hosts to be used in setting up firewall rules. I'd like to search for hosts that have included a particular class, perhaps by simply setting a tag when that resource is included. eg: node 'node1' { include 'somewebcla

Re: [Puppet Users] Extending a standard type

2013-01-28 Thread Keith Burdis
You can set the default values to undef and then the standard user type will use its defaults (if any). It usually makes sense to default the ensure parameter to 'present' though because if it is undef then nothing will happen: define site::user ( $ensure = 'present', $comment

[Puppet Users] Apache module

2013-01-28 Thread Alex Harvey
Hi all, I've spent a bit of time today investigating whether or not I can use the Puppet Labs Apache module - https://forge.puppetlabs.com/puppetlabs/apache I've noted this helpful blog post - http://blog.akquinet.de/2011/11/23/managing-an-apache-server-with-puppet/ However after examining the

[Puppet Users] Puppet issues

2013-01-28 Thread linuxhack2012
Hi, I am newbie in puppet and just learning the things. I have created the module to create users which is worked great. But I have created another one for sysctl which doesn't updated on agent server and as well on the puppet master itself. Working for users add: = [root@puppet ~]# c

Re: [Puppet Users] Puppet issues

2013-01-28 Thread Keith Burdis
When you specify "include sysctl" then Puppet includes the sysctl class and this class only ensures that the /etc/sysctl.conf file exists: class sysctl { file { "/etc/sysctl.conf": ensure => "present", owner => "root", group => "root", mode => 0644, }

[Puppet Users] How to assign variable for an URL

2013-01-28 Thread yarlagadda ramya
Hi all, I have written the following code... $someendpoint1="12345" $someendpoint2="54321" $prop = "/app/tcs/temp.properties" file{'temp.properties': path =>"$prop", ensure =>'present', content =>"$someendpoint1=http://sdrhuiswresw:8080/ersfrsdrs/sdersrsrs $someendpoint2=http://sdrhuiswresw:8080

[Puppet Users] Puppet Agent does not connect to master

2013-01-28 Thread Rainer Bendig
Hi, we are running several debian squeeze (64 bit, no backports) and a puppetmaster (3.0.2). now i wanted to upgrade the agents from 3.0.1 to 3.0.2, and got stuck... the "new" 3.0.2 agents don't connect to the master... 3.0.1 agents still do... i run puppet master in debug mode, and didn't see