Git Product home page Git Product logo

puppet-recursive_directory's People

Contributors

daanforever avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

puppet-recursive_directory's Issues

Make directories work recurively with templates

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

Path problems

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}"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.