Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Mass deployment of files.

$
0
0
Im trying to automatically apply a set of files in one large lump based on a directory structure we have used in the past and some scripts outside puppet. e.g. ROOT-DIR/etc/motd:RHEL-7 ROOT-DIR/etc/motd:RHEL ROOT-DIR/etc/motd:SLES So for example for a given SLES server it would get the copy called /etc/motd:SLES -> /etc/motd for RHEL OS = 7.x the one tagged with RHEL-7 and for any rel would get RHEL.. any other OS would get nothing. I tried to make a module but. what im missing is a DIRECTORY check and skipping where there is nothing to deploy. I wanted to do this in puppet. i.e. get a variable of the source of what would have been deploy $filetodeploy = some_file_source_function ( "puppet:///modules/rootdir/${name}:${::fqdn}", "puppet:///modules/rootdir/${name}:${::operatingsystem}-${::operatingsystemmajrelease}", "puppet:///modules/rootdir/${name}:${::operatingsystem}-${::operatingsystemrelease}", "puppet:///modules/rootdir/${name}:${::operatingsystem}", "puppet:///modules/rootdir/${name}" ) or something similar

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>