82acbd34be
Change-Id: I6552805a1b076625b435fbec0cfa697bbadb92db
16 lines
361 B
Puppet
16 lines
361 B
Puppet
define doc_server::site {
|
|
|
|
file { "/etc/nginx/sites-available/${name}":
|
|
ensure => 'present',
|
|
content => template("doc_server/nginx.erb"),
|
|
replace => 'true',
|
|
require => Package[nginx],
|
|
}
|
|
|
|
file { "/etc/nginx/sites-enabled/${name}":
|
|
ensure => link,
|
|
target => "/etc/nginx/sites-available/${name}",
|
|
require => Package[nginx],
|
|
}
|
|
}
|