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

2012-12-10 Thread Andrei-Florian Staicu
Hi all, I started managing users with puppet (3). Right now it works ok, but I have to change the hash manually in the manifest files. I would like users to login to the puppet master and change the password for themselves. Could I do something like this? password = `grep $user /etc/shadow | awk

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

2012-12-10 Thread Andrei-Florian Staicu
On Mon, Dec 10, 2012 at 10:28 AM, Martin Alfke tux...@gmail.com wrote: Hi Andrei, On 10.12.2012, at 09:22, Andrei-Florian Staicu wrote: Hi all, I started managing users with puppet (3). Right now it works ok, but I have to change the hash manually in the manifest files. I would like

[Puppet Users] Re: Puppetlabs nginx module

2012-12-10 Thread Paul Tötterman
Isn't this pretty bad because other module that may include stdlib would cause an error? Have you considered adding an issue at github? Cheers, Paul -- You received this message because you are subscribed to the Google Groups Puppet Users group. To view this discussion on the web visit

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

2012-12-10 Thread Martin Alfke
On 10.12.2012, at 09:49, Andrei-Florian Staicu wrote: On Mon, Dec 10, 2012 at 10:28 AM, Martin Alfke tux...@gmail.com wrote: Hi Andrei, On 10.12.2012, at 09:22, Andrei-Florian Staicu wrote: Hi all, I started managing users with puppet (3). Right now it works ok, but I have to

Re: [Puppet Users] Puppet report aggregation

2012-12-10 Thread Luke Bigum
On Thursday, December 6, 2012 10:07:43 PM UTC, John Warburton wrote: On 6 December 2012 20:29, Luke Bigum luke@lmax.com javascript:wrote: I haven't looked at The Foreman in a while but in my mind it's more like Puppet Dashboard - correct me if I'm wrong. What I'm aiming for is a tool

[Puppet Users] Re: augtool/augeas doesn't work in f17?

2012-12-10 Thread Raphink
On Friday, December 7, 2012 12:56:27 PM UTC+1, Bret Wortman wrote: I've installed the augeas rpm (0.10.0-3.fc17.x86_64) to troubleshoot a problem I was having with augeas and ensuring a line existed in /etc/cron.allow. I think something's up because neither the augeas within my manifest

[Puppet Users] Re: pasenger does not start puppet master under nginx

2012-12-10 Thread Anadi Misra
The problem was I had misplaced config.ru inside public directory while it should have been in rack directory. BR/ Anadi Misra On Thursday, 6 December 2012 15:47:42 UTC+5:30, Anadi Misra wrote: On the server [root@bangvmpllDA02 logs]# ruby -v ruby 1.8.7 (2011-06-30 patchlevel 352)

[Puppet Users] puppet master REST API returns 403 when running under passenger works when running from command line

2012-12-10 Thread Anadi Misra
Hi! Everyone, puppet agent is not able to fetch any files, plugins or post catalog, reports to the master. both puppet agent and master are on version 3.0.l, passenger version 3.0.18 , nginx version: nginx/1.3.9 built by gcc 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) TLS SNI support enabled

Re: [Puppet Users] augtool/augeas doesn't work in f17?

2012-12-10 Thread Dominic Cleal
On 07/12/12 11:56, Bret Wortman wrote: Even in interactive mode, I get nothing out of augtool! What should I look at to see why this is failing? Syslog doesn't show anything illustrative, nor did puppet agent -t --debug. The lack of errors from the augeas resource type should be much improved

[Puppet Users] Cannot generate tempfile

2012-12-10 Thread GordonJB
Hi, My Puppet clients are all curently failing to run, they give the following message on running the agent: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: cannot generate tempfile `/tmp/RackRewindableInput20121210-32328-1vnhs6g-9' Warning: Not using cache on failed

[Puppet Users] Re: Error: can't instantiate uninitialized class

2012-12-10 Thread Luca Gioppo
No the behaviour has been always the same: On the server I get: Compiled catalog for jbossm.cortile.cloudlabcsi. local in environment production in 1.53 seconds Info: Caching catalog for jbossm.cortile.cloudlabcsi.local Debug: Searched for resources in 0.01 seconds Error: can't instantiate

[Puppet Users] Re: upgrade puppet certificates

2012-12-10 Thread jcbollinger
On Friday, December 7, 2012 7:28:27 PM UTC-6, Ellison Marks wrote: I just recently spun up a new host using an old hostname, and when managing the certificates, I noticed that the newly generated cert was listed as sha256, while all of my earlier certs were listed as sha1. I guess this

[Puppet Users] Managing windows agent

2012-12-10 Thread Subhash Korimilli
Hi all, I am new to puppet, and I am trying to manage a windows agent using puppet. I wrote a manifest file which will copy a text file from puppet master (linux) to the puppet agent(windows). When I tried to run the puppet agent, I was getting the following error. err:

Re: [Puppet Users] Help with PuppetDB

2012-12-10 Thread Nikola Petrov
On Fri, Dec 07, 2012 at 08:27:14AM -0800, Nishant Jain wrote: Hello Everybody, I am trying to install the puppetdb on the same machine as am running my puppetmaster. I am getting the following error when am trying to connect the agent: Error: Could not retrieve

[Puppet Users] Re: How to group hosts?

2012-12-10 Thread Glenn Poston
We use facter-dot-d as well, but we also take advantage of 'calling_module' for grouping. This param is automatically available to heira. Here is our heira.yaml (role is in facter.d) :hierarchy: - %{environment}/%{fqdn} - %{environment}/%{role} -

Re: [Puppet Users] Poll for thoughts on hierifying modules and OS default differences

2012-12-10 Thread jcbollinger
On Friday, December 7, 2012 1:45:23 PM UTC-6, Wolf Noble wrote: Hi Gary, I know what you mean, and agree for modules destined to be released to the wild. unfortunately, we have a diverse enough environment that even the defaults occasionally need to be overridden; hence the

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

2012-12-10 Thread jcbollinger
On Monday, December 10, 2012 2:49:10 AM UTC-6, SAF wrote: Do you happen to know with what user do the scripts get executed on the master? I it's not root, i might have to stick some sudos in there. Functions are evaluated as a normal part of the puppet master's execution, thus they run as

[Puppet Users] Re: Cannot generate tempfile

2012-12-10 Thread GordonJB
From looking into it, the problem is that the /var/lib/puppet/reports is filling up the disk with reports. I was under the impression that these weren't stored on the master? Thanks On Monday, 10 December 2012 13:45:36 UTC, GordonJB wrote: Hi, My Puppet clients are all curently failing to

Re: [Puppet Users] Poll for thoughts on hierifying modules and OS default differences

2012-12-10 Thread Stefan Goethals
I can only strongly suggest you look at the new Hiera-in-modules ticket and pull request by R.I.Pienaar as it really solves a lot of problems many people encounter in this situation. It needs more testing and debugging so all help on this is very welcome. Regards, Stefan Goethals. On Fri, Dec

[Puppet Users] Re: Help with PuppetDB

2012-12-10 Thread Chris Price
Also, there are a few notes on common SSL issues here: http://docs.puppetlabs.com/puppetdb/puppetdb-faq.html#puppetdb-is-complaining-about-a-truststore-or-keystore-file-what-do-i-do On Friday, December 7, 2012 8:27:14 AM UTC-8, Nishant Jain wrote: Hello Everybody,

Re: [Puppet Users] Does facter 2.x need cfengine key support?

2012-12-10 Thread jcbollinger
On Sunday, December 9, 2012 3:49:06 PM UTC-6, John Warburton wrote: On 8 December 2012 04:34, Peter Meier peter...@immerda.ch javascript:wrote: And why shouldn't it? Nagios is being removedhttps://groups.google.com/forum/?fromgroups=#!topic/puppet-users/qNxc2xZnRdM from core

[Puppet Users] Re: Working with puppet and RVM

2012-12-10 Thread jcbollinger
On Sunday, December 9, 2012 11:46:58 AM UTC-6, Smashed wrote: Has anyone found an elegant solution for working with puppet and rvm? Im using the following module: https://github.com/blt04/puppet-rvm and I keep finding myself having to prefix all of my Exec resources with 'su root -c

[Puppet Users] Need Speakers: Puppet Camp Ghent and FOSDEM Config/Sys Mgmt DevRoom

2012-12-10 Thread Dawn Foster
We are holding Puppet Camp Ghent on January 31 and February 1 - right before FOSDEM (Ghent is a 30 minute train ride from Brussels). The CFP closes on December 18, so you only have another 8 days to come up with a talk! Info: http://puppetlabs.com/blog/puppet-camp-ghent-register-or-submit-a-talk/

Re: [Puppet Users] augtool/augeas doesn't work in f17?

2012-12-10 Thread Bret Wortman
On Monday, December 10, 2012 1:51:46 PM UTC-5, Bret Wortman wrote: On Monday, December 10, 2012 8:34:17 AM UTC-5, Dominic Cleal wrote: On 07/12/12 11:56, Bret Wortman wrote: Even in interactive mode, I get nothing out of augtool! What should I look at to see why this is failing? Syslog

Re: [Puppet Users] augtool/augeas doesn't work in f17?

2012-12-10 Thread Dominic Cleal
On 10/12/12 18:59, Bret Wortman wrote: On Monday, December 10, 2012 1:51:46 PM UTC-5, Bret Wortman wrote: On Monday, December 10, 2012 8:34:17 AM UTC-5, Dominic Cleal wrote: On 07/12/12 11:56, Bret Wortman wrote: Even in interactive mode, I get nothing out of augtool!

[Puppet Users] YAML as File resource template Error , can't convert Hash to String

2012-12-10 Thread treydock
Using exported resources I'm trying to have a host export a File resource generated from a yaml template, to another host. The host that gets the exported resource is throwing errors like this err: Failed to apply catalog: Parameter content failed: Munging failed for value

Re: [Puppet Users] Puppet Console Home page display issue

2012-12-10 Thread Gary Larizza
What web browser (and version) are you using to access the dashboard? On Mon, Dec 10, 2012 at 12:08 PM, MasterPO masterpo...@gmail.com wrote: I don't know what is causing this, but the HOME page for the Puppet Dashboard has a table of nodes offset to the extreme right of the display. Am I

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

2012-12-10 Thread phundisk
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 permission to user Administrator and a local windows group. I set the mode to

[Puppet Users] Defined Type and Scoping ...

2012-12-10 Thread Reginald Choudari
Hello, I've got a module with an 'init.pp' like so: class test_backend { ... exec {'reset': refreshonly = true, command = 'C:\blah.exe', } ... } And I declare a defined resource type 'cmd.pp' below: define test_backend::cmd($var1, $var2) { ... file {'$var1': ensure = file,

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

2012-12-10 Thread llowder
On Monday, December 10, 2012 3:36:55 PM UTC-6, Reginald Choudari wrote: Hello, I've got a module with an 'init.pp' like so: class test_backend { ... exec {'reset': refreshonly = true, command = 'C:\blah.exe', } ... } And I declare a defined resource type 'cmd.pp'

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

2012-12-10 Thread Reginald Choudari
In the defined type, no I did not. Is that required for a defined typed declared as a child of the class's scope? On Monday, December 10, 2012 4:39:57 PM UTC-5, llowder wrote: On Monday, December 10, 2012 3:36:55 PM UTC-6, Reginald Choudari wrote: Hello, I've got a module with an

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

2012-12-10 Thread llowder
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 some resource, it has to be included in that catalog somewhere. So either in that

Re: [Puppet Users] custom define type for array with 'case' argument pass to it

2012-12-10 Thread Jakov Sosic
On 12/07/2012 12:23 AM, Jakov Sosic wrote: On 12/07/2012 12:20 AM, iamauser wrote: Thanks, but we are still running EL5. Do you have rpm available for this ? Yeah it's easy just replace el6 with el5 ;)

[Puppet Users] Pre-commit hooks for your modules?

2012-12-10 Thread Jakov Sosic
Hi. I was wondering what kind of precommit hooks are you guys using? Here's what I've come up to in last hour: $ cat .hg/hgrc | grep -A 1 hooks [hooks] pretxncommit.puppet = .hg/check_puppet.rb $ cat .hg/check_puppet.rb #!/usr/bin/ruby def puppet_parser_validate(file) if !system('puppet

[Puppet Users] Re: Pre-commit hooks for your modules?

2012-12-10 Thread llowder
On Monday, December 10, 2012 4:27:26 PM UTC-6, Jakov Sosic wrote: Hi. I was wondering what kind of precommit hooks are you guys using? Here is what I use: #!/bin/bash # pre-commit git hook to check the validity of a puppet manifest # # Prerequisites: # gem install puppet-lint puppet #

Re: [Puppet Users] Puppet Console Home page display issue

2012-12-10 Thread MasterPO
I'm using Firefox 15.0.1 I've also tried IE 8 and it has the node table all the way to the left, under the menu boxes. Google Chrome looks OK On Monday, December 10, 2012 2:46:41 PM UTC-6, Gary Larizza wrote: What web browser (and version) are you using to access the dashboard? On Mon, Dec

[Puppet Users] Re: Error: can't instantiate uninitialized class

2012-12-10 Thread jcbollinger
On Monday, December 10, 2012 8:22:25 AM UTC-6, Luca Gioppo wrote: No the behaviour has been always the same: Ok. It colud be a template??? I'll check it, but have no clue. Yes. Templates can execute arbitrary Ruby code, so they can trigger any error that Ruby can throw. Whether

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

2012-12-10 Thread Josh Cooper
Hi Alex, If you don't care about permissions, you can just omit the mode property. The owner should receive Full Control, but the group and other will always receive less than that, e.g. they shouldn't get WRITE_DAC. For example, C:\work\puppetenvpuppet puppet resource file c:/blarg5

[Puppet Users] Re: Puppet Dashboard for Rails 3

2012-12-10 Thread Aaron Stone
Update: thanks to help from GitHub users @igreg and @astratto, Puppet Dashboard Rails 3 is now fully compatible with Ruby 1.9! The rails3 and rails3-aaa branches are up to date as of Dashboard version 1.2.15 plus the work on those branches. I'm down to just 3 test failures, and actively working

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

2012-12-10 Thread Schofield
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 most folks struggle when their data is dependent on multiple facts rather

Re: [Puppet Users] Puppet 3.0 rspec and custom resources

2012-12-10 Thread Josh Cooper
I have a proposed fix in puppet, see my last comment in http://projects.puppetlabs.com/issues/17543#note-3 Josh On Wednesday, November 14, 2012 5:40:45 AM UTC-8, Brett Porter wrote: I've seen the same problem - and a similar one when working with multiple hosts. There's some data and sample

[Puppet Users] Re: puppet master REST API returns 403 when running under passenger works when running from command line

2012-12-10 Thread Anadi Misra
Thanks! I compared it with a similar setup we had done in the past and noticed that this one had both ssl_client_header = SSL_CLIENT_S_D ssl_client_verify_header = SSL_CLIENT_VERIFY in pupet.conf and passenger_set_cgi_paramHTTP_X_CLIENT_DN $ssl_client_s_dn;

[Puppet Users] ensuring consistency in package versions

2012-12-10 Thread James Gray
Hi all, I would appreciate your help clarifying my thinking around the following problem. Let's say I have a third-party (one that I didn't write) package x which depends on a package y. Package x is installed somewhere and is working fine against package y (as in package x has been QA'ed

Re: [Puppet Users] ensuring consistency in package versions

2012-12-10 Thread David Schmitt
Hi James, On 11.12.2012 05:41, James Gray wrote: Now, let's imagine I need to spin up another server to meet some load but when I do so I find that package y has had a security fix What sort of solutions are people using to get round this? You'll have to start managing versions. One way