Re: [Puppet Users] Passing node hostname to the Puppet managed node

2011-01-09 Thread André Luís Lopes
Hello, 2011/1/9 Daniel Pittman : > > Hey, thanks for joining us.  We love to have new folks come in and > start using puppet. :) That's nice to hear. Thank you :-) > Ben gave the syntax needed to use this in a template, but you should > be able to use either of the 'hostname' or 'fqdn' facts

Re: [Puppet Users] Passing node hostname to the Puppet managed node

2011-01-08 Thread Daniel Pittman
On Sat, Jan 8, 2011 at 14:12, Andr? Lu?s Lopes wrote: > First of all, this is my very first message to this list, so please bear > with me while I'm getting used to it. > Sorry for any non-standard way to ask a question here which I can be using > without prior knowledgment. Hey, thanks for join

Re: [Puppet Users] Passing node hostname to the Puppet managed node

2011-01-08 Thread Ben Beuchler
I believe you're looking for templates. http://docs.puppetlabs.com/guides/templating.html As an example: file { "/etc/hosts": content => template("hosts.erb") } And the template would contain this: 127.0.0.1 localhost 192.168.99.99 <%= hostname %> <%= fqdn %> -Ben -- You received this

[Puppet Users] Passing node hostname to the Puppet managed node

2011-01-08 Thread Andr? Lu?s Lopes
Hi, First of all, this is my very first message to this list, so please bear with me while I'm getting used to it. Sorry for any non-standard way to ask a question here which I can be using without prior knowledgment. I would like to be able to set up some config parameters on a given node whi