Skip to content

Instantly share code, notes, and snippets.

@Freeaqingme
Created August 7, 2013 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Freeaqingme/6176109 to your computer and use it in GitHub Desktop.
Save Freeaqingme/6176109 to your computer and use it in GitHub Desktop.
Spec:
@@bind::record { $::fqdn:
zone => 'enrise.com',
type => 'A',
target => $::network_ethPublic
}
Result:
define bind9::record($fqdn='', $target='', $type='A', $order=10) {
concat::fragment{"puppet_bind_${fqdn}":
target => $bind9::puppetzonefile,
order => $order,
content => "${fqdn} IN ${type} ${target}\n"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment