Index: modules/nginx/manifests/init.pp |
=================================================================== |
--- a/modules/nginx/manifests/init.pp |
+++ b/modules/nginx/manifests/init.pp |
@@ -4,8 +4,18 @@ |
$ssl_session_cache = $nginx::params::ssl_session_cache |
) inherits nginx::params { |
+ include apt |
+ |
+ apt::source {'nginx': |
+ location => "http://nginx.org/packages/ubuntu", |
+ repos => "nginx", |
+ key => "A524C53E", |
+ key_source => "http://sysoev.ru/pgp.txt" |
+ } |
+ |
package {'nginx': |
- ensure => present |
+ ensure => '1.4.1-1~precise', |
Wladimir Palant
2013/05/18 09:52:32
Will that also allow for newer versions?
Felix Dahlke
2013/05/21 05:40:58
No, this will install exactly this version. I've t
|
+ require => Apt::Source['nginx'] |
} |
File { |
@@ -20,6 +30,16 @@ |
notify => Service['nginx'] |
} |
+ file {'/etc/nginx/sites-available': |
+ ensure => directory, |
+ require => Package['nginx'] |
+ } |
+ |
+ file {'/etc/nginx/sites-enabled': |
+ ensure => directory, |
+ require => Package['nginx'] |
+ } |
+ |
file {'/etc/nginx/sites-available/default': |
ensure => absent, |
require => Package['nginx'] |