Skip to content

Instantly share code, notes, and snippets.

@JustinAzoff
Created August 20, 2009 19:11
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 JustinAzoff/171277 to your computer and use it in GitHub Desktop.
Save JustinAzoff/171277 to your computer and use it in GitHub Desktop.
class approx::server {
package {'approx':
ensure => latest;
}
config_file { "/etc/approx/approx.conf":
source => "puppet://$servername/approx/approx.conf",
require => Package['approx'],
}
service { approx:
ensure => running,
pattern => approx,
require => Package['approx'],
subscribe => File["/etc/approx/approx.conf"];
}
config_file {"/etc/firewall.d/approx.rules":
source => "puppet://$servername/approx/approx.rules",
notify => Exec["reload-firewall"];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment