Re: [Puppet Users] storeconfigs and exported resources?

2013-02-02 Thread Ken Barber
Here is the documentation for wiring up the puppetmaster to puppetdb: http://docs.puppetlabs.com/puppetdb/1.1/connect_puppet_master.html Make sure you follow all of these steps and see how you go. Also remember to restart your puppetmaster :-). It sounds like at least your routes.yaml isn't compl

[Puppet Users] Puppet Starting error

2013-02-02 Thread tester2mail
Hello, I have got the following error while starting the puppet client, please find the following = root@epsilon [/usr/src]# /etc/init.d/puppet start Starting puppet: /usr/sbin/puppetd:159:in `require': no such file to load -- puppet/application/puppetd (LoadError) from /usr

[Puppet Users] Split node definition into multiple files

2013-02-02 Thread ak
Hi for my dns servers the manifest (defines for the zones and keys) gets pretty long. I have the same problem with my icinga configuration (host and service checks, for hosts not running puppet (like switches and routers) where I cannot use exported resources). I know I can put individual nodes

[Puppet Users] Split node definition into multiple files

2013-02-02 Thread Jared Curtis
Couldn't you just add a new include to sites.pp called zones.pp then build a class within it to include on your DNS nodes? class myzones { nsd::zone { ... } . } node DNS { include myzones . } -- You received this message because you are subscribed to the Google Groups "Puppet

Re: [Puppet Users] Purge puppet's reports

2013-02-02 Thread Dan White
I take back my suggestion. LogRotate is not built to handle many little log files with different names. I found out the hard way - I tried to make it work :( The script by vagn will do the trick. Another suggestion: put a variable in the line "tail -n +2” in place of the “2” for how-many-file

Re: [Puppet Users] Purge puppet's reports

2013-02-02 Thread Ken Barber
tmpwatch is also a good approach: http://linux.about.com/library/cmd/blcmdl8_tmpwatch.htm. Probably requires less scripting, and its already on most distros, probably cleaning your /tmp directories already. On Sat, Feb 2, 2013 at 6:07 PM, Dan White wrote: > I take back my suggestion. > LogRotate

[Puppet Users] Possible to evaluate embedded variables?

2013-02-02 Thread Schofield
Given a variable that holds a class name is it possible to resolve the value of a variable within that class? For example class classes::myclass{ $install_dir = '/xyz' } class example($class_name='classes::myclass'){ file {"/mylink" : ensure => link, target => "${${class_name}::ins

[Puppet Users] hiera query yaml parameters

2013-02-02 Thread roadtest
Hello, I have a yaml data file containing user account with following information. #more users.yaml --- os_users: user1: locked: false comment: System Operator uid: '700' gid: '700' groups: - admin - sudonopw sshkeys: - ssh-rsa B3NzaC1yc2EBIwAAAQEAwLBhQefRiXHSbVNZYKu2o8

[Puppet Users] Puppet/Juniper Networks automation discussion at BAJUG March 6th

2013-02-02 Thread Derick Winkworth
Come and join the discussion at the Bay Area Juniper Users Group, March 6th. Sign up here (it's free): http://bajug.eventbrite.com/# >From 5:30PM to 9:00PM in Sunnyvale (see link above for directions). Includes kegs of beer as well as a variety of other inferior beverages. And Pizza. -Deri

[Puppet Users] Is it possible to enable SSL tracing on the master and agent?

2013-02-02 Thread Schofield
I would like to see the SSL handshake between the master and agent. How do I enable this? -- 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-users+unsubscr

[Puppet Users] Re: Puppet and Mcollective yaml file changing when it shouldn't

2013-02-02 Thread Dave Ta
Try using an erb template for your content. Its working well for me. 1. ## facts.erb 2. <%= 3. yaml = ["---"] keys = scope.to_hash.keys.reject {|k| k.to_s =~ /(uptime_seconds|timestamp|free)/} 4. keys.sort.each {|k| yaml << "#{k}: #{scope.lookupvar(k).to_s}"}

[Puppet Users] Re: Puppet and Mcollective yaml file changing when it shouldn't

2013-02-02 Thread Dave Ta
Try using an erb template for your facts.yaml file. Its working well for me so far. # facts.yaml.erb <%= yaml = ["---"] keys = scope.to_hash.keys.reject {|k| k.to_s =~ /(uptime_seconds|uptime_hours|timestamp|free)/} keys.sort.each {|k| yaml << "#{k}: #{scope.lookupvar(k).to_s}"}

Re: [Puppet Users] Re: Puppet and Mcollective yaml file changing when it shouldn't

2013-02-02 Thread R.I.Pienaar
- Original Message - > From: "Dave Ta" > To: puppet-users@googlegroups.com > Sent: Sunday, February 3, 2013 6:53:40 AM > Subject: [Puppet Users] Re: Puppet and Mcollective yaml file changing when it > shouldn't > > Try using an erb template for your facts.yaml file. Its working well f