Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mydir = [ '/opt/dir1', '/opt/dir2' ]
- file { $mydir:
- ensure => 'directory',
- owner => 'vagrant',
- group => 'vagrant',
- recurse => 'true',
- mode => '744',
- onlyif => 'test -d $mydir',
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement