theRoUS

Hashes as parameters to declarations

Jun 29th, 2017
304
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $args         = {
  2.   'ensure'    => 'file',
  3.   'owner'     => 'root',
  4.   'require'   => [
  5.     'File[/tmp/foo]',
  6.   ],
  7. }
  8.  
  9. file { '/tmp/bar':
  10.   $args
  11. }
RAW Paste Data