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 ?
↧