Re: [Puppet Users] puppet node deactivate

2013-06-21 Thread David Kerr
On Friday, June 21, 2013 5:31:20 AM UTC-7, Ken Barber wrote: > > > > I usually do puppet node clean/puppet node deactivate. > > How are you generating this file? Its hard to make any specific > conclusions here, is this a concat pattern or a query inside a > template? If you can provide code i

Re: [Puppet Users] The handy Grail of Modules Standards

2013-06-21 Thread Alessandro Franceschi
On Friday, June 21, 2013 5:05:20 PM UTC+2, jcbollinger wrote: > > > > On Thursday, June 20, 2013 10:14:09 AM UTC-5, Alessandro Franceschi wrote: >> >> >> >> On Thursday, June 20, 2013 4:12:46 PM UTC+2, jcbollinger wrote: >>> >>> >>> >>> On Wednesday, June 19, 2013 5:34:58 PM UTC-5, Alessandro Fra

[Puppet Users] Puppet Enterprise Console Admin Tools page is blank

2013-06-21 Thread root
I just installed Puppet Enterprise 2.7 on Red Hat EL 5.8. The install wants an email address to use as a user name. I gave it one, but never received any confirmation email. Was I supposed to? I was able to use that email address to log in to the console. The Admin Tools page is empty, and

Re: [Puppet Users] mysql access denied on dashboard puppet

2013-06-21 Thread DJames
still no luck, i changed the database to database_production, also even went into mysql to try to reset please see below.. # mysqld_safe --skip-grant-tables & [1] 27589 [1]+ Exit 1 mysqld_safe --skip-grant-tables # mysql -u root -p Enter password: mysql> SELECT * FROM my

Re: [Puppet Users] PuppetLabs Module Toolkit

2013-06-21 Thread Keith Burdis
http://docs.puppetlabs.com/puppet/2.7/reference/modules_publishing.html Is there a toolkit generally used to develop/manage puppet modules? I've been playing with the modules on puppetlabs and have a question about the packaging used. It appears many of the developers are using some tools / toolk

[Puppet Users] Hiera linting?

2013-06-21 Thread Matthew Barr
I've seen yaml parsers, but: Is there anyone that's written a validator for Hiera data? YAML linking doesn't seem to mind --- class:key: 'value' When it should be 2 colons in the middle of class::key: Which makes perfect sense, but it's also the kind of thing that's *very* likely to hap

Re: [Puppet Users] mysql access denied on dashboard puppet

2013-06-21 Thread Jeffrey Watts
If you followed the instructions on the website it calls for you to create a database named "dashboard". However, the example database.yml that comes with the software calls for the database to be called "dashboard_production". This bit me in the ass, and I suspect that it might have bitten you a

[Puppet Users] mysql access denied on dashboard puppet

2013-06-21 Thread DJames
i am at a lost, i setup the db schema , database.yml and etc passwords are correct. im getting the below error, im trying to get my dashboard to work .help any? i also chmod the database.yml file to 660 # mysql -u dashboard -p dashboard_production Enter password: ERROR 1045 (28000): Acc

[Puppet Users] PuppetLabs Module Toolkit

2013-06-21 Thread Eric Aiken
Is there a toolkit generally used to develop/manage puppet modules? I've been playing with the modules on puppetlabs and have a question about the packaging used. It appears many of the developers are using some tools / toolkits to develop standardized packages. In addition to the standard file

[Puppet Users] Re: File directive

2013-06-21 Thread jcbollinger
On Friday, June 21, 2013 1:04:36 AM UTC-5, Roman Alekseev wrote: > > Is the module below correct? > > class nginx { > > if defined(Package['nginx']) { > file { "/tmp/puppet-nginx.sh": > ensure => "present", > owner => "roo

[Puppet Users] Re: Track and Alert changed file.

2013-06-21 Thread jcbollinger
On Friday, June 21, 2013 7:03:03 AM UTC-5, Rabin Dahal wrote: > > Hi, > > Is there anyway to track a changed file at client end and notify the admin > via email. > > The Puppet agent will always notice when a managed property of a managed file differs from its target value. Unless you are runn

[Puppet Users] Re: nodes regex

2013-06-21 Thread jcbollinger
On Friday, June 21, 2013 9:49:01 AM UTC-5, bazil wrote: > > Hi guys, > > just have faced with strage behavior > > have in manifest > > line 51 > node /us3-slave-1[01].mydomain.net/ { > #blablabla > } > > and > > line 159 > node 'us3-slave-101.mydomain.net' { > #foofoofoo > } > > then i get > >

Re: [Puppet Users] The handy Grail of Modules Standards

2013-06-21 Thread jcbollinger
On Thursday, June 20, 2013 10:14:09 AM UTC-5, Alessandro Franceschi wrote: > > > > On Thursday, June 20, 2013 4:12:46 PM UTC+2, jcbollinger wrote: >> >> >> >> On Wednesday, June 19, 2013 5:34:58 PM UTC-5, Alessandro Franceschi wrote: >> >> >>> *A really reusable module HAS to be parametrized*. >>

[Puppet Users] nodes regex

2013-06-21 Thread Vasil Mikhalenya
Hi guys, just have faced with strage behavior have in manifest line 51 node /us3-slave-1[01].mydomain.net/ { #blablabla } and line 159 node 'us3-slave-101.mydomain.net' { #foofoofoo } then i get Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for en

Re: [Puppet Users] The handy Grail of Modules Standards

2013-06-21 Thread jcbollinger
On Thursday, June 20, 2013 1:07:22 PM UTC-5, David Schmitt wrote: > > On 2013-06-20 16:12, jcbollinger wrote: > > I just have low regard for software that > > doesn't yet exist. I do not find the potential for nebulous future > > software a persuasive argument for adopting anything. > > You m

[Puppet Users] Re: 2.7 Dynamic scoping warnings - which way should I jump?

2013-06-21 Thread jcbollinger
On Thursday, June 20, 2013 1:08:22 PM UTC-5, Nick Fagerlund wrote: > > Hey Dirk, > > Yeah, we need to re-write that page, sorry. > > Class parameters are absolutely the way to go -- they're easier to deal > with in Puppet 3, and they DO work with include, as long as you back them > up with Hie

[Puppet Users] Re: How to apply puppet manifests toa remote host?

2013-06-21 Thread jcbollinger
On Thursday, June 20, 2013 3:27:03 PM UTC-5, Charlie Brune wrote: > > I'm wondering if I have the same question. > > I have a laptop that works well with my Puppet Master while I'm at home. > However, when I leave home, puppet no longer is able to apply the manifests > (configs) assigned to it

Re: [Puppet Users] puppet node deactivate

2013-06-21 Thread Nikola Petrov
Hi, What is the storage engine behind puppetdb? Can you please provide the hostname for the machine that wasn't deactivated. I can remember that I had some problems with hostnames that contained uppercase characters. -- Nikola On Thu, Jun 20, 2013 at 04:28:40PM -0700, David Kerr wrote: > Hello,

[Puppet Users] Re: Apply a specific manifest on agent

2013-06-21 Thread jcbollinger
On Thursday, June 20, 2013 4:21:00 PM UTC-5, Dhananjayan Ramesh wrote: > > Hi All, > > I am new to Puppet and I am wondering if there is a way to just apply a > manifest one-time (present on the master, not included in site.pp) on an > agent node without having to edit site.pp? It's like I want

Re: [Puppet Users] Can't find source of "Removing mount" errors

2013-06-21 Thread jcbollinger
On Thursday, June 20, 2013 4:51:41 PM UTC-5, Brandon wrote: > > I've searched, but haven't found anything. I will continue looking. > > Look out for declarations of this form: resources { 'mount': purge => true } Something like that ought to turn up in searches for "mount", but perhaps you ov

Re: [Puppet Users] puppet node deactivate

2013-06-21 Thread Ken Barber
> I'm in the process of upgrading my puppet from 2x to 3.2.1. > > During my testing i found that it appears that puppet node deactivate isn't > removing nodes from storeconfigs. So it should work and in my experience it often does. Most cases I hear about this failing is when the Puppet code you a

[Puppet Users] Re: how to resolve hostnames to IP addresses in templates

2013-06-21 Thread Tomas
It is not so complicated as others wrote here. Here is an example how I use it: allowed_hosts=<% for nagios_server in nagios_servers %><% ipInt = Socket.gethostbyname(nagios_server)[3] %><%= "%d.%d.%d.%d" % [ipInt[0], ipInt[1], ipInt[2], ipInt[3]] %>,<% end %> Dne čtvrtek, 9. srpna 2012 22:3

[Puppet Users] Track and Alert changed file.

2013-06-21 Thread Rabin Dahal
Hi, Is there anyway to track a changed file at client end and notify the admin via email. Any help and documentation on this is highly appreciated. Thanks, Rabin Dahal -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this

[Puppet Users] Re: trying to get a 32-bit JVM on a 64-bit platform with Package provider

2013-06-21 Thread Dick Davies
Ah cracked it! class jdk::32bit inherits jdk { Package['jdk'] { ensure => undef } package { "jdk.i586": ensure => present } } On 21 June 2013 12:15, Dick Davies wrote: > i was hoping I could do this with the right ensure parameter on Package, > but I'm hitting a wall. > > We've got 64-bit

[Puppet Users] trying to get a 32-bit JVM on a 64-bit platform with Package provider

2013-06-21 Thread Dick Davies
i was hoping I could do this with the right ensure parameter on Package, but I'm hitting a wall. We've got 64-bit servers running tomcats on RHEL that need to be 32-bit (external vendor, JNI, funny story). 2.7 Puppetmaster and the yum repo hosts the Oracle JDKs. Currently we just push out what

Re: [Puppet Users] Re: How to apply puppet manifests toa remote host?

2013-06-21 Thread Denmat
Hi, You're describing puppet 'masterless'. Depending on the complexity of your code (use of stored configs for example) you should be able to apply a manifest with 'puppet apply' on your laptop. You may have to change your existing manifest to make it more useable without a master but there ar

Re: [Puppet Users] Re: File directive

2013-06-21 Thread Matthew Burgess
On 21 June 2013 07:04, Roman Alekseev wrote: > Is the module below correct? > > class nginx { > > if defined(Package['nginx']) { > > file { "/tmp/puppet-nginx.sh": > > ensure => "present", > owner => "root", >

[Puppet Users] 2.6 -> 2.7 performance hit

2013-06-21 Thread Dick Davies
Looks like we'll be stopping on 2.7 for a while to catch our breath before we press on to 3.x . So far things are pretty stable, but the puppet runtimes have jumped quite a bit and the load on our creaky old puppetmaster is significantly higher (~ 200 nodes, 30 minute checkins). Are there any pro

[Puppet Users] Re: 2.7 Dynamic scoping warnings - which way should I jump?

2013-06-21 Thread Dick Davies
Thanks Nick, we're not that far from the roles/profiles approach (always seemed like the easiest way to get nodes.pp as clean as possible). Sounds like if we grow out at that level it'll cater to the special snowflake brigades demands and reduce the number of per-node tweaks. Is it possible to do

Re: [Puppet Users] Re: Control directory mode only on creation?

2013-06-21 Thread Robin Lee Powell
Yeah, that's what I thought; I just hate execs. :) Thanks! On Thu, Jun 20, 2013 at 06:03:54PM -0700, Michael Dodwell wrote: > exec { > command => "mkdir /somedir; chown newuser /somedir", > unless => "test -d /somedir" > } > > > On Friday, June 21, 2013 8:24:59 AM UTC+10, Robin Powell wrot