Skip to content

Instantly share code, notes, and snippets.

@robinbowes
Created January 3, 2016 00:59
Show Gist options
  • Save robinbowes/2f90fa28a5a15bd44d4b to your computer and use it in GitHub Desktop.
Save robinbowes/2f90fa28a5a15bd44d4b to your computer and use it in GitHub Desktop.
class millnert::quagga::service {
if $millnert::quagga::restart_on_change {
File['daemons']~>Service['quagga']
File['debian.conf']~>Service['quagga']
File['zebra.conf']~>Service['quagga']
if $millnert::quagga::bgpd {
File['bgpd.conf']~>Service['quagga']
}
if $millnert::quagga::ospfd {
File['ospfd.conf']~>Service['quagga']
}
}
service { 'quagga':
ensure => 'running',
name => 'quagga',
enable => true,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment