Re: [Puppet Users] Noob question about the ${name} variable

2013-09-25 Thread Brian Lalor
the literal braces in the expanded value. Not a real answer, but it does look unintentional. -- Brian Lalor bla...@bravo5.org http://github.com/blalor -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving

[Puppet Users] Resource ordering problem

2013-09-09 Thread Brian Lalor
of failed dependencies I've taken this down to the lowest-level resource and it's still failing. What am I doing wrong? Thanks, Brian -- Brian Lalor bla...@bravo5.org http://github.com/blalor -- You received this message because you are subscribed to the Google Groups Puppet Users group

Re: [Puppet Users] Resource ordering problem

2013-09-09 Thread Brian Lalor
On Sep 9, 2013, at 10:02 AM, Brian Lalor bla...@bravo5.org wrote: I'm struggling once again with resource ordering with Puppet. *sigh* Looks like the if defined(Class['rabbitmq::service']) { … } guard I've got around these relationships is wrong. It's gonna be that kind of week

[Puppet Users] Use of defined()

2013-09-09 Thread Brian Lalor
someone explain? Thanks, Brian -- Brian Lalor bla...@bravo5.org http://github.com/blalor -- 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

Re: [Puppet Users] What is the alternative to Ruby DSL as use of the Ruby DSL is deprecated ?

2013-08-25 Thread Brian Lalor
There's a host type built into puppet. -- Brian Lalor bla...@bravo5.org On Aug 25, 2013, at 9:39 AM, Stefan Schmid sc...@web.de wrote: Hi I am new to puppet and need to manage host entries in file /etc/hosts as follows on node mail.example.com and db.example.com. I do not want to manage

Re: [Puppet Users] Re: Installing Puppet 3 client on a Raspberry Pi

2013-08-15 Thread Brian Lalor
What about installing via a gem? -- Brian Lalor bla...@bravo5.org On Aug 15, 2013, at 5:51 PM, Ellison Marks gty...@gmail.com wrote: There's nothing prebuilt in the official repo for the arm processor in the raspi, I'd guess. You're probably going to have to build from source, unless

Re: [Puppet Users] Executing a script after creating vhosts with create_resources

2013-06-12 Thread Brian Lalor
to make that happen, which should play well with create_resources. You could also play with a single notify used by all of the resources that have been created… -- Brian Lalor bla...@bravo5.org http://github.com/blalor -- You received this message because you are subscribed to the Google Groups

Re: [Puppet Users] Manage config files with Puppet and version control software

2013-05-24 Thread Brian Lalor
it, put it in place on server and restart service. Is there any general guide what is the best practice how to achieve this ? I'm not sure that's really a best practice, but it does come in handy from time to time. There's a module for that: vcsrepo. -- Brian Lalor bla...@bravo5.org -- You

Re: [Puppet Users] Manage config files with Puppet and version control software

2013-05-24 Thread Brian Lalor
the repository, then use a file resource to ensure that a target file is kept in sync with the one checked out from the remote repo. Make the file resource require the vcsrepo resource. Then you can notify MySQL to restart when its config file changes. -- Brian Lalor bla...@bravo5.org -- You

Re: [Puppet Users] puppet in an appliance model?

2013-05-20 Thread Brian Lalor
to the master. I've been playing with pushing reports to Logstash… -- Brian Lalor bla...@bravo5.org -- 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

Re: [Puppet Users] Hiera lookups in templates

2013-05-10 Thread Brian Lalor
On May 10, 2013, at 7:18 AM, Jonathan Gazeley jonathan.gaze...@bristol.ac.uk wrote: ipaddr = %= scope.function_hiera([jrs_config_server1]) % You're passing in an array; is that intentional? -- Brian Lalor bla...@bravo5.org -- You received this message because you are subscribed

Re: [Puppet Users] Puppet install decency issues

2013-05-07 Thread Brian Lalor
I'd love to be proven wrong, but in my experience neither rvm nor rbenv are packaging-friendly. You'll end up compiling code and downloading dependencies from your prod machines. That's a really Bad Idea. -- Brian Lalor bla...@bravo5.org On May 7, 2013, at 3:55 PM, David Schmitt da...@dasz.at

Re: [Puppet Users] New to hiera

2013-05-04 Thread Brian Lalor
) { … } and Hiera will look up the key bar::foo from the configured data sources. -- Brian Lalor bla...@bravo5.org -- 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

[Puppet Users] Custom hiera back-ends

2013-04-25 Thread Brian Lalor
So there's this: http://docs.puppetlabs.com/hiera/1/custom_backends.html Is there a more thorough tutorial? That one's a little … light. :-) -- Brian Lalor bla...@bravo5.org -- You received this message because you are subscribed to the Google Groups Puppet Users group

Re: [Puppet Users] Hiera Automatic Parameter Lookup Question

