[Puppet Users] node performance - rack wrapper app

2013-09-16 Thread Ryan Bowlby
Hi All, For those of us dealing with slow puppet runs, due to having hundreds or thousands of node manifests, I've release a simple rack wrapper app. The app will determine which site.pp to use based on the fqdn of the requesting agent. It just a wrapper to the puppet rack call that passes the

[Puppet Users] Nagios XI + Puppet?

2013-08-07 Thread Ryan Bowlby
Hi All, I currently make use of Icinga (nagios fork) + Puppet for fully automated monitoring. It's worked great up to this point. I've recently been asked to integrate fine grained notifications support into icinga. I'm not entirely sure puppet manifests are the right place to manage contacts,

[Puppet Users] Re: Inheritance of classes in Ruby DSL

2013-02-16 Thread Ryan Bowlby
...Bueller Anyone have an answer for this? This seems like a pretty pertinent feature for anyone looking to take advantage of the ruby DSL. I for one would be eternally grateful. -Ryan On Wednesday, June 13, 2012 8:08:07 AM UTC-7, Ingo Fischer wrote: > > I have the same question (see > https:

[Puppet Users] vcsrepo: Could not create repository (non-repository at path)

2012-11-19 Thread bowlby
Hi, I'm running into a problem using the puppetlabs provided vcsrepo-module. It keeps giving the same error: -- notice: /Stage[main]//Vcsrepo[/usr/share/test2]/ensure: Creating repository from latest err: /Stage[main]//Vcsrepo[/usr/share/test2]/ensure: change from absent to latest f

[Puppet Users] Re: librarian-puppet

2012-07-26 Thread Ryan Bowlby
We went with git super projects and submodules instead of librarian-puppet. Might want to look at using git for management of per puppet-module repositories as well. On Wednesday, July 25, 2012 7:37:10 AM UTC-7, llo...@oreillyauto.com wrote: > > I've heard this project mentioned a few times a

Re: [Puppet Users] librarian-puppet vs git superproject?

2012-07-24 Thread Ryan Bowlby
, 2012 at 9:49 AM, David Schmitt wrote: > >> On 24.07.2012 00:43, Ryan Bowlby wrote: >> >>> Can anyone comment on their experiences with librarian-puppet or using >>> git superproject with per puppet module repositories? We are in the >>> midst of determin

[Puppet Users] librarian-puppet vs git superproject?

2012-07-23 Thread Ryan Bowlby
. What then would be the advantages of librarian-puppet? Thanks, Ryan Bowlby -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/4Kf47PY2sIwJ. To po

[Puppet Users] Re: How to take away install privilege from users other than puppet?

2012-07-15 Thread Ryan Bowlby
That's not really a puppet question. Typically installation of software in normal (posix compliant) locations requires root privileges. Merely limiting the commands one is capable of executing via sudo would likely be enough. -Ryan On Saturday, July 14, 2012 10:29:33 PM UTC-7, Ganesh Ganesh wr

[Puppet Users] Re: can nodes be grouped with IP address?

2012-07-09 Thread Ryan Bowlby
I would probably grimace and find my right eye twitch ramp back up if this was in my environmentbut here you go: node default { if $::ipaddress =~ /^10\.0\.[3,4]\.\d{1,3}$/ { include testing # testing class } } Obviously make sure no other matching node defs exist for this host. -R

[Puppet Users] Re: Built in rollback features

2012-07-09 Thread Ryan Bowlby
I tend to expose the ensure related resource attributes as parameters that can be specified at the node level: class { "apache": package_ensure => "absent", } The natural evolution is to get to a point within the organization where reinstalling a host is no longer scary. If the provisioning p

Re: [Puppet Users] file_line type issue, possible bug

2012-06-10 Thread Ryan Bowlby
h can be used on the same file. The current conflict doesn't have to be a conflict, I assumed puppet did this already. -Ryan On Sunday, June 10, 2012 9:58:23 AM UTC-7, Jeff McCune wrote: > > On Sun, Jun 10, 2012 at 3:56 AM, Ryan Bowlby wrote: > > Hi All, > > > >

[Puppet Users] file_line type issue, possible bug

2012-06-10 Thread Ryan Bowlby
Hi All, I am using the file_line type included in stdlib to add a line to /etc/sudoers. On each run the sudo module replaces /etc/sudoers, then file_line resource adds the line back. It's happening on each run and I can't seem to figure out to get the sudo module's file resource to stop replac

[Puppet Users] Duplicate package resource solutions?

2012-06-06 Thread Ryan Bowlby
Hi Guys, I searched through the forum and found a few related threads but no clear puppet sanctioned solution. We have several modules that require the same package, for example rsync or gcc. We usually solve these conflicts by making that package a standalone module. We don't want to have modu

[Puppet Users] Re: override parameter within base class?

2012-06-01 Thread Ryan Bowlby
up just doing a few simple wrapper parameters as advised by Nick. I like the Hiera idea but it will have to wait since we have so much low hanging fruit to pick for the time being. Thanks everyone! -Ryan On May 30, 2:00 pm, jcbollinger wrote: > On May 30, 2:37 pm, Ryan Bowlby wr

[Puppet Users] override parameter within base class?

2012-05-30 Thread Ryan Bowlby
Hi All, Is there a way to override the value of a parameter to a declared class within my base class. My nodes use a base class that occasionally need to be changed. Example: class "base" { class { "apache": mpm => "worker", } ..other awesomeness } Then in the nodes: node "a" { includ

[Puppet Users] Re: Check if class has been included?

2012-05-24 Thread Ryan Bowlby
On May 4, 6:34 am, jcbollinger wrote: > On May 4, 1:54 am, Dan Carley wrote: > > > > > > > > > > > On 3 May 2012 23:32, jcbollinger wrote: > > > > Hmm.  I guess I misunderstood your objective.  It is still true that > > > 'defined' is not a good approach, however, and also that > > > os::motd:

[Puppet Users] Re: Check if class has been included?

2012-05-03 Thread Ryan Bowlby
7:19 am, jcbollinger wrote: > On May 2, 3:14 pm, Ryan Bowlby wrote: > > > > > > > > > > > Hi All, > > > I recently added the puppet-concat module in order to implement the > > example motd use case. Now our motd includes a list of modules being &g

[Puppet Users] Check if class has been included?

2012-05-02 Thread Ryan Bowlby
Hi All, I recently added the puppet-concat module in order to implement the example motd use case. Now our motd includes a list of modules being used on the server, which is awesome. All the modules define an motd::register so they expect that the motd module was included. When a node does not in

[Puppet Users] Re: scaling puppet, skipping puppetmaster?

2012-04-27 Thread Ryan Bowlby
Currently we have two puppetmaster servers with ALL requests being load balanced. I use unison to keep the ssl directory in sync between hosts. Each server runs keepalived and requests go to a VIP that exists on one of the servers. The server with the VIP load balances the requests (mod_proxy) betw

[Puppet Users] Agent thundering herd solutions?

2012-04-27 Thread Ryan Bowlby
I'm hoping to have all the puppet agents run on a 20 minute interval with 480sec on either side. I don't want to launch the agent from cron in order to achieve a level of randomness. Is there a splay/random option that can be included in the sysconfig file or config file? I want to continue runnin

[Puppet Users] Re: Empty node definition mysteriously runs yum class!

2012-03-29 Thread Ryan Bowlby
> On Mar 28, 3:00 pm, Ryan Bowlby wrote: > > > I'm having an issue where every single puppet node included our yum > > class as part of the catalog. In all instances the nodes node > > definition was empty. Has anyone experienced something like this > > before?

[Puppet Users] Empty node definition mysteriously runs yum class!

2012-03-28 Thread Ryan Bowlby
I'm having an issue where every single puppet node included our yum class as part of the catalog. In all instances the nodes node definition was empty. Has anyone experienced something like this before? Is the yum class colliding with an internal class? We do not define a node default or use any n

[Puppet Users] Testing catalog run on REAL node as git pre-push hook?

2012-03-02 Thread Ryan Bowlby
were encountered. Thanks!!! Ryan Bowlby -- 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 group, send email to puppet-users+unsubscr...@google

[Puppet Users] Display puppet managed resources in motd?

2012-02-18 Thread Ryan Bowlby
Hi All, I'd like to display which resources are managed by Puppet in a given host's motd file. Does anyone know the best way to accomplish this? As we transition to puppet it would be helpful to know what resources are currently being managed by puppet. Alternatively, if anyone has created a comm

[Puppet Users] Re: Error 400 on SERVER: Could not autoload active_record: uninitialized constant ActiveRecord

2012-02-08 Thread Ryan Bowlby
Thank you, you just added hours to my life! 3.0.11 works perfect. Perhaps the puppetlabs docs should make note of this? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/pu

[Puppet Users] Re: Conditional copy of file

2012-02-01 Thread Ryan Bowlby
Wrap the file resource in an if that checks if $conf_file is defined. I would also recommend replacing the case statement with a parametrized class with the default for $conf_file being undef. Also, if you were okay with having a default blank file present then you could just replace your current

[Puppet Users] Re: Puppet can't start service (dropbox) but init.d command works manually

2012-01-31 Thread Ryan Bowlby
I second checking for required environment variables. Attempt to run in a shell that hasn't sourced your .bash_profile and related login- time config files. Also, try it with an exec with "/bin/bash -x /etc/ init.d/dropbox start" to further troubleshoot. On Jan 30, 3:05 pm, "Richard K. Miller" w

[Puppet Users] Re: Puppet security issue?

2012-01-27 Thread Ryan Bowlby
a lesser known repo. Thanks again, Ryan Bowlby On Jan 26, 11:37 pm, Brice Figureau wrote: > On 27/01/12 02:14, Ryan Bowlby wrote: > > > Hi All, > > > I have a two puppet servers using Apache with mod_proxy as the > > frontend. Similar to what what's describe

[Puppet Users] Re: Issue Installing Puppet on Red Hat6

2012-01-26 Thread Ryan Bowlby
I use CentOS 6.2 with yum-priorities and several additional repositories. In general the following priority order works well: updates -> extras -> puppetlabs -> epel -> rpmforge Then, as said previously, just run yum -y install puppet-dashboard and continue following docs. That setup will allow y

[Puppet Users] Re: passing argument to a class or a module

2012-01-26 Thread Ryan Bowlby
Classes can only be declared once while defines can be declared multiple times. So if you wanted two vhost files a define would be needed. On Jan 26, 3:47 pm, Joehillen wrote: > whoa, my bad. I learned puppet before 2.6 > > Now I don't know why there is a distinction between classes and defines.

[Puppet Users] Puppet security issue?

2012-01-26 Thread Ryan Bowlby
t; 200 343 "-" "curl/7.15.5 (x86_64- redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/ 0.6.5" That's a request from another server. Here are the Apache configs: http://pastebin.com/rDKPSjjy Thanks everyone! Ryan Bowlby -- You received this message be

[Puppet Users] Re: params.pp class with parametrized class support?

2012-01-18 Thread Ryan Bowlby
Show off! ;) Great example thanks. I noticed you fully qualify variables within the very class they were assigned. Is that best practice now? I've created a simple apache module using your openssh module as inspiration. I still need to modify params.pp to check for globally defined vars. In the c

[Puppet Users] Re: Using foo::params, inheritance, and parameterized classes simultaneously?

2012-01-17 Thread Ryan Bowlby
pache': ssl_package => true, } } I'm just trying to do things "right" the first time. On Jan 17, 9:59 pm, Nigel Kersten wrote: > On Tue, Jan 17, 2012 at 9:33 PM, Ryan Bowlby wrote: > > Thanks for the great replies Nigel. As a person currently rolling out > &g

[Puppet Users] Re: Using foo::params, inheritance, and parameterized classes simultaneously?

2012-01-17 Thread Ryan Bowlby
to be overridden by global namespace variables (for enc support) 3. further allow parametrized class declarations to take precedence over 1 and 2 Can you point me to a module that does this? Alternatively, can you make a recommendation for module best practices going forward. Thanks, Ryan Bowlby O

[Puppet Users] params.pp class with parametrized class support?

2012-01-17 Thread Ryan Bowlby
If I wanted to allow all the variables normally set within params.pp to also be assigned as class parameters or as global variables how would I do this? I still want all the variables to be initially set to defaults within the params.pp class but allow for them to be overridden at the node level.

[Puppet Users] delayed final state??

2012-01-16 Thread Ryan Bowlby
I have a somewhat abstract best practice question. In some instances fully applying a node's puppet catalog results in that node interacting with production infrastructure. Sometimes you want to provision a new host and have it apply it's puppet catalog but not yet integrate into the production env

[Puppet Users] certificate sync methods?

2011-12-20 Thread Ryan Bowlby
Hi All, We are going to setup two puppet masters, each will include the full stack of services. Apache as the frontend on both load balancing to the backend services on both. We will be using keepalived and VIP whose A record is puppet.domain. We would like to have the CA in active/active on the

[Puppet Users] Re: slave-facts on puppetmaster

2011-01-28 Thread bowlby
; > wrote: > > On Sat, Jan 01, 2011 at 12:53:11AM -0800, bowlby wrote: > >> Hi, > > >> I'm figuring out a way to build a ssh-gateway. For that to work I want > >> access to the internal ipaddresses that are used by my slaves (which > >> get ass

[Puppet Users] slave-facts on puppetmaster

2011-01-01 Thread bowlby
Hi, I'm figuring out a way to build a ssh-gateway. For that to work I want access to the internal ipaddresses that are used by my slaves (which get assigned by dhcp and thus are not predictable). This way I can change the host-file on my ssh-gateway so that hostnames point to the right nodes. So

[Puppet Users] Re: variables created with generate() function have a newline when used in a template

2010-12-26 Thread bowlby
Thanks, both of you! That solved it. Merry Christmas (for what's left of it...) On Dec 26, 12:54 pm, Daniel Pittman wrote: > On Sun, Dec 26, 2010 at 22:45, bowlby wrote: > > I have this in nodes.pp > > $puppetmaster_fqdn = generate("/usr/bin/facter","

[Puppet Users] variables created with generate() function have a newline when used in a template

2010-12-26 Thread bowlby
I have this in nodes.pp $puppetmaster_fqdn = generate("/usr/bin/facter","fqdn") and this in a template http://<%= puppetmaster_fqdn %>:8080 When puppet runs, this is the result: http://puppet.home :8080 Anybody any clue to whats causing this? I've tried -%> -- You received this message beca

[Puppet Users] Re: puppet and cpan

2010-08-17 Thread bowlby
Thanks for all your answers, but I settled for a different solution. It appeared the perl-package was available in the debian-repo, so I can use package{}. On Aug 17, 5:49 am, Brian Gallew wrote: > Sorry, when you use Gmail you end up top-posting whether you like it or not. > > On Mon, Aug 16,

[Puppet Users] Re: Management of MySQL grant tables?

2010-07-22 Thread bowlby
Now we're getting somewhere! I replaced /bin/sh for /bin/bash (mv /bin/sh /bin/sh_old; ln -s /bin/ bash /bin/sh). Probably an oddity of Lucid in /bin/sh? 'which mysql' gave me /usr/bin/mysql but then I checked for mysql- client, it wasn't installed so I did. Below is my debug info. As shown in t

[Puppet Users] Re: Management of MySQL grant tables?

2010-07-17 Thread bowlby
eah, that kind of > clobbered some of my puppetmaster configs and I had to rebuild a bit. > > Hope this helps.  FWIW, I am using this module on CentOS and it's > working for me, so just hang in there -- you'll get it! > > On Fri, Jul 16, 2010 at 2:29 PM, bowlby wrote: &g

[Puppet Users] Re: Management of MySQL grant tables?

2010-07-16 Thread bowlby
/socket", "/var/run/ mysqld/mysqld.sock"] debug: Augeas[my.cnf/mysqld](provider=augeas): Skipping becuase no files were changed debug: Augeas[my.cnf/mysqld](provider=augeas): Closed the augeas connection debug: Service[mysql](provider=debian): Executing 'ps -ef' de

[Puppet Users] Re: Management of MySQL grant tables?

2010-07-16 Thread bowlby
dfsdf": ensure => present,} } On Jul 15, 5:15 am, "steve ." wrote: > If you grab the Augeas module from the same source, that should > satisfy the dependency... > > On Wed, Jul 14, 2010 at 7:11 AM, bowlby wrote: > > Hi, > > I tried the mysq-module (fromhttp:

[Puppet Users] Re: Management of MySQL grant tables?

2010-07-14 Thread bowlby
Hi, I tried the mysq-module (from http://github.com/camptocamp/puppet-mysql) and it will install mysql but it won't create db's or users. I had to create /usr/share/augeas/lenses/contrib, because the module seems to expect it. Otherwise I get no error-logs, it just won't create users or databases..

[Puppet Users] Re: custom types not used by puppet

2010-07-01 Thread bowlby
lt { $proj_name = "myapp-test" $domain = "myapp.webhop.org" $path = "/var/www/$domain" $docroot = "$path/src/myapp-test" $aliases = "testserver" $user = $proj_name $passwd = XXX simple-vhost { myapp

[Puppet Users] custom types not used by puppet

2010-06-30 Thread bowlby
Hi, New to puppet so this could be noob-problem. I'm using the module I found here: http://github.com/camptocamp/puppet-mysql to manage my mysql. The module does install mysq-server and creates a root-user, but it does not create the database and user I specify. My guess is that the custom types (f