summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-05-15 16:34:41 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-05-15 16:34:41 -0300
commit34231dc1ffbb79db55a82060cf62b9d12748230f (patch)
treeb62d25967758abaa846f21a70cbd13c7d6f242dd /manifests
parentb7b76378f0db8ba5e8d0a41cc4f5bd08935456c2 (diff)
downloadpuppet-nginx-34231dc1ffbb79db55a82060cf62b9d12748230f.tar.gz
puppet-nginx-34231dc1ffbb79db55a82060cf62b9d12748230f.tar.bz2
Using ssl module
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp24
1 files changed, 1 insertions, 23 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index e462cb5..2bf9ade 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -95,29 +95,7 @@ class nginx::base {
class nginx inherits nginx::base {
case $ssl {
true: {
- file { [ "/etc/ssl", "/etc/ssl/certs", "/etc/ssl/private" ]:
- ensure => directory,
- owner => "root",
- group => "root",
- }
-
- file { "/etc/ssl/certs/cert.crt":
- ensure => present,
- owner => "root",
- group => "root",
- mode => 644,
- source => "puppet://$server/files/keys/ssl/cert.crt",
- require => File["/etc/ssl/certs"],
- }
-
- file { "/etc/ssl/private/cert.pem":
- ensure => present,
- owner => "root",
- group => "root",
- mode => 600,
- source => "puppet://$server/files/keys/ssl/cert.pem",
- require => File["/etc/ssl/private"],
- }
+ include ssl
Service["nginx"] {
require => [ Package["nginx"],