aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/openssl/manifests/init.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/openssl/manifests/init.pp b/modules/openssl/manifests/init.pp
index 74875bc2..b358f530 100644
--- a/modules/openssl/manifests/init.pp
+++ b/modules/openssl/manifests/init.pp
@@ -11,7 +11,8 @@ class openssl {
$pem_file = "$name.pem"
exec { "openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout $pem_file -out $pem_file -subj '/CN=$name.$domain'":
cwd => "$directory",
- creates => "$directory/$name.pem"
+ creates => "$directory/$name.pem",
+ require => Package['openssl']
}
}
}