2011-06-02 21:49:39 +02:00
|
|
|
class nginx::config inherits nginx::params {
|
|
|
|
|
|
|
|
File {
|
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
|
|
|
mode => '0644',
|
2011-05-25 04:20:48 +02:00
|
|
|
}
|
2011-06-02 21:49:39 +02:00
|
|
|
|
|
|
|
file { '/etc/nginx/sites-enabled':
|
|
|
|
ensure => directory,
|
2011-05-25 04:20:48 +02:00
|
|
|
}
|
2011-06-02 21:49:39 +02:00
|
|
|
|
|
|
|
file { '/etc/nginx/sites-enabled/default':
|
|
|
|
ensure => absent,
|
2011-05-25 04:20:48 +02:00
|
|
|
}
|
2011-06-02 21:49:39 +02:00
|
|
|
|
2011-05-25 04:20:48 +02:00
|
|
|
file { '/etc/nginx/nginx.conf':
|
|
|
|
ensure => file,
|
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
|
|
|
content => template('nginx/nginx.conf.erb'),
|
|
|
|
}
|
|
|
|
}
|