Skip to content

Instantly share code, notes, and snippets.

@jacobwyke
Created June 26, 2018 23:41
Show Gist options
  • Save jacobwyke/0fb08d25cf544b85572154e960073aaf to your computer and use it in GitHub Desktop.
Save jacobwyke/0fb08d25cf544b85572154e960073aaf to your computer and use it in GitHub Desktop.
question 10
class custom_nginx {
package { 'nginx':
ensure => latest,
}
file { '/etc/nginx/nginx.conf':
source => 'puppet:///modules/custom_nginx/etc/nginx/nginx.conf',
group => 'root',
owner => 'root',
mode => '644',
require => [
Package['nginx'],
],
notify => Service['nginx'],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment