rtucker-mozilla / puppet-recursive_directory Goto Github PK
View Code? Open in Web Editor NEWPuppet module to allow for files to be created recursively from a folder of templatees
License: Mozilla Public License 2.0
Puppet module to allow for files to be created recursively from a folder of templatees
License: Mozilla Public License 2.0
Remove default umask of 0600 and revert to using system umask
can you add a purge in your parameter this will be helpful if user want to delete any unwanted file in the destination directory.
Add functionality for setting permissions on directory explicitely
Remove default user of 'nobody'
Basically do the same as in Issue #1 but for file_owner
We need the ability to recursively create directories that have the top level template dir as a parent.
templates/child_dir/index.conf.erb should end up being created as
/dest_dir/child_dir/index.conf.erb
Remove default group of 'nobody'
Basically do the same as in Issue #1 but for file_group
So given:
recursive_directory { "custom nrpe files":
source_dir => "nagios/custom_nrpe",
dest_dir => "/opt/nagios-monitored/custom_nrpe",
owner => "nagios",
group => "nagios",
file_mode => '0755',
}
I was getting:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find template 'nagios/cytobank_monitoring.erb' at /home/rlpowell/src/puppet3/modules/recursive_directory/manifests/init.pp:57 on
node shell01.c44031.blueboxgrid.com
because it was looking for nagios/templates/foo.erb instead of nagios/templates/custom_nrpe/foo.erb
This may not be the best fix, but I fixed it by changing:
file = "#{template_path}/#{f}"
to
file = "#{file_path}/#{f}"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.