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

Looking for current best practice when ordering the configuration and running of a simple service

$
0
0
I have a base profile with the following autofs configuration: # step 1) remove default map files tidy { '/etc': matches => ['auto.*'], recurse => 1, } # step 2) set up map files $mounts = ['home', 'import', 're', 'workspace', 'ws'] $mounts.each |Integer $index, String $mount| { autofs::mount { "${mount}": mount => "${mount}", order => $index } } # step 3) run autofs class { 'autofs' : service_ensure => 'running' } I know they aren't supposed to run in any particular order, but I've looked into using the arrow (->) notation stuff as well as "containment" and I can't seem to figure out the "best" way to have these things run in order. Do I need to put each of these "steps" in a class ?

Viewing all articles
Browse latest Browse all 6104

Latest Images

Trending Articles



Latest Images

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