Skip to content

Instantly share code, notes, and snippets.

@ernetas
Created April 2, 2014 18:38
Show Gist options
  • Save ernetas/9940339 to your computer and use it in GitHub Desktop.
Save ernetas/9940339 to your computer and use it in GitHub Desktop.
class cacti {
# notify { "sdfsafsdaf" }
# package { 'cacti':
# ensure => "installed"
# }
file { '/etc/network/if-up.d/iptables':
ensure => "present",
mode => 755,
owner => "root",
group => "root",
source => "puppet:///modules/cacti/iptables"
}
service { "apache2":
ensure => "running",
require => Package["cacti"]
}
file { "/etc/apache2/sites-available/000-default":
ensure => "present",
mode => 644,
owner => "root",
group => "root",
source => "puppet:///modules/cacti/000-default",
notify => Service["apache2"]
}
file { '/etc/apache2/sites-enabled/default':
ensure => "link",
target => "/etc/apache2/sites-available/000-default",
notify => Service["apache2"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment