Re: [Puppet Users] Puppet client runs outside of office hours

2012-12-11 Thread DenMat Gone
Cron would be your best bet. You can manage cron jobs via puppet. kdo wrote: >anyone have any smart ideas around scheduling puppet client runs during >specific times ? such as outside of office hours ? > > >any options that can be set in the puppet.conf for example ? > >-- >You received this m

[Puppet Users] Re: Puppet client runs outside of office hours

2012-12-11 Thread Chris O'Donnell
Run puppet agent via cron. Add in a random delay so that all the clients don't hit the server at the same time. I use the following script and set to run every 30 minutes: #!/bin/bash # Grab a random value between 0-1740 (29 minutes). value=$RANDOM while [ $value -gt 1740 ] ; do value=$RANDOM

[Puppet Users] Puppet client runs outside of office hours

2012-12-11 Thread kdo
anyone have any smart ideas around scheduling puppet client runs during specific times ? such as outside of office hours ? any options that can be set in the puppet.conf for example ? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view thi

Re: [Puppet Users] Re: Module class parameter override question

2012-12-11 Thread Ugo Bellavance
On Tue, Dec 11, 2012 at 3:47 PM, Jason Cochard wrote: > This class does not accept any parameters, thus why it is failing. You > could easily modify it though to do so: > > class apache::service ( $enable = "true",) > { > > ...snip... > > service { $http_service: > ensure => running, >

[Puppet Users] Re: metadata.json and 2.6

2012-12-11 Thread Ugo Bellavance
On Friday, December 7, 2012 8:41:27 PM UTC-5, Ugo Bellavance wrote: > > Hi, > > We've created modules based on the standard, but I had to remove the > metadata.json file in the modules because I got these errors when the > metadata.json file was there: Could not retrieve catalog from remote > s

Re: [Puppet Users] user resource, get password from command on master

2012-12-11 Thread Jakov Sosic
On 12/10/2012 04:47 PM, jcbollinger wrote: There are good, industry-standard approaches to centralized password management. You should really choose among those instead of rolling your own. One of the best-regarded is LDAP, and you could also consider NIS (just to name two). The former is mor

[Puppet Users] All Hosts Shown as Unresponsive. Worker Restart Fails. Clients Seem Happy?

2012-12-11 Thread Dave Mankoff
[On my dev server] For the past 3 days, my puppet master has shown all of the hosts as unresponsive. However, when I log into one of the hosts and run "puppet agent --test" everything seems to run without complaint. Meanwhile the master shows an ever increasing number of pending tasks. When I t

Re: [Puppet Users] How to group hosts?

2012-12-11 Thread Jakov Sosic
On 12/09/2012 04:39 PM, Stefan Goethals wrote: Serving facts to nodes via puppet... That means you already know those facts in puppet so you don't need to serve them to the nodes anymore :-) Yeah kinda beats the purpose of facter LOL :) But that's why I'm asking this thread in the first place.

Re: [Puppet Users] exec GIT Variable PS1

2012-12-11 Thread Jakov Sosic
On 12/11/2012 05:18 PM, MaTi Villagra wrote: Hello I'm trying to push PS1 variable at .bashrc file exec { 'GIT PS1 Variable': cwd => '/home/developer/.bashrc', command => '/bin/echo "PS1='[\u@\h \W\$(__git_ps1 " \"" (%s)"\"")]\$ ' " >> /home/developer/.bashrc', user => devel

Re: [Puppet Users] Re: Is there any ways to fetching custom fact after some resources setuped?

2012-12-11 Thread Jakov Sosic
On 12/07/2012 03:52 PM, jcbollinger wrote: No doubt you could conceive other alternatives if you wanted to do. I would suggest skipping the whole facter+version+two_puppet_runs mess and just ensure => $version. Later use variable $version in the manifests to point your resources to correct lo

Re: [Puppet Users] Configuration for modules

2012-12-11 Thread Jakov Sosic
On 12/09/2012 06:15 AM, Nathan Ward wrote: If I were to set global parameters, would I need to define it like so: Splunk-monitor { parameter => blah } Splunk-user { the_same_parameter_again => blah } .. or is there a way to define global configuration for the parent that applies to both:

[Puppet Users] Announce: Puppet 3.0.2-rc2 available

2012-12-11 Thread Matthaus Owens
Puppet 3.0.2-rc2 is a bugfix release candidate for the 3.x series of Puppet. This release candidate fixes bugs #15929, #17624, #18046, and #18047. To see a list of the issues addressed by this release, check out the 3.0.2 version in our issue tracter at: https://projects.puppetlabs.com/versions/337

Re: [Puppet Users] Re: Solaris processor count facts - bug or feature?

2012-12-11 Thread Jakov Sosic
On 12/07/2012 11:05 AM, Andrew Beresford wrote: How about creating a processorcorecount and processorthreadcount with "correct" meanings? That then leaves the option to deprecate processorcount. I've realised that at some point in the past I have created a processorthreadcount fact because I nee

[Puppet Users] Re: Puppet Reporting

2012-12-11 Thread GregC
This is fixed problem was permissions on /etc/puppet/reports, made reports directory 775. On Tuesday, December 11, 2012 5:08:33 PM UTC-5, llowder wrote: > > > > On Tuesday, December 11, 2012 3:58:00 PM UTC-6, GregC wrote: >> >> I'd like to be able to load my puppet reports generated on my Puppet

[Puppet Users] Re: Puppet Reporting

2012-12-11 Thread llowder
On Tuesday, December 11, 2012 3:58:00 PM UTC-6, GregC wrote: > > I'd like to be able to load my puppet reports generated on my Puppet > production server onto my Puppet development server using dashboard, I > rsync the directory for my reports from the Puppet production host, > from /etc/puppe

[Puppet Users] Puppet Reporting

2012-12-11 Thread Gmoney
I'd like to be able to load my puppet reports generated on my Puppet production server onto my Puppet development server using dashboard, I rsync the directory for my reports from the Puppet production host, from /etc/puppet/reports, to the development server. It doesn't appear that the developmen

[Puppet Users] Re: MCollective discovery - we did not discover any nodes

2012-12-11 Thread Jayapandian Ponraj
Any reply to my questions is hugely appreciated.. On Tuesday, December 6, 2011 4:19:46 PM UTC+5:30, Jens Braeuer wrote: > > Hi everyone, > > I run MCollective 1.2.1 together with ActiveMQ 5.5 under Scientific Linux > 6.1 on Amazon EC2. Overall it works like a > charm, but sometimes (eg. 1/30) dis

[Puppet Users] Re: ensuring consistency in package versions

2012-12-11 Thread Martijn
Op dinsdag 11 december 2012 05:41:40 UTC+1 schreef James Gray het volgende: > > What sort of solutions are people using to get round this? > > Thanks for your help, > James > Honestly, we're not really managing versions much. We deploy our EC2 servers from the official Ubuntu 12.04 LTS AMI's to

[Puppet Users] Re: Module class parameter override question

2012-12-11 Thread Jason Cochard
This class does not accept any parameters, thus why it is failing. You could easily modify it though to do so: class apache::service ( $enable = "true",) { ...snip... service { $http_service: ensure => running, enable => *$enable*, hasstatus => true, hasrestart => tr

[Puppet Users] Re: exec command

2012-12-11 Thread Javier Arduini
Hi Peter, the problem with is that i need something like this: line => 'PROMPT_COMMAND='history -a >(tee -a ~/.bash_history | logger -t \"USER: $USER[$$] SSH: $SSH_CONNECTION $PWD\")' ', 'history and not "history and in the end )' not )" Any clues how to solve this? Thanks for the answer!! :)

[Puppet Users] Re: exec command

2012-12-11 Thread Javier Arduini
Hi Peter, the problem with is that i need something like this: line => 'PROMPT_COMMAND='history -a >(tee -a ~/.bash_history | logger -t \"USER: $USER[$$] SSH: $SSH_CONNECTION $PWD\")' ', 'history and not "history and in the end )' not )" Any clues how to solve this? Thanks for the answer!! :)

[Puppet Users] Re: exec command

2012-12-11 Thread pmbuko
On Tuesday, December 11, 2012 7:16:17 AM UTC-5, Javier Arduini wrote: > Hi all, im trying to make a module to add a line at the end of the > /etc/profile file to redirect all the loggins to a remote server. It´s > something like this: > > class syslog { > > define append_if_no_such_line ($file,

[Puppet Users] Re: Deployment of puppetmaster with capistrano causes problems

2012-12-11 Thread Marco Schröder
Hi Craig, thx for that hint. Now I added a second capistrano task: cap invoke SUDO=1 COMMAND="/sbin/service puppetmasterd restart" That works so far! Thx, Marco On Tuesday, December 11, 2012 4:44:01 PM UTC+1, Marco Schröder wrote: > > Hi group, > > I'm using capistrano to deploy my puppet manif

Re: [Puppet Users] Re: Puppet 2.7 Windows File Permissions cause Permission Denied Errors

2012-12-11 Thread Josh Cooper
Hi Alex, On Tue, Dec 11, 2012 at 7:29 AM, phundisk wrote: > So I just tried to run as local system and administrator, no difference in > terms of the permissions it created from looking at icalc. > > I did a small modification to my class to see if it would help my issues. > Below I have a very d

Re: [Puppet Users] exec command

2012-12-11 Thread Javier Arduini
Hello Bernd, thanks for the answer, but when i trie to escape the quotes puppet print this error message: err: /Stage[main]/Logger/Logger::Append_if_no_such_line7[modify.profile.redhat]/Exec[Line7]/returns: change from notrun to 0 failed: /bin/echo 'PROMPT_COMMAND\='history' >> '/etc/profile'

[Puppet Users] Re: exec GIT Variable PS1

2012-12-11 Thread MaTi Villagra
Thanks for the help. PS1 is confusing puppet parser as Luke suggest, For example I was trying to start from a single command like command => "echo PS1='a' >> /home/developer/.bashrc" works perfectly. I also try to define as a line with no luck using http://projects.puppetlabs.com/project

[Puppet Users] Re: How to handle multi-variable cross cutting concerns in hiera?

2012-12-11 Thread Luke Bigum
On Tuesday, December 11, 2012 5:10:48 PM UTC, Schofield wrote: > > > Hiera allows you to lay out your data in two dimensions: data file and >> key. Whatever selection rules you want to use to choose particular data >> need to operate in that context. There are at least three ways in which >>

[Puppet Users] puppet-dashboard 1.2.15 front page not reporting "changed" "pending" "failed"

2012-12-11 Thread jemmorey
Does anyone else have this problem with puppet-dashboard 1.2.15? The front page will show changed/failed/etc in the graphs, but when looking at the table it does not show anything but "unchanged". When I drill down into the individual servers it will show the changed/failed details. Do I need

Re: [Puppet Users] Deployment of puppetmaster with capistrano causes problems

2012-12-11 Thread Craig White
On Dec 11, 2012, at 8:44 AM, Marco Schröder wrote: > Hi group, > > I'm using capistrano to deploy my puppet manifests to the puppet master > server. > Capistrano copies the new files on the server in a 'releases' directory and > after that just changes the 'current' symlink to the new version.

[Puppet Users] Re: How to handle multi-variable cross cutting concerns in hiera?

2012-12-11 Thread Schofield
> Hiera allows you to lay out your data in two dimensions: data file and > key. Whatever selection rules you want to use to choose particular data > need to operate in that context. There are at least three ways in which > you can embed additional dimensions: > >1. You can create separat

[Puppet Users] Re: exec GIT Variable PS1

2012-12-11 Thread Luke Bigum
On Tuesday, December 11, 2012 4:18:45 PM UTC, MaTi Villagra wrote: > Hello I'm trying to push PS1 variable at .bashrc file > > exec { 'GIT PS1 Variable': > cwd => '/home/developer/.bashrc', > command => '/bin/echo "PS1='[\u@\h \W\$(__git_ps1 " \"" (%s)"\"")]\$ > ' " >> /home/develop

Re: [Puppet Users] exec GIT Variable PS1

2012-12-11 Thread Roman Shaposhnik
On Tue, Dec 11, 2012 at 8:18 AM, MaTi Villagra wrote: > Hello I'm trying to push PS1 variable at .bashrc file > > exec { 'GIT PS1 Variable': > cwd => '/home/developer/.bashrc', > command => '/bin/echo "PS1='[\u@\h \W\$(__git_ps1 " \"" (%s)"\"")]\$ ' The single quote following PS1= cl

[Puppet Users] exec GIT Variable PS1

2012-12-11 Thread MaTi Villagra
Hello I'm trying to push PS1 variable at .bashrc file exec { 'GIT PS1 Variable': cwd => '/home/developer/.bashrc', command => '/bin/echo "PS1='[\u@\h \W\$(__git_ps1 " \"" (%s)"\"")]\$ ' " >> /home/developer/.bashrc', user => developer, group => developer, } But client si

RE: [Puppet Users] exec command

2012-12-11 Thread Bernd Adamowicz
First, put the whole line in single quotes in order to prevent Puppet from trying to resolve all the dollar signs as variables. Then simply escape all quotes within your string. I didn't test it, but this should work: line => 'PROMPT_COMMAND=\'history -a >(tee -a ~/.bash_history | logger -t \"

[Puppet Users] "GET /production/certificate/puppet-client2.tcl-oob.net? HTTP/1.1" 500 11298 "-" "-"

2012-12-11 Thread vioilly
Hi, I have puppet 3.0.1 installed with passenger and the clients are unables to request a certificate. I get a httpd error. 10.1.1.9 - - [11/Dec/2012:16:09:44 +] "GET /production/certificate/puppet-client2.tcl-oob.net? HTTP/1.1" 500 11298 "-" "-" When I run puppet master without passenger

[Puppet Users] can I install modules based on manifest file?

2012-12-11 Thread Maxym Pendyshchuk
Dear puppet community! I am new to puppet, just started to play with.. And I got a question (hopefully not too silly): I use a standalone version to play with. I wrote a script to install PostgreSQL DB, it uses a module puppetlabs /postgresql so to run t

[Puppet Users] Deployment of puppetmaster with capistrano causes problems

2012-12-11 Thread Marco Schröder
Hi group, I'm using capistrano to deploy my puppet manifests to the puppet master server. Capistrano copies the new files on the server in a 'releases' directory and after that just changes the 'current' symlink to the new version. (/usr/share/puppet/configuration/current in my case) This works

[Puppet Users] Re: Puppet 2.7 Windows File Permissions cause Permission Denied Errors

2012-12-11 Thread phundisk
So I just tried to run as local system and administrator, no difference in terms of the permissions it created from looking at icalc. I did a small modification to my class to see if it would help my issues. Below I have a very detailed description of everything that is going on. file { "C:\\M

[Puppet Users] exec command

2012-12-11 Thread Javier Arduini
Hi all, im trying to make a module to add a line at the end of the /etc/profile file to redirect all the loggins to a remote server. It´s something like this: class syslog { define append_if_no_such_line ($file, $line) { exec { "Line1" : command => "/bin/echo '$line' >

[Puppet Users] Re: How to handle multi-variable cross cutting concerns in hiera?

2012-12-11 Thread jcbollinger
On Monday, December 10, 2012 7:25:30 PM UTC-6, Schofield wrote: > > I am working with puppet 3.0 and have the opportunity to build the hiera > hierarchy from scratch. I am pondering which data should be included in > hiera and how it should be organized. After some research it appears that >

[Puppet Users] Re: Puppet 2.7 Windows File Permissions cause Permission Denied Errors

2012-12-11 Thread phundisk
On Monday, December 10, 2012 4:09:36 PM UTC-5, phundisk wrote: > > I am trying to expand puppet to work for our windows servers and am > noticing some weird permissions issues that are occurring. > > I have a file resource being created that is a folder. I set that folder > to have full permis

[Puppet Users] Re: Defined Type and Scoping ...

2012-12-11 Thread jcbollinger
On Monday, December 10, 2012 4:14:34 PM UTC-6, llowder wrote: > > > > On Monday, December 10, 2012 3:47:21 PM UTC-6, Reginald Choudari wrote: >> >> In the defined type, no I did not. Is that required for a defined typed >> declared as a child of the class's scope? >> > > If you want to notify so

Re: [Puppet Users] ensuring consistency in package versions

2012-12-11 Thread Walter Heck
To me it sounds like you need to make a design decision: Either you care enough about these potential version differences to go through all the trouble to manage them properly, or you don't. Both are fine, personally I feel that the small chances that dependent packages have different versions inst

Re: [Puppet Users] ensuring consistency in package versions

2012-12-11 Thread James Gray
On 11 December 2012 11:33, David Schmitt wrote: > > You'll have to start managing versions. One way or the other. Client side > there's apt's pinning, yum probably has some plugin to do so. Server side > you can use a custom repo or puppet packages's ensure => version. I don't think this is worka