Skip to content

Instantly share code, notes, and snippets.

@ggeldenhuis
Created January 25, 2016 08:06
Show Gist options
  • Save ggeldenhuis/7a8bd92205611ccf5433 to your computer and use it in GitHub Desktop.
Save ggeldenhuis/7a8bd92205611ccf5433 to your computer and use it in GitHub Desktop.
$templatedistro = { architecture => ['i386', 'amd64'] }
$distros = {
'ubuntu_trusty' => $templatedistro + {
'trusty' => {
location => 'http://archive.ubuntu.com/ubuntu',
release => 'trusty',
repos => ['restricted', 'multiverse']
},
'trusty-updates' => $templatedistro + {
location => 'http://archive.ubuntu.com/ubuntu',
release => 'trusty-updates',
repos => ['restricted', 'multiverse']
}
}
}
#notify { 'test': message => $distros['ubuntu_trusty'],}
$distros['ubuntu_trusty'].each |String $keyvar, Hash $valuevar| {
notice($keyvar)
notice($valuevar['architecture'])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment