Created
May 20, 2020 08:52
-
-
Save b4ldr/32de7a5d47dc4cfc75f0302cce400708 to your computer and use it in GitHub Desktop.
This file contains 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 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