Last active
December 23, 2015 11:18
-
-
Save ghoneycutt/6627040 to your computer and use it in GitHub Desktop.
[Puppet Users] Array being flattened
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
amanda::disklist: | |
'/var': | |
configs: demo | |
dumptype: dumptype |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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