18 lines
No EOL
363 B
Puppet
18 lines
No EOL
363 B
Puppet
define nginx::resource::upstream (
|
|
$ensure = 'present',
|
|
$members
|
|
){
|
|
File {
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => '0644',
|
|
}
|
|
file { "/etc/nginx/conf.d/${name}-upstream.conf":
|
|
ensure => $ensure ? {
|
|
'absent' => absent,
|
|
default => 'file',
|
|
},
|
|
content => template('nginx/conf.d/upstream.erb'),
|
|
notify => Class['nginx::service'],
|
|
}
|
|
} |