Skip to content

Instantly share code, notes, and snippets.

@b4ldr
Created May 20, 2020 08:52
Show Gist options
  • Save b4ldr/32de7a5d47dc4cfc75f0302cce400708 to your computer and use it in GitHub Desktop.
Save b4ldr/32de7a5d47dc4cfc75f0302cce400708 to your computer and use it in GitHub Desktop.
class resolv {
case $hostname {
/^[Abc]/: {
resolv::resolv_config { 'Default':
domain => "mydomain.local",
}
}
}
}
define resolv::resolv_config($domain){
file { '/tmp/resolv.conf':
content => $domain
}
}
include resolv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment