[Puppet Users] Testing exported resources

2012-10-03 Thread Pete
refuse to start). Any ideas? Pete -- -- This email was sent by a company owned by Pearson plc, registered office at 80 Strand, London WC2R 0RL. Registered in England and Wales with company number 53723. -- You received this message because you are subscribed to

[Puppet Users] Custom facts for a puppetmasterless environment

2010-04-09 Thread Pete Emerson
is the way to go (I have not played with facter yet). Is there an alternate solution for getting my own facts into a puppet node without a puppetmaster? Pete -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, s

[Puppet Users] Re: Custom facts for a puppetmasterless environment

2010-04-09 Thread Pete Emerson
On Apr 9, 9:04 am, Pete Emerson wrote: > I see the instructions for creating custom facter recipes here: > > http://projects.reductivelabs.com/projects/puppet/wiki/Adding_Facts > > and in this thread, James Turnbull suggests that Facter might some day > support other lang

[Puppet Users] Re: ANNOUNCE: Puppet 2.6.0 - Final release!

2010-08-05 Thread Pete Emerson
; > To specify a particular digest algorithm use --digest DIGESTNAME. > > To fingerprint a certificate with puppetca use: > > $ puppetca --fingerprint host.example.com > > or > > $ puppet cert --fingerprint host.example.com > > Also supported is the --digest option. &

[Puppet Users] Application / database deployment coordination

2011-01-28 Thread Pete Ehlke
ging this application's deployment. Question: is the sort of orchestration that I seem to need something that can be approached in puppet, or would I be better off slicing this application out to a different automation platform? Thanks for any thoughts. -Pete -- You received this message because

[Puppet Users] Nagios monitoring with example42 modules

2011-02-28 Thread Pete Ehlke
r never seems to monitor the target node. /etc/nagios/auto.d/services/client.example.com-apache_process.cfg and friends do not get created on either system. Is anyone from example42 around to help point out where I'm being stupid here? Thanks -Pete -- You received this message because you a

[Puppet Users] Re: Puppetrun timeout

2009-06-11 Thread Pete Emerson
-foreground. If I do that, is there a way to query host and see when it's last successful update was, in order to show that the changes have been completed? If that doesn't work, then I guess I'd have to ssh to each box and run puppetd there and wait for it to finish. Pete On Thu,

[Puppet Users] Re: Puppetrun timeout

2009-06-11 Thread Pete Emerson
Aha! Excellent. Reference: http://reductivelabs.com/trac/puppet/wiki/ReportsAndReporting I haven't played with this piece of puppet yet, but will do so now. Thanks, Pete On Thu, Jun 11, 2009 at 3:55 PM, Luke Kanies wrote: > > On Jun 11, 2009, at 5:52 PM, Pete Emerson wrote: >

[Puppet Users] Multiple default providers for service: init, base; using init

2009-07-01 Thread Pete Emerson
I have a bunch of CentOS machines. In the process of puppetizing one of them I'm getting this warning (more complete debug info at the end): warning: Found multiple default providers for service: init, base; using init info: /Service[gmond]: Provider init does not support features enableable; not

[Puppet Users] Re: Login to puppet on IRC

2009-07-01 Thread Pete Emerson
I'm getting the same via Firefox on Mac. Doesn't look like it's browser specific. On Wed, Jul 1, 2009 at 10:35 AM, Sharada wrote: > Any one able to join puppet chat from : > http://reductivelabs.com/home/irc/ > > I tried from IE and Firefox. It says ' Login Terminated' > > > > --~--~-~-

[Puppet Users] Re: Puppet Implementation

2009-07-01 Thread Pete Emerson
If there is no default config file, you want to put a default config file in place, but otherwise, leave it alone? If so, one way to do it would be to use "unless" or "onlyif" in your recipe. Something like this should work (untested by me), although there may be a "better" way to do it:

[Puppet Users] Re: Forcing puppetd ask puppemasterd for new changes

2009-07-03 Thread Pete Emerson
I also turn on reporting back to puppetmaster via --report and have found that very useful for debugging and figuring out state centrally. On 7/3/09, Sam Rowe wrote: > > FYI puppetd --test or puppetd -t is shorter than all of that > --one-time --no-daemonize etc stuff and is basically the same.

[Puppet Users] Managing upgrading of puppet recipes

2009-07-06 Thread Pete Emerson
et/manifests/site.pp:33 Can I get some suggestions for how to load specific manifests based on a path partially determined by my puppet classifier? Thanks in advance, Pete --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[Puppet Users] Re: Managing upgrading of puppet recipes

2009-07-07 Thread Pete Emerson
day and see how easy it is to write my own function to generate a file like this. I've never done this or written ruby. An adventure, for sure! Any other suggestions on how to skin this cat? Thanks, Ohad, for pointing me to this suggestion. Pete On Mon, Jul 6, 2009 at 8:32 PM, Ohad

[Puppet Users] Re: Managing upgrading of puppet recipes

2009-07-07 Thread Pete Emerson
Brilliant! I think that will save me tremendously. I'll play with it and let you know. Thanks very much. Pete On Tue, Jul 7, 2009 at 8:22 AM, Ohad Levy wrote: > > Maybe this can save you some time... > > > http://github.com/ohadlevy/puppet-mu

[Puppet Users] Re: Managing upgrading of puppet recipes

2009-07-07 Thread Pete Emerson
conf, I'll let you know how it goes. Thanks again for your pointer. Pete On Tue, Jul 7, 2009 at 8:45 AM, Pete Emerson wrote: > Brilliant! I think that will save me tremendously. I'll play with it and > let you know. Thanks very much. > > Pete > > > On Tue, Jul 7, 2009

[Puppet Users] Recursively templating files in a directory

2009-07-08 Thread Pete Emerson
ify 100 separate file definitions in my manifest. What's the right approach to recursively templating files? Thanks, Pete --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to

[Puppet Users] Tracking down ensure => running problem

2009-07-10 Thread Pete Emerson
not doing something quite right in my init.d script as I have other custom services that are working just fine, but since I cloned this one from a working one, it's baffling me. How does puppet check whether a service is running or not for an init service? Thanks, Pete --~--~-~--~

[Puppet Users] Re: sequential change implementation

2009-07-28 Thread Pete Emerson
sions. Lather, rinse, repeat. I also monitor the results so that if an upgrade doesn't go through it won't continue to upgrade the rest of the servers. Pete On Tue, Jul 28, 2009 at 10:10 AM, Larry Ludwig wrote: > > On Jul 28, 2009, at 9:16 AM, mmalamud wrote: > > > >

[Puppet Users] Re: check if package installed

2009-08-05 Thread Pete Emerson
You can also use unless or onlyif. Here's an example where I manipulate /foo/bar if package baz is not installed via rpm: file { "/foo/bar": source => unless => "rpm -q baz" } Same thing with 'onlyif'. Pete On Tue, Aug 4, 2009 at 11:37 PM

[Puppet Users] Expanding templates into files for testing purposes

2009-08-19 Thread Pete Emerson
According to http://reductivelabs.com/trac/puppet/wiki/PuppetTemplating I can do this for template syntax checking: erb -x -T '-' mytemplate.erb | ruby -c Is there a way to feed ruby values for the variables inside the template and see what the file will look like on a target mach

[Puppet Users] Re: Expanding templates into files for testing purposes

2009-08-20 Thread Pete Emerson
^ test.erb:5: syntax error I'm missing something simple either in my test.erb or the way I run ruby on it, or both. Pete On Thu, Aug 20, 2009 at 3:16 AM, Trevor Vaughan wrote: > > I usually just copy the erb, set the variables at the top and then run i

[Puppet Users] Re: Puppet 0.25 migration

2009-09-09 Thread Pete Emerson
r-0.25.0-0.4.el5.noarch ruby-1.8.5-5.el5_3.7.x86_64 ruby-augeas-0.3.0-1.el5.x86_64 ruby-devel-1.8.5-5.el5_3.7.x86_64 rubygems-1.3.1-1.el5.noarch ruby-irb-1.8.5-5.el5_3.7.x86_64 ruby-libs-1.8.5-5.el5_3.7.x86_64 ruby-rdoc-1.8.5-5.el5_3.7.x86_64 ruby-shadow-1.4.1-7.el5.x86_64 ruby gem info (although pass

[Puppet Users] Re: Puppet 0.25 migration

2009-09-09 Thread Pete Emerson
Done. The issue is now posted here, and I added --trace to my puppetmasterd arguments to provide more info. http://projects.reductivelabs.com/issues/2620 Pete On Wed, Sep 9, 2009 at 4:29 PM, Luke Kanies wrote: > > Can you file this as a bug, and add all of this logging data to it? >

[Puppet Users] Preventing concurrent puppetd updates

2009-09-15 Thread Pete Emerson
xists; skipping catalog run I can avoid this in some fashion by detecting this return result and re-sshing into the node to run puppetd again, but this doesn't seem very elegant. What are other people doing to avoid this sort of situation? Pete --~--~-~--~~~---~-

[Puppet Users] Re: Preventing concurrent puppetd updates

2009-09-15 Thread Pete Emerson
etdlock ] > > do > > sleep 1 > > done > > > #do your stuff > > > Silviu > > > On Tue, 15 Sep 2009 13:05:37 -0700, Pete Emerson > > wrote: > >> I'm using puppet (0.24, working on the 0.25 migration) to do rolling > >> up

[Puppet Users] Re: Preventing concurrent puppetd updates

2009-09-17 Thread Pete Emerson
With this solution would I need to clear a cache? If I do two puppet runs right after each other, doesn't puppet cache the recipes for a period of time? If so, what do I need to do to wipe that local cache out? Pete On Tue, Sep 15, 2009 at 2:42 PM, Pete Emerson wrote: > > Silviu, I

[Puppet Users] Re: Preventing concurrent puppetd updates

2009-09-17 Thread Pete Emerson
Ah, in answer to my own question: http://reductivelabs.com/trac/puppet/wiki/ConfigurationReference --ignorecache should do the trick. On Thu, Sep 17, 2009 at 7:14 AM, Pete Emerson wrote: > With this solution would I need to clear a cache? If I do two puppet > runs right after each

[Puppet Users] Monitoring the puppetmaster

2009-09-22 Thread Pete Emerson
n the process list. I'm wondering what a good way to monitor this would be. I see that I can telnet into port 8140, is there something simple I can send that would give me an indication that everything is okay or not? Any suggestions on monitoring this would be apprecia

[Puppet Users] Re: Monitoring the puppetmaster

2009-09-22 Thread Pete Emerson
Sounds promising. Did puppetlast appear after 0.24.7-4? I don't see it on my box. [r...@admin]# rpm -qa | grep ^puppet puppet-server-0.24.7-4.el5 puppet-0.24.7-4.el5 [r...@admin]# rpm -ql puppet puppet-server | grep puppetlast [r...@admin]# find /usr -name "puppetlast" [r...@ad

[Puppet Users] Re: Monitoring the puppetmaster

2009-09-22 Thread Pete Emerson
es, so it looks like what I can do is simply check the last modified time of the last yaml file like this: stat `ls -tr /var/lib/puppet/yaml/facts/*.yaml | tail -n1` and then check to make sure that's within reasonable limits. Pete On Tue, Sep 22, 2009 at 12:55 PM, Pete Emerson wrote: >

[Puppet Users] Re: Monitoring the puppetmaster

2009-09-22 Thread Pete Emerson
I'm working on migrating to 0.25 and Passenger, with multiple master nodes for redundancy and scalability. Pete On Tue, Sep 22, 2009 at 12:41 PM, Clint Savage wrote: > > On Tue, Sep 22, 2009 at 1:38 PM, Pete Emerson wrote: >> >> I'm using 0.24 with Webrick (in the p

[Puppet Users] puppet SYN flood

2009-10-06 Thread Pete Emerson
nd)? Any thoughts appreciated. Pete --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this gro

[Puppet Users] Re: puppet SYN flood

2009-10-07 Thread Pete Emerson
aving WEBrick running, then cut over. So far, so good. Next up is Puppet 0.25! Pete On Tue, Oct 6, 2009 at 3:03 PM, Paul Lathrop wrote: > > On Tue, Oct 6, 2009 at 2:10 PM, Pete Emerson wrote: >> >> I'm seeing this in my logs: >> >> kernel: possible SYN flooding on

[Puppet Users] How to group packages together

2009-10-23 Thread Pete Emerson
ple content" } Now you can add package baz in the $packages definition, and away you go. Pete --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send emai

[Puppet Users] Re: packages with dot in the name

2009-10-23 Thread Pete Emerson
You got close with quoting, but I think you're just missing the : after the package, like this: package { "lua5.1": ensure => installed } On Fri, Oct 23, 2009 at 7:08 AM, Mathieu N wrote: > > Hi all, > It might be a newby question but I cannot found any answer here or on > the documentation

[Puppet Users] Re: Multiple environments

2009-11-12 Thread Pete Emerson
y in [main]. Pete On Wed, Nov 11, 2009 at 9:53 PM, Scott wrote: > > So I'm trying to get multiple environments to work with puppet 0.25.1 > on ubuntu 8.04 and no matter what I do, puppet just completely ignores > any environment setting.  There's really next to no information in

[Puppet Users] Re: Managing upgrading of puppet recipes

2009-11-12 Thread Pete Emerson
Here's the solution I wound up using. I created a puppet.conf.erb template file and had puppet create the puppet.conf file dynamically. The critical pieces (I only wanted directories starting with v, like v01, v02, et cetera): <% dirs = Dir.entries("/etc/puppet/manifests").sort -%> [main] ... [

[Puppet Users] Version recipes on a per-application level

2010-01-10 Thread Pete Emerson
to be able to do is take that variable and use it to include puppet recipes. Something along the lines of this in my site.pp, which doesn't work: import "myapp/$myapp_version/myapp.pp" Can anyone point me in the right direction as to how I might do this sort of versioning of my puppet

Re: [Puppet Users] Version recipes on a per-application level

2010-01-10 Thread Pete Emerson
ht approach, though, because 'import "$foo/myapp.app"' doesn't seem to be allowed. But what I ultimately want is to have dynamic control over the puppet recipes themselves. Hopefully this explains a bit better. Thanks again for your help! Pete -- You received this messag

Re: [Puppet Users] Version recipes on a per-application level

2010-01-10 Thread Pete Emerson
master to generate the site.pp before running puppet on my node. Pete On Sun, Jan 10, 2010 at 5:22 PM, Pete Emerson wrote: > Hmm, I'm not sure this accomplishes what I'm looking for. I already > have control over what versions get installed on which servers (via a > puppet_node_clas

Re: [Puppet Users] Version recipes on a per-application level

2010-01-10 Thread Pete Emerson
I take it back, I can't have the site.pp dynamically generated via puppet, because potentially I need it to be different for each server. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegrou

Re: [Puppet Users] Version recipes on a per-application level

2010-01-10 Thread Pete Emerson
r the desired version get executed. Still feels a bit hacky, but I think it will work. Pete -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this

[Puppet Users] Using Puppet for application deployment

2010-03-02 Thread Pete Emerson
oyments via some other mechanism, how do you do it, and why aren't you using Puppet to do it? Pete -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscrib

Re: [Puppet Users] exec -> creates question

2010-03-04 Thread Pete Emerson
If you don't care about the contents of the file, just whether it's there or not: unless => "/usr/bin/file MYFILE" or unless => "/usr/bin/stat MYFILE" or unless => "/bin/ls MYFILE" should all be pretty lightweight On Thu, Mar 4, 2010 at 12:06 PM, Patrick wrote: > > On Mar 4, 2010, at 7:29 A

Re: [Puppet Users] Puppet 0.24.8 RPM (0.25.4 client not backwards compatible)

2010-03-04 Thread Pete Emerson
repo. This might help minimise surprises like this. I don't think there's a great way for the EPEL folks to know that for puppet going from 0.24.8 to 0.25 is a big deal, but for some other app going from version 0.x.y to version 0.z is a very minor deal. Pete On Thu, Mar 4, 2010 at 12

[Puppet Users] Re: Using Puppet for application deployment

2010-03-12 Thread Pete Emerson
boxes, our software modifies the database in slices and then verifies that the upgrade was successful before proceeding to the next slice, and if puppet fails to upgrade, all future boxes waiting to be upgraded get canceled. I think it's a pretty slick system. Pete On Mar 12, 2:46 am, Jesús Couto

[Puppet Users] undefined method `controllable?'

2009-03-06 Thread Pete Emerson
: ensure => installed } service { "sshd": require => Package[openssh-server], subscribe => File["/etc/ssh/sshd_config"], ensure => 'running' } Can someone explain what this error message is, and perhaps tell me what might be wrong?

[Puppet Users] undefined method `controllable?' when manipulating sshd

2009-03-06 Thread Pete Emerson
Apologies if this winds up in the group twice, I'm not positive I submitted this the first time around. I installed puppet on an existing client and am getting this when running puppetd --test: err: Could not create sshd: undefined method `controllable?' for nil:NilClass warning: Not using cache

[Puppet Users] Re: undefined method `controllable?'

2009-03-06 Thread Pete Emerson
I resolved this problem. I discovered that there was a key mismatch. I'm loving puppet, but the error messages are completely frustrating. Pete > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

[Puppet Users] Puppet debugging tricks of the trade

2009-04-15 Thread Pete Emerson
seconds debug: Retrieving catalog debug: Calling puppetmaster.getconfig err: Could not retrieve catalog: Could not find node '01.web.test'; cannot compile warning: Not using cache on failed catalog What are the tools / commands that people use to debug and figure out what to my eyes are cr

[Puppet Users] Re: Puppet debugging tricks of the trade

2009-04-15 Thread Pete Emerson
key for me was running puppetmasterd in --debug --no-daemonize mode, and then I retroactively went and looked at logs for the message I figured must be there, and it was. Pete On Wed, Apr 15, 2009 at 9:30 AM, Peter Meier wrote: > > Hi > > > I'm stuck. All of my puppet clients

[Puppet Users] Treating floats as strings

2009-04-27 Thread Pete Emerson
quot;; I think it will attempt to install version 0.1 of my package instead of version 0.10. Is there a way to force the variable to be treated as a string instead of a float in this type of situation? Pete --~--~-~--~~~---~--~~ You received this message because you

[Puppet Users] Re: Treating floats as strings

2009-04-27 Thread Pete Emerson
efined $parameters{$key}) { print " $key: \"$parameters{$key}\"\n"; } } I'm not quite sure how to tell YAML module to treat everything as a string (stringify didn't seem to cut the mustard), but this workaround does the trick. Pete On Mon, Apr 27, 2009 at 11:

[Puppet Users] Cron presence based on file content

2009-05-01 Thread Pete Emerson
hen this exec will only run if the command returns 0. I'm stumped. And I may not be approaching this in the right way. Any pointers would be appreciated. Also, the logic here (if I had it working) would not permit *removal* of the cron job if it exists. I cou

[Puppet Users] Re: Cron presence based on file content

2009-05-02 Thread Pete Emerson
=> "if grep -q crontab /etc/crontab.txt; then date >> /tmp/date.log; fi" but it would be nicer if the cronjob just didn't exist at all. Pete On Fri, May 1, 2009 at 1:23 PM, John Florian wrote: > > Pete, > > The only thing affected by onlyif here is the /b

[Puppet Users] Re: Cron presence based on file content

2009-05-02 Thread Pete Emerson
Ah I see a new thread, "Assign variable with content of a file?" that lines up with my needs, I'll check out the suggestions there. Pete On Sat, May 2, 2009 at 7:22 AM, Pete Emerson wrote: > Oh, that makes sense. The require only sets the dependency of cron on exec, > not

[Puppet Users] Puppetrun timeout

2009-06-08 Thread Pete Emerson
st=myhost3 --foreground --parallel However, I don't see anything in the puppetrun doco that hints at setting the execution exiry time. Any suggestions? Pete --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Pup

Re: [Puppet Users] What do YOU do to catch undefined variables

2013-05-12 Thread Pete Brown
On 11 May 2013 06:43, David Schmitt wrote: > On 10.05.2013 17:08, Nikola Petrov wrote: > >> +1 >> >> The vim plugin is the best you can find if you are already proficient >> in vim somewhat. I use it in conjuction with >> https://github.com/SirVer/**ultisnipsa

Re: [Puppet Users] puppet and custom nagios object variables

2013-05-14 Thread Pete Brown
I think icinga can use those as well. I don't believe it is supported in the puppet resources yet. It may be time to find out how to add it. On 14 May 2013 23:38, Mason Turner wrote: > Nagios support "custom object variables" ( > http://nagios.sourceforge.net/docs/nagioscore/3/en/customobjectv

Re: [Puppet Users] Workaround for Puppet 3 not working in Fedora 18

2013-05-16 Thread Pete Brown
Hi Tom, Fedora 18 is the standard environment for new nodes in my environemnt and I have never had this issue getting puppet to work. Admittedly I have two repos setup, one for fedora 17 with a low priority and one for 18 with normal priority. I was running the fedora 17 repos before they started

Re: [Puppet Users] How to apply to all hosts with exception list.

2013-05-16 Thread Pete Brown
On 17 May 2013 10:33, Stephen Wallace wrote: > Hi all, > > I know that there are likely a few ways to solve the following. I just > don't know what the best way may be :) > > We're trying to work out how do something similar to the following > scenario. > > How do we apply a policy to uninstall C

Re: [Puppet Users] Re: How to apply to all hosts with exception list.

2013-05-16 Thread Pete Brown
On 17 May 2013 13:05, joe wrote: > The easiest thing to do would to make a subclass called cups::enabled or > similar and use an override: > > class cups::enabled inherits cups{ # The inherits is important > > Package['cups']{ > ensure => 'present, > } > > Add service and config file r

Re: [Puppet Users] Re: Manual run with specific class

2013-05-19 Thread Pete Brown
On 17 May 2013 23:01, jcbollinger wrote: > > > On Thursday, May 16, 2013 3:38:23 PM UTC-5, Nev wrote: >> >> I need to be able to run a certain class ONLY when it is called >> manually from the client. >> >> I created a class named "manual" and can run it from the client like >> this: >> >> puppet

Re: [Puppet Users] Migration from 0.25.4 to the latest puppet and relating issues ....

2013-05-19 Thread Pete Brown
You may want to have a look here. http://docs.puppetlabs.com/guides/upgrading.html and here http://docs.puppetlabs.com/puppet/3/reference/release_notes.html#backwards-incompatible-changes-in-30 There are way too many changed between 0.25.4 and 3.1.1 You just hit the biggest. On 19 May 2013 03:1

Re: [Puppet Users] Workaround for Puppet 3 not working in Fedora 18

2013-05-20 Thread Pete Brown
Yeah they switched to systemd on fedora so the init scripts went away (finally!) They also renamed the "service" to puppetagent Try this. systemctl start puppetagent On 21 May 2013 08:36, Tom Poulton wrote: > Wait... spoke too soon: > > *Error: Could not start Service[puppet]: Execution of '/sb

Re: [Puppet Users] Migration from 0.25.4 to the latest puppet and relating issues ....

2013-05-20 Thread Pete Brown
On 20 May 2013 23:31, jcbollinger wrote: > > > On Sunday, May 19, 2013 10:43:19 PM UTC-5, Pete wrote: >> >> You may want to have a look here. >> http://docs.puppetlabs.com/**guides/upgrading.html<http://docs.puppetlabs.com/guides/upgrading.html> >> and here

Re: [Puppet Users] Workaround for Puppet 3 not working in Fedora 18

2013-05-21 Thread Pete Brown
On 22 May 2013 00:41, Tom Poulton wrote: > So I get the move to systemd (whatever that is) if that's what Fedora > uses, but why rename the "service", that means I have to add a special case > in my puppet module just for Fedora to set the name of the service resource > to "puppetagent"? Unless i

Re: [Puppet Users] Grouping hosts within environments

2013-05-30 Thread Pete Brown
On 31 May 2013 01:02, przemol wrote: > Hello, > > we have been using puppet 3 with hiera based config and several (usually > "typical") environments: > test > predev > dev > preprod > prod > ... > Basically we apply the puppet config to test, then predev, then dev, etc > But within each environme

Re: [Puppet Users] puppet module install vs github

2013-06-02 Thread Pete Brown
On 3 June 2013 11:38, Francisco Reyes wrote: > Just learnt about the function "puppet module install" today (thanks > Ashley). > > Which is more up to date github or what one gets from module install? > the "puppet module install" command installs modules from puppet forge. a lot of people use g

Re: [Puppet Users] Re: Recommend a good tutorial on using Hiera as an ENC?

2013-06-12 Thread Pete Brown
On 10 June 2013 22:39, Lab Yizhar wrote: > Hi, > > Not much into this but did you this link ? > > http://docs.puppetlabs.com/hiera/1/puppet.html > +1 The last entry on the page explains it. > > Regards, > > Yizhar > > > On Mon, Jun 10, 2013 at 3:07 PM, Paul Tötterman > wrote: > >> Hi, >> >>

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

2013-06-12 Thread Pete Brown
Which version of stdlib are you running? I would hazard a guess that the version you have installed isn't the right one for your puppet version. Basically 4.x only works on puppet 3.x with no support for earlier versions. 3.x is for puppet 2.7 and 3 with no support for earlier versions 2.x is for p

Re: [Puppet Users] Nagios & Puppet

2013-06-27 Thread Pete Brown
look at the code on github for inspiration even if you don't install it. Pete. On 28 June 2013 02:07, Christian Reiß wrote: > Hello folks, > > I am currently using Puppet to forge the nagios configuration files. Using > exported ressources it really works well - to a point. &g

Re: [Puppet Users] Packages on fedora19

2013-07-03 Thread Pete Brown
I was just wondering the same thing. My dev environment runs in Fedora 18 and I almost upgraded yesterday but thought some testing was in order first. I am likely to do what I did last time and try installing the versions from the previous release. I will be running up a Fedora 19 vm and install p

Re: [Puppet Users] Copy script from source -> run it -> delete it again

2013-07-03 Thread Pete Brown
Hi, So from a guess based on the name of the script it installs some javascript file somewhere. Am I correct? With maybe something extra like optimising it afterwards? Is there any reason you can't optimize that file and get puppet to "install" it on your node? This will give you a whole lot more

Re: [Puppet Users] Packages on fedora19

2013-07-03 Thread Pete Brown
On 4 July 2013 14:06, Michael Stahnke wrote: > On Wed, Jul 3, 2013 at 4:24 PM, Pete Brown wrote: >> I was just wondering the same thing. >> My dev environment runs in Fedora 18 and I almost upgraded yesterday >> but thought some testing was in order first. >> >>

Re: [Puppet Users] Packages on fedora19

2013-07-04 Thread Pete Brown
2.0.0.247-11.fc19 >> ruby(runtime_executable) = 2.0.0 >> ruby(x86-64) = 2.0.0.247-11.fc19 >> $ repoquery --provides ruby-libs >> libruby.so.2.0 >> ruby(release) = 2.0.0 >> ruby-libs = 2.0.0.247-11.fc19 >> ruby-libs(x86-32) = 2.0.0.247-11.fc19 >> l

Re: [Puppet Users] Renaming puppet binary to use with two puppet agent instances

2013-07-09 Thread Pete Brown
I think the general consensus on multiple masters managing a node is "don't do it". I personally can't see a reason why this sort of thing is even necessary. Why do you need two separate masters managing the same node? What specific reason do you need to split the resource management between two

Re: [Puppet Users] Re: Yum.puppetlabs.com: Fedora 19

2013-07-14 Thread Pete Brown
Excellent work! Now I guess there's no excuse to switch my environment to Fedora 19. Will let you know how it goes in my dev environment. On 14 July 2013 09:13, Michael Stahnke wrote: > Fedora 19 is now up on yum.puppetlabs.com. > > As a word of caution, this is the first distro to adopt Ruby 2

Re: [Puppet Users] apache restart fails

2013-07-15 Thread Pete Brown
Hi. I would recommend you use reload for apache restarts. Reload does a config check before the reload and if there is an issue it won't reload the config. I am also wondering if you have you had a look at the puppetlabs/apache module on puppet forge? It does just about everything you will need to

Re: [Puppet Users] 3.2.2 on CentOS 6.3, and "Did not receive certificate"

2013-07-15 Thread Pete Brown
On 12/07/2013 4:45 AM, "kegstand" wrote: > > You should be running puppet version 2 clients with puppetmaster version 2. > You should be running puppet version 3 clients with puppetmaster version 3. Actually puppet 2.x nodes will talk to a puppet 3.x master. As long as the puppet master is equal

Re: [Puppet Users] Re: Multiple Puppet masters each running as their own CA connecting to a single PuppetDB instance

2013-07-18 Thread Pete Brown
On 17 July 2013 14:18, Nick Lewis wrote: > On Tuesday, July 16, 2013 1:25:22 PM UTC-7, replicant wrote: >> >> So, >> >> We are working on migrating a global deployment of Puppet over to a >> single PuppetDB instance away from a single MySQL storeconfigs >> instance and are running into an issue. I

Re: [Puppet Users] Puppet Nagios resources

2013-07-22 Thread Pete Brown
On 23 July 2013 02:47, Matthew Nicholson wrote: > Jonathan, > > You would want to do it on the client level, when its exporting its host > definition, like: > > @@nagios_host { $hostname: > ensure => present, > alias => $hostname, > address => $ipaddress, > use => $template

Re: [Puppet Users] Re: apache 2.4 support in puppetlabs/apache

2013-07-23 Thread Pete Brown
:09, Pawel Tomulik wrote: > Pete, > > do you have any info regarding 2.4 support? Have you been successful with > creating the fork mentioned? > I'm playing with FreeBSD (9.x+) support and wish to have apache 2.4 at once. > > W dniu wtorek, 12 lutego 2013 07:19:00 UTC+1

[Puppet Users] puppetmaster foreman and puppetdb with an external ca

2013-08-18 Thread Pete Brown
ng.RestFn.applyTo(RestFn.java:137) at com.puppetlabs.puppetdb.core.main(Unknown Source) I am unsure which field it is trying to find in the cert so I have no idea how to fix it. Can someone please point me in the right direction? Thanks in advance. Pete. -- You received this message because you are s

Re: [Puppet Users] puppetmaster foreman and puppetdb with an external ca

2013-08-18 Thread Pete Brown
at 7:06 PM, Pete Brown wrote: > >> Hi everyone, >> >> I am attempting to use FreeIPA as the external CA for my puppet environment. >> I can get puppetmaster running under pasenger using certs stored in an >> nss db and puppet to work with standard pem encoded x50

Re: [Puppet Users] Re: Puppet first run timing out

2013-09-04 Thread Pete Hartman
I'm having a similar problem. I know for a fact that I am not contending with other agents, because this is in a lab environment and none of my agents is scheduled for periodic runs (yet). I have successfully run puppet agent -t first time, signed the cert, and run it a second time to pull ove

Re: [Puppet Users] Re: Puppet first run timing out

2013-09-04 Thread Pete Hartman
pet agent to redownload stuff remove the $vardir/lib > directory on the agent. > > > On Wed, Sep 4, 2013 at 1:48 PM, Pete Hartman wrote: >> I'm having a similar problem. >> >> I know for a fact that I am not contending with other agents, because this >> is

Re: [Puppet Users] Re: Puppet first run timing out

2013-09-05 Thread Pete Hartman
your help Cory. Pete On Wednesday, September 4, 2013 6:56:34 PM UTC-5, Cory Stoker wrote: > > We have lots of puppet clients on crappy bandwidth that would time out > like this as well. The option we changed to fix this is: > > #Specify the timeout to wait for cat

[Puppet Users] puppetlabs/puppetdb module when using passenger for master

2013-09-06 Thread Pete Hartman
I'm working on configuring a master in a lab environment, using Puppet Open Source. My master is running RHEL 6. I want to use modules to manage the master itself as much as possible, so I can use puppet to bootstrap itself as I go forward and move into production. Using puppetlabs/puppetdb to

Re: [Puppet Users] puppetlabs/puppetdb module when using passenger for master

2013-09-06 Thread Pete Hartman
th the second and make sure my documentation has good warnings about watching it during upgrades. I really appreciate the pointers, thank you! Pete On Fri, Sep 6, 2013 at 3:49 PM, Ken Barber wrote: >> 1) I had to set max-threads higher than my CPU count in >> /etc/puppetdb/conf.d/jetty.i

[Puppet Users] Pulling my hair out with CA proxying

2013-10-01 Thread Pete Hartman
files if need be, but I'm trying to avoid all the redacting I'd need to do (my server is not literally named "caserver" etc). Thanks Pete -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this g

Re: [Puppet Users] Pulling my hair out with CA proxying

2013-10-01 Thread Pete Hartman
I have to do more testing to determine for certain, but it appears to have been some combination of 1) the order in which modules were loaded, and 2) not having mod_proxy_http loaded. On Tue, Oct 1, 2013 at 2:39 PM, Pete Hartman wrote: > I am trying to establish what looks like a com

Re: [Puppet Users] Pulling my hair out with CA proxying

2013-10-02 Thread Pete Hartman
PuppetLabs; now that I have found what I was missing, I plan to stick with that. On Wed, Oct 2, 2013 at 2:08 AM, Gavin Williams wrote: > Pete > > I've not done this before, however am familiar with Puppet, and know a lot > more about F5s... > > I note that you say that you'

Re: [Puppet Users] Pulling my hair out with CA proxying

2013-10-02 Thread Pete Hartman
itted mod_proxy_http which was needed in addition to mod_proxy Thanks... Pete On Wed, Oct 2, 2013 at 2:27 PM, Felipe Salum wrote: > Can you paste your /etc/httpd/conf.d/puppetmaster.conf ? > > > On Wednesday, October 2, 2013 5:35:58 AM UTC-7, Pete Hartman wrote: >> >> I d

[Puppet Users] Re: Version Controlling Puppet Configs with svn

2013-10-29 Thread Pete Cornell
edit puppet code and make sure that you edit puppet code and commit to Git using your regular user account, not as root. This setup has been working fine for us. I also setup 3 Puppet environments in this way (for dev, QA and prod) and propagate code between environments with SVN. — Pete

[Puppet Users] Re: Version Controlling Puppet Configs with svn

2013-10-30 Thread Pete Cornell
/checkouts without becoming root. If you don’t have other users editing puppet files this method may not be necessary. Also, yes I do manage all the puppet directories this way, both /etc/puppetlabs/puppet and /opt/puppet/share/puppet/modules — Pete On Oct 30, 2013, at 6:47 PM, Hyunil S

Re: [Puppet Users] hiera suggestion

2014-01-21 Thread Pete Brown
My question would be what are you doing with nagios that need so much static data? My monitoring module uses facts and one or two static vars. I would suggest putting defaults in your modules so you don't need to set so many variables. Basing those defaults of custom facts would help reduce your n

Re: [Puppet Users] Puppet 3.4.2 OS X

2014-01-21 Thread Pete Brown
I am pretty sure you still need to setup the launch daemon manually on OS X. On 21 January 2014 06:55, Jason Hatman wrote: > I have my Puppet installation up and running, but I currently just run > "puppet agent --test" to use it. As I understand it, in a master/agent > configuration, Puppet aut

Re: [Puppet Users] How to manage SugarCRM config.php with Puppet?

2014-01-21 Thread Pete Brown
On 21 January 2014 00:33, Erwin Bogaard wrote: > Hi Pete, > > thanks for your reply. > I thought I replied to you last night, but Google doesn't show it. So here > it is again: > > The difficulty with using a template, is that there are just too many > exceptions bet

  1   2   >