Something like this would typically go in your manifest files, not the puppet.conf file. I think you will find the Puppet language guide instructive, specifically the page on variables: http://docs.puppetlabs.com/puppet/2.7/reference/lang_variables.html
You should think of Puppet as more of a development language than a tool that you simply configure using a .conf file. The site.pp is simply the entry point into the structure you build with the manifests, and you can do quite a lot with the language. ❧ Brian Mathis On Mon, Jan 21, 2013 at 11:58 AM, GRANIER Bernard (MORPHO) <bernard.gran...@morpho.com> wrote: > Hi, > > Is there a way to define a variable in puppet.conf file ? > > Something like : > My_var = my_value in puppet.conf > > Then to be able to use it in manifest with something like : > file {custo.txt': > path=> $my_value, > ensure=> present, > mode=> 0640, > content=> "this content", > } > > Sincerly, > > Bernard Granier > > # > " This e-mail and any attached documents may contain confidential or > proprietary information. If you are not the intended recipient, you are > notified that any dissemination, copying of this e-mail and any attachments > thereto or use of their contents by any means whatsoever is strictly > prohibited. If you have received this e-mail in error, please advise the > sender immediately and delete this e-mail and all attached documents from > your computer system." > # > > -- > 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...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.