[Puppet Users] File integrity monitoring and expected Puppet changes

2013-10-10 Thread banjer
Hi all, How can I retrieve a file's most recent checksum as reported by puppet? I'm running Puppet 3.1, PuppetDB 1.4, and Foreman 1.2, and have looked through the various APIs as well as /var/lib/puppet/ on each node, but can't find a specific field for the checksum. I think it used to be in

[Puppet Users] Re: Problem retreiving catalog

2013-09-07 Thread banjer
Scratch my note about storeconfigs not being supported in Foreman 1.2. More clarification about this stuff in https://groups.google.com/forum/#!topic/foreman-users/UxON4FtROUk On Saturday, September 7, 2013 3:33:05 PM UTC-4, banjer wrote: > > If you are upgrading to Foreman 1.2, note th

[Puppet Users] Re: Problem retreiving catalog

2013-09-07 Thread banjer
If you are upgrading to Foreman 1.2, note that you will need to set up puppetDB as the typical puppet storeconfigs is no longer used/supported as of Foreman 1.2. So don't delete or alter your type column in the hosts table, or you'll get this issue I was having: https://groups.google.com/f

Re: [Puppet Users] Invalid resource type anchor.

2013-07-09 Thread banjer
I had to install the puppet stdlib module with: *puppet module install puppetlabs/stdlib* and that fixed the issue. It wasn't available in my /etc/puppet/modules. I'm not sure if its *supposed* to be installed by default. I'm running puppet 3.x and had upgraded from 2.7. On Monday, January

[Puppet Users] Re: Module for tuned-adm

2013-05-08 Thread banjer
Thanks, I was about to roll out a puppet module for tuned-adm and found this. Easy to use and working great in my environment. Cheers! On Friday, January 4, 2013 8:25:16 AM UTC-5, Romain PELISSE wrote: > > Hi all, > > tuned-adm module: https://github.com/rpelisse/puppet-tuned > > I'm using > t

[Puppet Users] Show manifest code in rdoc

2013-04-08 Thread banjer
Is it possible to have puppet doc show all of the manifest code in the generated docs? I'm generating some html docs and would love to be able to look at the actual code for each class or define statement. With syntax highlighting would be even sweeter. I'm using the following to create my do

[Puppet Users] Re: Literal @ character in erb template

2012-09-04 Thread banjer
The puppet error was: err: Failed to apply catalog: Parameter source failed: Could not understand source # This file managed by Puppet Sorry for not seeing that error before...I kept looking at the "Bad URI" error message which I posted in my original email. So anyway, it turns out I was u

[Puppet Users] Re: Literal @ character in erb template

2012-08-31 Thread banjer
RB.new('*.notice;news.none;cron.none @<%= @host > %>:514').result(binding) > "*.notice;news.none;cron.none @localhost:514" > => nil > >> > > matti@acrux ~ $ cat | puppet apply --noop > notice inline_template('*.notice;news.none;cron.none @<%= @h

[Puppet Users] Literal @ character in erb template

2012-08-31 Thread banjer
Hi, I have a template named rsyslog.conf.erb, and the puppet agents seem to be choking on this: **.notice;news.none;cron.none @loghost:514* The agents report an error of ": bad URI(is not URI?): " followed by a bunch of jargon. I'm pretty sure its the literal '@' symbol that its trying to ev

[Puppet Users] Re: SSL issues - certificate verify failed

2012-08-10 Thread banjer
It usually involves doing this one the server: puppet cert clean myhost and on the client: rm -rf /var/lib/puppet/ssl Then try it again on your client: `puppet agent --test` Then back to your master: `puppet cert sign myhost`. On Friday, August 10, 2012 8:30:50 AM UTC-4, Axel Bock wro

[Puppet Users] Re: Error 400 on Server: Another local or imported resource exists with the type and title Sshkey

2012-08-10 Thread banjer
> If there is a new "foohost" client then you may not need to do anything. > If not, then yes, you should clear its configuration out of your > storeconfigs DB. > > Its a new hostname as well as a new key. I wasn't clear on that earlier. Also, I had run `puppet node clean foohost` before

[Puppet Users] Error 400 on Server: Another local or imported resource exists with the type and title Sshkey

2012-08-09 Thread banjer
I am attempting to remove an old ssh host key from /etc/ssh/ssh_known_hosts. In my manifest, I have the following: # add keys @@sshkey { $hostname: ensure => present, type => "rsa", key => $sshrsakey, } # remove key @@sshkey { "foohost": ensure => absent, type => "rsa", } S

Re: [Puppet Users] can dashboard and foreman be used at the same time?

2012-08-02 Thread banjer
om wrote: > > > > On Thursday, August 2, 2012 8:54:58 AM UTC-5, banjer wrote: >> >> I just switched from using Puppet Dashboard with PuppetDB 0.9 to using >> Foreman 1.0.0. This is on CentOS 6.3. I've been unable to get Foreman to >> work Puppet

Re: [Puppet Users] can dashboard and foreman be used at the same time?

2012-08-02 Thread banjer
I just switched from using Puppet Dashboard with PuppetDB 0.9 to using Foreman 1.0.0. This is on CentOS 6.3. I've been unable to get Foreman to work PuppetDB, so I had to revert to using the "old" way of storeconfigs without puppetdb. Perhaps I had something set up incorrectly, but I could

[Puppet Users] Managing /etc/ssh/shosts.equiv

2012-07-31 Thread banjer
Hi, does anyone have any elegant solutions for managing shosts.equiv? In my puppet ssh module, host keys for /etc/ssh/ssh_known_hosts are automatically managed with: @@sshkey { $hostname: ensure => present, type => "rsa", key => $sshrsakey, }

[Puppet Users] Re: Puppet master on Apache Passenger No such file or directory - config/environment.rb

2012-07-25 Thread banjer
/dashboard-vhost.conf I added: RailsBaseURI / On Wednesday, July 25, 2012 8:10:55 AM UTC-4, banjer wrote: > > Hi, > I am trying to configure my puppet master to be served by > Apache/Passenger. I was successful in getting puppet-dashboard to run > under Apache/Passenger, but have be

[Puppet Users] Puppet master on Apache Passenger No such file or directory - config/environment.rb

2012-07-25 Thread banjer
Hi, I am trying to configure my puppet master to be served by Apache/Passenger. I was successful in getting puppet-dashboard to run under Apache/Passenger, but have been running into issues with puppet master. When I visit https://foo:8140 in my browser to test things out, I get: Ruby on Ra

Re: [Puppet Users] Re: problem using apache & passenger to run dashboard

2012-07-24 Thread banjer
UTC-4, banjer wrote: > > I'm having the same exact problem trying to get Apache to serve puppet > dashboard on CentOS 6.3. Apache is set up to serve my puppet master, and > the puppetmaster is configured and working just fine. I get this in the > apache error log: > >

Re: [Puppet Users] Re: problem using apache & passenger to run dashboard

2012-07-24 Thread banjer
I'm having the same exact problem trying to get Apache to serve puppet dashboard on CentOS 6.3. Apache is set up to serve my puppet master, and the puppetmaster is configured and working just fine. I get this in the apache error log: Directory index forbidden by Options directive: /usr/sha

[Puppet Users] Re: REST API: facts_search on custom fact does not include puppet master in its list

2012-06-27 Thread banjer
My original post should read "abc" and not "btp" in the "facter -p | grep datacenter" examples. Edited inline below.. On Wednesday, June 27, 2012 2:20:35 PM UTC-4, banjer wrote: > > I'm running the following query to get a list of hosts in datacenter &qu

[Puppet Users] REST API: facts_search on custom fact does not include puppet master in its list

2012-06-27 Thread banjer
I'm running the following query to get a list of hosts in datacenter "abc": root@puppet:~> curl -k -H "Accept: pson" https://puppet:8140/production/facts_search/search?facts.datacenter=abc ["host04","host05","web01","db01"] *datacenter *is a custom fact distributed with pluginsync. The problem i

Re: [Puppet Users] Send Reports to Puppet Dashboard

2012-06-20 Thread banjer
If your hosts do not appear to be reporting, and you're seeing some background tasks pending (top left in the puppet dashboard web gui), then you probably need to start the "delayed_job" tasks on your puppet dashboard server in order to process the reports. Run this: *env RAILS_ENV=production