Re: [Puppet Users] EC2 with puppet bootstrap notes and scripts

2010-11-08 Thread Patrick
On Nov 7, 2010, at 10:45 PM, Nigel Kersten wrote: On Sun, Nov 7, 2010 at 9:52 AM, Christopher McCrory chris...@gmail.com wrote: Hello... # the hostname data is added via something like: # shell ec2-run-instances ... --user-data myservername ami-123abc # by definition, the first line

[Puppet Users] puppet-dashboard

2010-11-08 Thread walexey
Does puppet-dashboard support something like 'default' node? I want to assign base classes to 'default' node, for applying for all nodes. -- 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] Re: updating kernel in centos shows failure

2010-11-08 Thread Steve Hoffman
That only speaks to the initial install. Let's say in 6 months, I update my local mirror to a yet newer version of the kernel. I'm in the same boat. The point of using a tool like Puppet, isn't just to automate your installs, but also upgrades. I'm surprised that this bug is this old, but it

Re: [Puppet Users] EC2 with puppet bootstrap notes and scripts

2010-11-08 Thread Richard Crowley
 When a generic EC2 instance is started it has a hostname of localhost.localdomain (or something like ip-10-111-222-33), a searchdomain of ec2.internal, and only the loopback address in /etc/hosts.  To get a puppet client to bootstrap correctly all three of these things need to be changed.  

Re: [Puppet Users] EC2 with puppet bootstrap notes and scripts

2010-11-08 Thread Mathias Gug
Hi, Excerpts from Christopher McCrory's message of Sun Nov 07 12:52:48 -0500 2010: I wanted to be able to startup an EC2 instance with one command and have a fully functioning server without having to shell into each new instance and configure the bits to allow puppet to finish the

Re: [Puppet Users] Default ownership for static files

2010-11-08 Thread R.I.Pienaar
- Markus Falb markus.f...@fasel.at wrote: Hi, I try to serve a file file { /root/test3.txt: ensure = file, source = puppet:///yum/test.txt, } On the puppetmaster this files look like this #$ ls -n test.txt -rw-r--r-- 1 502 301 4 8 Nov 16:25 test.txt

Re: [Puppet Users] Re: Prevent users from creating new accounts

2010-11-08 Thread Darren Chamberlain
* Bruce Richardson itsbruce at workshy.org [2010/11/05 09:01]: [...] If developers, then there is always a way round - sudo, fakeroot, giving them virtual hosts to play with. I'd like to second the virtual host suggestion -- throwaway VMs (or zones, in solaris) work really well for this kind

[Puppet Users] agent needs to make two runs before master compiles new catalog

2010-11-08 Thread Kent
Hi all, I'm a new puppet user and new to the forum. I just switched my Puppetmaster to running inside Apache (via Passenger). When I make a change to a resource on the master, it sometimes takes a given node TWO runs before the master will realize the resource has changed and recompile a new

[Puppet Users] file_exists function

2010-11-08 Thread Matthew Black
I am still new to the ruby language and I figured I'd share my file_exists function to see if it is the correct approach and to offer it out there for people who may have the same issue. We build our vhosts based off a template and have come across the need to add in items for specific customers

[Puppet Users] Question about refreshonly

2010-11-08 Thread Sean Carolan
I have inherited some puppet configurations; there is an exec resource that looks like this: exec { force-reload-httpd: command = /etc/rc.d/init.d/httpd force-reload, refreshonly = true, } Should this be paired with a subscribe or notify somewhere? -- You received this message because you

[Puppet Users] Re: Question about refreshonly

2010-11-08 Thread Matt
Refreshonly will execute when it is either notified or the subscribe resource changes. If there is none of those definition then that Exec will never execute. On Nov 8, 9:49 am, Sean Carolan scaro...@gmail.com wrote: I have inherited some puppet configurations; there is an exec resource that

[Puppet Users] Re: file_exists function

2010-11-08 Thread Matt
Oops I guess that'll teach me for trying to use a shortcut for posting. On Nov 8, 11:57 am, Matthew Black mjbl...@gmail.com wrote: I am still new to the ruby language and I figured I'd share my file_exists function to see if it is the correct approach and to offer it out there for people who

Re: [Puppet Users] Default ownership for static files

2010-11-08 Thread Markus Falb
On 08.11.10 17:03, R.I.Pienaar wrote: - Markus Falb markus.f...@fasel.at wrote: Hi, I try to serve a file file { /root/test3.txt: ensure = file, source = puppet:///yum/test.txt, } On the puppetmaster this files look like this #$ ls -n test.txt -rw-r--r-- 1

Re: [Puppet Users] EC2 with puppet bootstrap notes and scripts

2010-11-08 Thread Nigel Kersten
On Mon, Nov 8, 2010 at 2:17 AM, Patrick kc7...@gmail.com wrote: On Nov 7, 2010, at 10:45 PM, Nigel Kersten wrote: On Sun, Nov 7, 2010 at 9:52 AM, Christopher McCrory # yes, thrice /usr/sbin/puppetd --no-daemonize --onetime --server puppetmaster.example.com /usr/sbin/puppetd

Re: [Puppet Users] Question about refreshonly

2010-11-08 Thread Nan Liu
On Mon, Nov 8, 2010 at 6:49 AM, Sean Carolan scaro...@gmail.com wrote: I have inherited some puppet configurations; there is an exec resource that looks like this: exec { force-reload-httpd:  command = /etc/rc.d/init.d/httpd force-reload,  refreshonly = true, } Should this be paired with

[Puppet Users] stages and modules

2010-11-08 Thread chris mague
I am trying to implement stages in 2.6.2 (both client and server) site.pp stage { [baseos, pre, post, brsoft]: } class runstages { Stage[baseos] - Stage[pre] - Stage[main] - Stage[post] - Stage[brsoft] } node default { include runstages include debian::base_packages }

Re: [Puppet Users] EC2 with puppet bootstrap notes and scripts

2010-11-08 Thread Patrick
On Nov 8, 2010, at 9:54 AM, Nigel Kersten wrote: On Mon, Nov 8, 2010 at 2:17 AM, Patrick kc7...@gmail.com wrote: On Nov 7, 2010, at 10:45 PM, Nigel Kersten wrote: On Sun, Nov 7, 2010 at 9:52 AM, Christopher McCrory # yes, thrice /usr/sbin/puppetd --no-daemonize --onetime --server

Re: [Puppet Users] Default ownership for static files

2010-11-08 Thread Patrick
On Nov 8, 2010, at 9:36 AM, Markus Falb wrote: On 08.11.10 17:03, R.I.Pienaar wrote: - Markus Falb markus.f...@fasel.at wrote: Hi, I try to serve a file file { /root/test3.txt: ensure = file, source = puppet:///yum/test.txt, } On the puppetmaster this files

Re: [Puppet Users] agent needs to make two runs before master compiles new catalog

2010-11-08 Thread Patrick
On Nov 8, 2010, at 9:10 AM, Kent wrote: Hi all, I'm a new puppet user and new to the forum. I just switched my Puppetmaster to running inside Apache (via Passenger). When I make a change to a resource on the master, it sometimes takes a given node TWO runs before the master will realize

[Puppet Users] file_exists function

2010-11-08 Thread Matt
Going to post this again as I posted by accident in another thread.. I am still new to the ruby language and I figured I'd share my file_exists function to see if it is the correct approach and to offer it out there for people who may have the same issue. We build our vhosts based off a template

Re: [Puppet Users] EC2 with puppet bootstrap notes and scripts

2010-11-08 Thread Nigel Kersten
On Mon, Nov 8, 2010 at 10:51 AM, Patrick kc7...@gmail.com wrote: On Nov 8, 2010, at 9:54 AM, Nigel Kersten wrote: On Mon, Nov 8, 2010 at 2:17 AM, Patrick kc7...@gmail.com wrote: On Nov 7, 2010, at 10:45 PM, Nigel Kersten wrote: On Sun, Nov 7, 2010 at 9:52 AM, Christopher McCrory #

Re: [Puppet Users] stages and modules

2010-11-08 Thread Eric Sorenson
On Nov 8, 2010, at 10:27 AM, chris mague wrote: I am trying to implement stages in 2.6.2 (both client and server) Chris / kekai? Are you back to doing sysadmin work? Good to see you man. I haven't made the leap to 2.6 yet so I can't help with your question but wanted to say hi. (Assuming I

Re: [Puppet Users] stages and modules

2010-11-08 Thread Eric Sorenson
Ack, sorry list. That was obviously meant to be unicast. Reply-To Considered Harmful. http://marc.merlins.org/netrants/reply-to-harmful.html -=Eric -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to

Re: [Puppet Users] EC2 with puppet bootstrap notes and scripts

2010-11-08 Thread Richard Crowley
3) One last chance just in case something didn't work, timed out, or I forgot a require.  (Finishes in seconds for me) Honestly, you should be discovering such missing requires in your testing process. It's not good practice to simply run another one just in case in my opinion. +1.

Re: [Puppet Users] EC2 with puppet bootstrap notes and scripts

2010-11-08 Thread Patrick
On Nov 8, 2010, at 12:12 PM, Richard Crowley wrote: 3) One last chance just in case something didn't work, timed out, or I forgot a require. (Finishes in seconds for me) Honestly, you should be discovering such missing requires in your testing process. It's not good practice to simply run

Re: [Puppet Users] EC2 with puppet bootstrap notes and scripts

2010-11-08 Thread Patrick
On Nov 8, 2010, at 11:10 AM, Nigel Kersten wrote: On Mon, Nov 8, 2010 at 10:51 AM, Patrick kc7...@gmail.com wrote: On Nov 8, 2010, at 9:54 AM, Nigel Kersten wrote: On Mon, Nov 8, 2010 at 2:17 AM, Patrick kc7...@gmail.com wrote: On Nov 7, 2010, at 10:45 PM, Nigel Kersten wrote:

[Puppet Users] How can I reload environment variable file using puppet?

2010-11-08 Thread Tim C
Hi I'm trying to setting http_proxy environment variable by adding it to the /etc/environment file. I was wondering how I can force puppet to reload this file whenever the file changes. I have tried a few things and none of them have worked, 1.) exec { source_environment: command =

Re: [Puppet Users] EC2 with puppet bootstrap notes and scripts

2010-11-08 Thread Richard Crowley
+1.  Catalogs that need to converge or are anything but a no-op on their second run should be considered broken. *) My philosophy is this puppet.conf should be managed by puppet. *) Sometimes a run won't be completed correctly unless puppet.conf is up to date at the start of a run. Which

Re: [Puppet Users] How can I reload environment variable file using puppet?

2010-11-08 Thread Richard Crowley
Hi I'm trying to setting http_proxy environment variable by adding it to the /etc/environment file. I was wondering how I can force puppet to reload this file whenever the file changes. I have tried a few things and none of them have worked, 1.)    exec { source_environment:        

[Puppet Users] Re: How can I reload environment variable file using puppet?

2010-11-08 Thread Tim C
Thanks for you help. Does that mean that there is no way to do it from inside of a puppet module? On Nov 8, 5:11 pm, Richard Crowley r...@rcrowley.org wrote: Hi I'm trying to setting http_proxy environment variable by adding it to the /etc/environment file. I was wondering how I can

Re: [Puppet Users] EC2 with puppet bootstrap notes and scripts

2010-11-08 Thread Patrick
On Nov 8, 2010, at 2:03 PM, Richard Crowley wrote: +1. Catalogs that need to converge or are anything but a no-op on their second run should be considered broken. *) My philosophy is this puppet.conf should be managed by puppet. *) Sometimes a run won't be completed correctly unless

Re: [Puppet Users] EC2 with puppet bootstrap notes and scripts

2010-11-08 Thread Russ Allbery
Nigel Kersten ni...@puppetlabs.com writes: Honestly, you should be discovering such missing requires in your testing process. It's not good practice to simply run another one just in case in my opinion. That's easy to say in theory, but extremely difficult to test in practice, since order is

Re: [Puppet Users] extraneous messages/multiple fact loads

2010-11-08 Thread Nan Liu
On Mon, Nov 8, 2010 at 3:14 PM, Derek Yarnell de...@umiacs.umd.edu wrote: For a long time now when we run puppetd --test I get the following double output on our custom facts, Anyone seen this behavior? Yes there's a bug filed with this issue: http://projects.puppetlabs.com/issues/3741

Re: [Puppet Users] EC2 with puppet bootstrap notes and scripts

2010-11-08 Thread Richard Crowley
Why would you use Capistrano to manage puppet.conf on your masters?  Does it give you some advantage over just using puppet to manage itself? We have about half a dozen different web applications that we deploy, all via git-archive(1) and Capistrano. The Puppet master is one of those and is

[Puppet Users] question about custom facts and environmental variables

2010-11-08 Thread Edward Bailey
I am having a great deal of trouble using a custom fact in a module and I am hoping someone can help me out. I am using facter-1.5.0-2.el4 and puppet-0.24.5-1.el4. I know these are really old versions. The custom fact is defined using an environmental variable export FACTER_VERTICAL=dev fit

[Puppet Users] Re: client won't use remote file bucket

2010-11-08 Thread Roman
Hi James. Could you tell if you found a resolution to this problem? I seem to experience it as well. Thanks in advance, Regards, Roman On Oct 20, 2:31 am, luke.bigum luke.bi...@fasthosts.co.uk wrote: Hi all, I'm having a stupid moment getting a remote file bucket working. My client only