aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/openssl/manifests/init.pp20
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/openssl/manifests/init.pp b/modules/openssl/manifests/init.pp
index bf05d35e..b8c4d91e 100644
--- a/modules/openssl/manifests/init.pp
+++ b/modules/openssl/manifests/init.pp
@@ -6,10 +6,10 @@ class openssl {
define self_signed_cert($directory = '/etc/certs') {
include openssl::base
- $pem_file = "$name.pem"
- exec { "openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout $pem_file -out $pem_file -subj '/CN=$name'":
+ $pem_file = "${name}.pem"
+ exec { "openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ${pem_file} -out ${pem_file} -subj '/CN=${name}'":
cwd => $directory,
- creates => "$directory/$name.pem",
+ creates => "${directory}/${name}.pem",
require => Package['openssl']
}
}
@@ -21,17 +21,17 @@ class openssl {
$mode = '0600') {
include openssl::base
- $crt_file = "$filename.crt"
- $key_file = "$filename.key"
- exec { "openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout $key_file -out $crt_file -subj '/CN=$name'":
+ $crt_file = "${filename}.crt"
+ $key_file = "${filename}.key"
+ exec { "openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ${key_file} -out ${crt_file} -subj '/CN=${name}'":
cwd => $directory,
- creates => "$directory/$key_file",
+ creates => "${directory}/${key_file}",
require => Package['openssl'],
- before => [File["$directory/$key_file"],
- File["$directory/$crt_file"]]
+ before => [File["${directory}/${key_file}"],
+ File["${directory}/${crt_file}"]]
}
- file { ["$directory/$key_file","$directory/$crt_file"]:
+ file { ["${directory}/${key_file}","${directory}/${crt_file}"]:
owner => $owner,
group => $group,
mode => $mode,