Skip to content

Instantly share code, notes, and snippets.

@1stvamp
Last active June 7, 2017 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1stvamp/07fb9d2b056a7a2c3672f3e23a2ba07c to your computer and use it in GitHub Desktop.
Save 1stvamp/07fb9d2b056a7a2c3672f3e23a2ba07c to your computer and use it in GitHub Desktop.
define file_array() {
file { $name:
path => "$name",
ensure => file,
mode => '0644',
owner => 'root',
group => 'nagios',
}
}
$kernel_files = Dir.glob('/path/to/files/vmlinuz*')
file_array{$kernel_files: }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment