Skip to content

Instantly share code, notes, and snippets.

@ghoneycutt
Last active December 23, 2015 11:18
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 ghoneycutt/6627040 to your computer and use it in GitHub Desktop.
Save ghoneycutt/6627040 to your computer and use it in GitHub Desktop.
[Puppet Users] Array being flattened
---
amanda::disklist:
'/var':
configs: demo
dumptype: dumptype
class amanda (
$disklists = undef,
) {
include amanda::params
include amanda::virtual
realize(
File['/etc/dumpdates'],
File["${amanda::params::homedir}/.ssh"],
File["${amanda::params::homedir}/.ssh/config"],
File["${amanda::params::homedir}/.ssh/authorized_keys"],
File[$amanda::params::amanda_directories],
File[$amanda::params::amanda_files],
File[$amanda::params::homedir],
User[$amanda::params::user],
)
if $disklists != undef {
$disklists_type = type($disklists)
if $disklists_type == 'hash' {
create_resources('amanda::disklist',$disklists)
} else {
fail("disklists type is <${disklists_type}> and must be a hash")
}
}
}
---
amanda::disklist:
'/etc':
configs: test
dumptype: gtar
'/var':
configs: test
dumptype: dumptype
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment