Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class resolvconf {
- resolvconf_config { puppet:
- dns1 => "8.8.8.8",
- dns2 => "8.4.4.4",
- fqdomain => "rc.test.org.au",
- searchdomains => "rc.test.org.au country.test.org.au",
- }
- }
- define resolvconf_config($dns1,$dns2,$fqdomain,$searchdomains) {
- package { 'resolvconf':
- ensure => present,
- }
- file { '/etc/resolvconf/resolv.conf.d/base':
- content => template("resolvconf/resolv.conf.base.erb"),
- require => Package['resolvconf'],
- notify => Service['resolvconf'],
- }
- service { 'resolvconf':
- enable => true,
- require => Package['resolvconf'],
- hasstatus => true,
- hasrestart => true,
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement