Re: [Puppet Users] Re: Validation failed: Host already has a report for time and kind

2013-06-11 Thread Keith Burdis
This could be an issue with time on the host being inconsistent. Is it configured to use NTP to sync against a time server? - Keith On 11 Jun 2013 05:06, "Luke Vidler" wrote: > Me Three, same versions and errors - Did you guys work out how to fix it > yet? > > On Thursday, December 1, 2011 7:5

[Puppet Users] Does stdlib break the regsubst function?

2013-06-11 Thread c!w
Hi all, I have a tricky problem where I need your support. We use the regsubst function in one of our manifests to extract certain information from the fqdn. That code is running in production since months and does extactly what it should. 7: $customer = upcase(regsubst($::fqdn, '(^[^-]*)-[^-]

Re: [Puppet Users] Re: installing carbon / passing PYTHONPATH to pip package provider?

2013-06-11 Thread Nikola Petrov
I also have some packages that were produced with fpm. Here is the script that I am using - https://gist.github.com/nikolavp/5755563 which was borrowed from a blog post I found on the net. You can of course change the versions if you want. Feel free to add dependency metadata to fpm when building

Re: [Puppet Users] any elegant way to iterate/map over data types?

2013-06-11 Thread Matthias Saou
On Mon, 10 Jun 2013 16:41:22 -0400 Martin Langhoff wrote: > Sysadmins have the (reasonable?) expectation of installing more than > one ssh key. > > Relevant bits from my current config follows: > > class rl_users { > define ssh_user($uid, $gid, $password, $akey, > $ensure=present) { use

RE: [Puppet Users] Re: Validation failed: Host already has a report for time and kind

2013-06-11 Thread Steven Nemetz
Every time that I've received this error, it was because 2 different hosts had the same cert name. In my case a problem caused by system cloning or a system template that contained a cert name. Hope that helps, Steven Date: Tue, 11 Jun 2013 08:17:42 +0100 Subject: Re: [Puppet Users] Re: Valida

[Puppet Users] Re: Does stdlib break the regsubst function?

2013-06-11 Thread jcbollinger
On Tuesday, June 11, 2013 1:10:16 AM UTC-5, c!w wrote: > > Hi all, > I have a tricky problem where I need your support. We use the regsubst > function in one of our manifests to extract certain information from the > fqdn. That code is running in production since months and does extactly > wha

[Puppet Users] Re: Does stdlib break the regsubst function?

2013-06-11 Thread c!w
Yes, therefore we use stdlib 3.2.0. Christian Am Dienstag, 11. Juni 2013 14:53:50 UTC+2 schrieb jcbollinger: > > > > On Tuesday, June 11, 2013 1:10:16 AM UTC-5, c!w wrote: >> >> Hi all, >> I have a tricky problem where I need your support. We use the regsubst >> function in one of our manifests

[Puppet Users] Manage users with Winbind (Samba) installed

2013-06-11 Thread Nevorotin Vadim
Hi! I want to manage all local user accounts on my Samba DC. So I add to my node two resources like this: resources {'user': purge => true, unless_system_user => 999, } file {'/home': ensure => directory, owner => 'root', group => 'root', mode => 0644, force => true, purge => true, recurse => tr

Re: [Puppet Users] f5 module usage/debugging tips?

2013-06-11 Thread jgmchan
Hi Chris, How did you go with trying to use the Puppet F5 module with v11.3.0? I think I am having the same issue as you were. The puppet output would say that the resource was created but the iControl debug logs shows that it is being sent an empty SOAP create message. I've tried running a si

[Puppet Users] Puppet 3.2 : ENC overrides environment in puppet.conf / howto force environment

2013-06-11 Thread Peter Van Biesen
Hi, we recently upgraded from 2.7 to 3.2. We do not use ENC but use the node.rb for uploading the reports to foreman. However, the 3.2 puppetmaster overrides the environment that's been set in the puppet.conf. Is there a way to turn this off ? Related: ENC can override the puppet.conf, can the

[Puppet Users] SVC (and related) file location

2013-06-11 Thread Ivailo Tanusheff
Hi, I am running puppet on FreeBSD 9 host and most of the things are looking good. I have some issues making a service, which uses a daemontools package. The problem is puppet is not searching the executables in the right folder: Debug: Puppet::Type::Service::ProviderDaemontools: file /usr/bin/

[Puppet Users] Help, LDAP attributes in puppet.

2013-06-11 Thread Matthew Ward
I'm rather new to working with puppet so forgive me it these are solved problems. I've read through some documentation, but was not able to find the full set of information to answer all my questions. I'm being tasked with finding/configuring/developing an enterprise resource configuration too

[Puppet Users] Re: White Paper: Migrating from Redhat satellite server to Puppet + Foreman

2013-06-11 Thread Matthew Reams
Hi. I really appreciate this knowledge sharing. I currently use Spacewalk instead of Red Hat Satellite for patch management of my RHEL hosts, but I'm not happy with it for configuration management and working towards implementing Puppet. How do you audit and report your current package level

[Puppet Users] Dashboard - Unable to submit report to http://127.0.0.1:3000/reports/upload [301] Moved Permanently

2013-06-11 Thread Olivier Trempe
Hello, I successfully installed puppet on redhat 6. Nodes can connect to master and run catalog. I installed dashboard and was hoping to see the reports uploaded in dashboard... I have no problem browsing to the dashboard but when an agent sends a report to the master, I always get the same er

[Puppet Users] Services error in log...

2013-06-11 Thread Ivailo Tanusheff
Hi, I am using services through daemontools: file{ "/var/qmail/svc/qmail/run": } file{ "/var/qmail/svc/qsmtp/run": } service{ "qmail": provider => "daemontools", path => "/var/qmail/svc/qmail", enable => true, ensure => running, subscribe => File["/var/qmail/svc/qmail/run"] } service{ "qsmt

[Puppet Users] hiera data bindings and template()

2013-06-11 Thread Fabio Sangiovanni
Hi, I'm using Puppet 3.2.1 and heavily relying on hiera data bindings. I have the following situation: class software ( $my_content = undef, ) { file { '/path/to/file': content => $software::my_content, } } in hieradata/software.yaml (hiera.yaml seems ok): software::my_content: templat

[Puppet Users] Re: hiera data bindings and template()

2013-06-11 Thread llowder
On Tuesday, June 11, 2013 10:28:51 AM UTC-5, Fabio Sangiovanni wrote: > > Hi, > > I'm using Puppet 3.2.1 and heavily relying on hiera data bindings. > I have the following situation: > > class software ( > $my_content = undef, > ) { > file { '/path/to/file': > content => $software::my_con

[Puppet Users] Re: Dashboard - Unable to submit report to http://127.0.0.1:3000/reports/upload [301] Moved Permanently

2013-06-11 Thread Ellison Marks
1. Are you sure that dashboard is listening on the loopback? 2. Have you made any modifications to auth.conf? 3. Have you confirmed that upload requests are even getting to dashboard? (check the access log) 4. Are you running any apache modules that might return redirects?

Re: [Puppet Users] Re: hiera data bindings and template()

2013-06-11 Thread Fabio Sangiovanni
Il giorno 11/giu/2013 18:14, "llowder" ha scritto: > Yes, anything that comes in from hiera is just a string - function calls in it won't get evaluated. > If you remove the template() part from the hiera data and change your code to: > > class ($my_content = undef, { 'software': my_content => tem

Re: [Puppet Users] Re: Puppet 3.1.1 Windows crashes

2013-06-11 Thread Michael O'Dea
Sorry for the long delay - since I'd mitigated I moved on to other things. Thanks for the quick fix. Deploying servers is no simple process in my environment so I guess I'll need to stick with the old clients for a while. On Thursday, June 6, 2013 4:45:08 PM UTC-4, Josh Cooper wrote: > > Hi

[Puppet Users] Re: Does stdlib break the regsubst function?

2013-06-11 Thread jcbollinger
On Tuesday, June 11, 2013 7:58:39 AM UTC-5, c!w wrote: > > Yes, therefore we use stdlib 3.2.0. > > Lots of people use stdlib, and lots of people use regsubst(), so you are unlikely to be the only person using them together. I have not heard any other reports of the behavior you describe, howe

[Puppet Users] Connection timed out

2013-06-11 Thread Forest Hongxin Hou
We are evaluate PE and I installed puppet-enterprise-2.8.1-el-6-x86_64 agent. When I run agent with puppet agent --no-daemonize --debug --onetime I am keeping get error: err: /Stage[main]/Pe_mcollective::Server::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/security/sshkey.rb

[Puppet Users] understanding parameters and puppet-master's nodes.pp

2013-06-11 Thread Jason Price
I'm working with the mysql module from puppetforge: https://forge.puppetlabs.com/puppetlabs/mysql I'm clearly missing something. I'm trying to work with it on a puppet master setup. I've used the following in nodes.pp This simple example (using the riak module) works fine: node /^qcriak.exampl

Re: [Puppet Users] understanding parameters and puppet-master's nodes.pp

2013-06-11 Thread Ryan Coleman
On Tue, Jun 11, 2013 at 1:33 PM, Jason Price wrote: > What am I missing? The /etc/puppet/module/mysql/manifests/db.pp file > exists... and has the right permissions. > Hi Jason, mysql::db is a defined resource type, not a class as you've declared it. Declare it like you would any other resourc

Re: [Puppet Users] Connection timed out

2013-06-11 Thread Rilindo Foster
Assuming that you are running a typical puppet master configuration, if you review the Puppet process flow here: http://www.aosabook.org/images/puppet/TimingDiagram.png You would see that the issue likely occurring during plugin stage. This seems to be cause because it looks like it is not able

Re: [Puppet Users] ruby issue

2013-06-11 Thread Greg Chavez
The rubygems package is available from here: https://yum.puppetlabs.com/el/5/dependencies/x86_64/ So why wouldn't it be available from 6? I'm pretty sure it used to be there since I've kicked several rhel 6 systems that had no problem installing puppet from puppetlabs. Was it mistakenly dropped

[Puppet Users] Re: Best way to add APC and change size of apc.shm_size

2013-06-11 Thread Josh sutton
Ok, Thanks for the response but I figured it out. php::module { [ 'pecl-apc', 'xml' ]: } php::module::ini { 'pecl-apc': settings => { 'apc.enabled' => '1', 'apc.shm_segments' => '1', 'apc.shm_size' => '64', } } On Monday, June 10, 2013 12:43:12 PM UTC-5, Josh sutton wrote: > > Hello!! > I am

[Puppet Users] less drastic alternative to fail()?

2013-06-11 Thread mpounsett
I have a few cases of error checking to make sure parameters supplied to my classes and defined types where the no-success option is to run the fail() function with a meaningful error. This seems to cause the entire agent run to fail as if the manifest couldn't be generated. Does anyone know o

Re: [Puppet Users] ruby issue

2013-06-11 Thread Matthaus Owens
We supply rubygems for rhel 5 because it is not available in centos or rhel 5 core (it is in EPEL). In rhel6 and cent6, it is widely and easily available (in cent6 base, and in rhel6 optional repos), so we don't supply it for el6. On Tue, Jun 11, 2013 at 2:37 PM, Greg Chavez wrote: > The rubygems

Re: [Puppet Users] any elegant way to iterate/map over data types?

2013-06-11 Thread Martin Langhoff
On Tue, Jun 11, 2013 at 7:36 AM, Matthias Saou wrote: > When it comes to iterating with puppet, the usual way to get where you > want is to apply a definition to an array. From there, you need to avoid > the (also usual) duplicate declarations, by extending and abusing the > $title if needed in or

Re: [Puppet Users] understanding parameters and puppet-master's nodes.pp

2013-06-11 Thread Jason Price
THANK YOU! I was entirely missing that distinction. FWIW, here's the 'corrected' version of the above nodes.pp file example: node /^qczabbix.example.com/ inherits default { class {'mysql::server': package_name => 'mysql55-server', config_hash => { 'root_password' => 'root_password' },

[Puppet Users] Re: less drastic alternative to fail()?

2013-06-11 Thread joe
You can put the resources inside the class into a big if statement that checks the vars and does a notify if the class can't be applied. I've seen this in a few modules. On Tuesday, June 11, 2013 3:53:13 PM UTC-6, mpou...@afilias.info wrote: > > I have a few cases of error checking to make sure

Re: [Puppet Users] ruby issue

2013-06-11 Thread Stuart Cracraft
Why not make it easy on the community? Include all dependencies just as you do with pe... --Stuart On Jun 11, 2013, at 3:43 PM, Matthaus Owens wrote: > We supply rubygems for rhel 5 because it is not available in centos or > rhel 5 core (it is in EPEL). In rhel6 and cent6, it is widely and >

Re: [Puppet Users] Re: less drastic alternative to fail()?

2013-06-11 Thread Trevor Vaughan
Unfortunately, putting in a notify would not fail the class and skip dependencies, it would instead succeed. In general, you would want to use 'fail' to fail the compile since, in this case, you have a typo that you need to fix. However, I have also wanted a way for a soft-fail of some sort that

Re: [Puppet Users] f5 module usage/debugging tips?

2013-06-11 Thread Christopher Wood
Unfortunately due to various non-puppet bigip upgrade issues I haven't been able to back to this yet. If I get anything useful working I will post. On Tue, Jun 11, 2013 at 03:32:56AM -0700, jgmc...@gmail.com wrote: >Hi Chris, >How did you go with trying to use the Puppet F5 module with v1

[Puppet Users] Re: cannot using LDAP nodes with site.pp together?

2013-06-11 Thread Nick Fagerlund
The wiki page is right, and the Pro Puppet page is wrong, I think. LDAP nodes and ENCs both use a feature of Puppet called the "node terminus." They use this feature in almost the same way -- Puppet asks the configured node terminus for a "node object," which may contain classes, extra variabl