system-config/modules/doc_server/manifests/site.pp
Monty Taylor 82acbd34be Added nginx config for doc server.
Change-Id: I6552805a1b076625b435fbec0cfa697bbadb92db
2011-07-31 10:17:30 -07:00

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],
}
}