[Puppet Users] environmentpath in manifest

2016-05-09 Thread Daniele Palumbo
Hi, i need to check if a file exists on the puppet master. No big deal: http://stackoverflow.com/questions/18784329/how-to-test-for-existence-of-a-file-on-the-puppet-master So i made: -- cat ./modules/braveconf/lib/puppet/parser/functions/file_exists.rb require"puppet" module Puppet::Parser::F

Re: [Puppet Users] environmentpath in manifest

2016-05-12 Thread Daniele Palumbo
Il giorno 12/mag/2016, alle ore 10:19, Martin Alfke ha scritto: > You might want to access the Puppet settings: > > Puppet.initialize_settings unless Puppet[:confdir] > > and then check for the environmentpath setting. Hi Martin, Thank you very much for your hint. But I am not able to under

Re: [Puppet Users] environmentpath in manifest

2016-05-17 Thread Daniele Palumbo
> Your site manifest can also be set to update the file contents when it runs. > > > > On Monday, May 9, 2016 at 9:45:38 AM UTC-4, Daniele Palumbo wrote: > Hi, > > i need to check if a file exists on the puppet master. > > No big deal: > http://stackoverflow.c

Re: [Puppet Users] environmentpath in manifest

2016-05-17 Thread Daniele Palumbo
Hi Martin, Il giorno 13/mag/2016, alle ore 09:36, Martin Alfke ha scritto: > The Ruby part must be a function - like in the example you provided in your > first email. > You can then use the function inside your manifest. > > Functions are always executed on the Master. After a couple of try,