diff options
-rw-r--r-- | manifests/init.pp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index b1e465a..55feced 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -55,9 +55,11 @@ class infinoted( require => File['/var/lib/infinoted/.config'], } + # Generate keys + # This exec will launch the server but not daemonize, so we fork it to the background exec { 'infinoted-gen-keys': - command => 'infinoted --create-key --create-certificate -k /var/lib/infinoted/.certs/cert.key -c /var/lib/infinoted/.certs/cert.cert &', - creates => '/var/lib/infinoted/.certs/cert.key', + command => 'infinoted --create-key --create-certificate -k /var/lib/infinoted/.certs/infinoted.key -c /var/lib/infinoted/.certs/infinoted.cert &', + creates => '/var/lib/infinoted/.certs/infinoted.key', require => File['/var/lib/infinoted/.config/infinoted.conf'], } |