summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-05-23 11:35:07 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-05-23 11:35:07 -0300
commite448c4e15d8bc0e3212699d2d5ede7e55d27858b (patch)
treea20a7afbf3972a0a4ac0c01775c35a9d9f8bccd2
parenta9436d2739650b4b03e45488d27001edceb8d8a0 (diff)
downloadpuppet-nginx-e448c4e15d8bc0e3212699d2d5ede7e55d27858b.tar.gz
puppet-nginx-e448c4e15d8bc0e3212699d2d5ede7e55d27858b.tar.bz2
Use name at nginx::cert
-rw-r--r--manifests/cert.pp14
1 files changed, 6 insertions, 8 deletions
diff --git a/manifests/cert.pp b/manifests/cert.pp
index 81a5f4b..28906f0 100644
--- a/manifests/cert.pp
+++ b/manifests/cert.pp
@@ -1,20 +1,18 @@
-define nginx::cert(
- $address
-)
+define nginx::cert()
{
- ssl::cert { "$address":
+ ssl::cert { "$name":
main => true,
notify => Service['nginx'],
}
- ssl::check { "$address":
+ ssl::check { "$name":
file => true,
}
Service["nginx"] {
require => [ Package["nginx"],
- File["/etc/nginx/sites-enabled/${address}"],
- File["/etc/ssl/private/${address}.pem"],
- File["/etc/ssl/certs/${address}.crt"] ],
+ File["/etc/nginx/sites-enabled/${name}"],
+ File["/etc/ssl/private/${name}.pem"],
+ File["/etc/ssl/certs/${name}.crt"] ],
}
}