2013-04-19 Thread Brian Lalor
', 'bap'), ) { } So $bar will be set to bap only if foo::bar and baz are not found in Hiera, in that order? -- Brian Lalor bla...@bravo5.org -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving

Re: [Puppet Users] Hiera Automatic Parameter Lookup Question

2013-04-18 Thread Brian Lalor
will prefix the name of the class to the param name with double colons and use that as the lookup key in hiera. -- Brian Lalor bla...@bravo5.org On Apr 18, 2013, at 4:15 PM, Alaric paxindust...@gmail.com wrote: This may be a dumb question, but here goes So I'm running on Puppet 3.1.1 on RHEL5

Re: [Puppet Users] Announce: Hiera 1.2.0 Available

2013-04-03 Thread Brian Lalor
On Apr 3, 2013, at 8:39 PM, Matthaus Owens matth...@puppetlabs.com wrote: Hiera 1.2.0 is a feature release in the 1.x series with new features and bug fixes. Can Hiera be upgraded independently of the version of Puppet being used? -- Brian Lalor bla...@bravo5.org -- You received

Re: [Puppet Users] Staging content from modules for temporary use by resources

2013-03-30 Thread Brian Lalor
install. I've got a pattern for this with Puppet that I'll share if anyone's interested. -- Brian Lalor bla...@bravo5.org -- 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

Re: [Puppet Users] execution order not being honored with -

2013-03-28 Thread Brian Lalor
the principle of least surprise. I'll give the anchors a try today, hopefully. -- Brian Lalor bla...@bravo5.org -- 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

[Puppet Users] execution order not being honored with -

2013-03-27 Thread Brian Lalor
, but that's giving me the same result. Thanks, Brian -- Brian Lalor bla...@bravo5.org -- 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

Re: [Puppet Users] apt-get update before installing a package. The right way?

2013-03-22 Thread Brian Lalor
have new packages, but it doesn't seem to work that way for me… -- Brian Lalor bla...@bravo5.org -- 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

Re: [Puppet Users] puppet always has an exitcode of 0

2013-03-20 Thread Brian Lalor
-exitcodes Try '/usr/sbin/puppetd --help' Am I missing something here, is there any other way for me to tell if puppet failed? Isn't puppetd deprecated in favor of puppet agent? I use --detailed-exitcodes with puppet apply and Puppet 3 and it works like it says on the box. -- Brian Lalor

[Puppet Users] Managing CentOS package versions with Puppet

2013-03-10 Thread Brian Lalor
to 20.1. How do I manage this problem? Do I need to maintain my own mirrors? That seems like a horrible solution. Is there another CentOS repository I should be using? Am I just going about this all wrong? Thanks, Brian -- Brian Lalor bla...@bravo5.org -- You received this message

Re: [Puppet Users] Re: Managing CentOS package versions with Puppet

2013-03-10 Thread Brian Lalor
Thank you, Jakov. This link[1] explains the process. I should be able to use vault to augment the current release, allowing me access to the older packages. [1]: http://web.archive.org/web/20070821231316/http://lists.centos.org/pipermail/centos/2005-June/007570.html -- Brian Lalor bla

Re: [Puppet Users] Trying to install a specific version of Java on Redhat

2013-02-15 Thread Brian Lalor
On Feb 15, 2013, at 1:45 PM, jcbollinger john.bollin...@stjude.org wrote: Curiouser and curiouser. The 1: is an epoch number, as you probably recognize. I was a bit surprised that Puppet would require you to include it, but very surprised to find out that it fails even if you do. I do

Re: [Puppet Users] Why IF-ELSE not work?

2013-02-14 Thread Brian Lalor
Import is like a #include in C: it's essentially a preprocessor directive and is evaluated before the if/ else. http://docs.puppetlabs.com/puppet/2.7/reference/lang_import.html -- Brian Lalor bla...@bravo5.org On Feb 14, 2013, at 1:17 AM, Евгений Верещагин e.verescha...@gmail.com wrote: I

Re: [Puppet Users] Re: Checking GIT updates

2013-02-14 Thread Brian Lalor
On Feb 14, 2013, at 7:04 PM, joe lava...@gmail.com wrote: Puppet isn't particularly good at code deployment. Ideally, you'd package your code, set a package resource to ensure = latest, then update your package repo with the new code. Then, all the resources that subscribe to that package

Re: [Puppet Users] semi-standalone puppet mode

2013-02-14 Thread Brian Lalor
On Feb 14, 2013, at 7:01 PM, Jakov Sosic jso...@srce.hr wrote: On 02/13/2013 05:12 PM, Matthew Black wrote: Without fully understanding your modules and how they interact you can always take a copy of the site manifest and modules with the node and then do something like this puppet apply

Re: [Puppet Users] Re: Coordinated application deployments

2013-02-13 Thread Brian Lalor
balancer during the puppet run. If the upgrade is deemed a failure, the old version must be reinstated on those 5 machines. This is all possible with puppet, and it feels like the master/agent relationship is an impediment. -- Brian Lalor bla...@bravo5.org On Feb 13, 2013, at 4:09 PM

Re: [Puppet Users] roles, profiles, and hiera

2013-02-13 Thread Brian Lalor
Will this help? http://docs.puppetlabs.com/puppet/3/reference/lang_variables.html#parser-set-variables -- Brian Lalor bla...@bravo5.org On Feb 13, 2013, at 6:17 PM, Chad Huneycutt chad.huneyc...@gmail.com wrote: I have been following the various blog posts about the roles and profiles

Re: [Puppet Users] Run Puppet Against Master with Local node.pp Manifest?

2013-02-12 Thread Brian Lalor
On Feb 12, 2013, at 5:35 AM, Ralph Bolton ra...@coofercat.com wrote: Thanks for the suggestion. I did wonder about copying all the modules and configs off the Puppet Master onto the test box. My concern is really just about keeping that lot up to date, and most importantly to make sure that

[Puppet Users] Coordinated application deployments

2013-02-12 Thread Brian Lalor
I'd like to use Puppet for the last-mile deployment of our applications, starting from a bare VM and ending up with a server that is running a specific version of an application. We're using a Puppet master already, which I kind of feel is something of a problem: if I were just running puppet

Re: [Puppet Users] Coordinated application deployments

2013-02-12 Thread Brian Lalor
On Feb 12, 2013, at 10:16 PM, Peter Brown rendhal...@gmail.com wrote: You could just disable the puppet daemon on the node after setting it up and manually running puppet with --noop so you know what has changed before you apply it. Ok, so that would keep it from checking in periodically

Re: [Puppet Users] Last Step In Initial Puppet Run

2013-02-06 Thread Brian Lalor
On Feb 6, 2013, at 10:36 PM, Brian Carpio bcar...@thetek.net wrote: I need a way to put down a file, /tmp/finished, for instance as the last step in an initial puppet run. I've tried playing with the relationship syntax: * | | - File[/tmp/finished] But that doesn't work For now I

Re: [Puppet Users] creating file locations from hiera

2013-02-01 Thread Brian Lalor
On Jan 25, 2013, at 9:25 AM, Peter De Cleyn pe...@decleyn.net wrote: I ran again against a long standing bug / feature request but from a new angle: creating directories with parents (http://projects.puppetlabs.com/issues/86). I was blown away when I saw that issue. It's been open for 7

[Puppet Users] Reusable Puppet config for Vagrant

2013-01-29 Thread Brian Lalor
I took an hour this morning to document how I use Vagrant and Puppet together to provision development VMs as well as more production-like systems. This may be entirely elementary to folks who are more fluent with Puppet, but this is an example I thought was lacking.

[Puppet Users] Parameterizing modulepath beyond $environment

2013-01-24 Thread Brian Lalor
I'm looking for a way to parameterize the module path at runtime based on multiple variables, including the environment. We've got a puppet master that serves nodes from several different projects, each of which have their own dev/test/prod environments. I'd like for each project to have

Re: [Puppet Users] Thoughts on roles/profiles class paradigm

2013-01-10 Thread Brian Lalor
On Jan 9, 2013, at 4:34 PM, Wolf Noble wno...@datapipe.com wrote: My colleagues and I are contemplating refactoring our modules to take advantage of the roles/profiles paradigm suggested by Craig Dunn in his blog post found here: http://www.craigdunn.org/2012/05/239/ Before we jump

[Puppet Users] Sometimes getting 'undef' in template

2013-01-06 Thread Brian Lalor
Morning, all. I've got a problem with a custom class and template that has me stumped. I've created the following class: class graphite::carbon( $cache_port = 2003, $cache_enable_udp = false, $cache_udp_port = $cache_port, ) { package {'carbon': }

Re: [Puppet Users] Sometimes getting 'undef' in template

2013-01-06 Thread Brian Lalor
On Jan 6, 2013, at 12:32 PM, Stefan Schulte stefan.schu...@taunusstein.net wrote: No you are doing nothing wrong except that variable interpolation is random so you get random results if the default value of parameterA depends on the value of parameterB. This has been accepted as a bug so

Re: [Puppet Users] Re: puppet master keeps spawning new child processes

2013-01-03 Thread Brian Lalor
On Jan 3, 2013, at 5:39 AM, a...@gmx.de wrote: Any other idea about how to find out what process 11957 actually is doing? There's another flag to strace, -f, if I recall correctly, that will follow forks of children. -- You received this message because you are subscribed to the Google

Re: [Puppet Users] puppetlabs/apt and apt::ppa

2012-12-25 Thread Brian Lalor
Is that directory managed as a resource with puppet? Puppet doesn't recognize non-managed resources as dependencies. -- Brian Lalor bla...@bravo5.org On Dec 25, 2012, at 9:22 PM, Andrey Ageyev a.age...@gmail.com wrote: The folder - /etc/apt/sources.list.d exists. Does anybody know what's