Skip to content

Instantly share code, notes, and snippets.

@awaxa
Created December 15, 2015 03:47
Show Gist options
  • Save awaxa/d40e17d5262bf4446e1e to your computer and use it in GitHub Desktop.
Save awaxa/d40e17d5262bf4446e1e to your computer and use it in GitHub Desktop.
class apache {
package { 'httpd':
ensure => present,
}
file { '/etc/httpd/conf/httpd.conf':
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
source => 'puppet:///modules/apache/httpd.conf',
}
service { 'httpd':
ensure => running,
}
}
class ntp {
package { 'ntp':
ensure => present,
}
file { '/etc/ntp.conf':
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
source => 'puppet:///modules/ntp/ntp.conf',
}
service { 'ntpd':
ensure => running,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment