From 46f178e50cb3dd98339f3d06c3281050547353a2 Mon Sep 17 00:00:00 2001 From: krischblack Date: Tue, 23 Aug 2016 14:48:57 +0200 Subject: [PATCH] fix _securityprovider call in user.pp use _securityprovider, otherwise files and settings won't be set if inherited from mcollective::securityprovider --- manifests/user.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/user.pp b/manifests/user.pp index 47ef305..adc5304 100644 --- a/manifests/user.pp +++ b/manifests/user.pp @@ -122,7 +122,7 @@ } } # Preserve old behavior - elsif $securityprovider == 'ssl' { + elsif $_securityprovider == 'ssl' { file { $private_path: ensure => 'file', source => $_ssl_server_private, @@ -133,7 +133,7 @@ } } - if $securityprovider == 'ssl' { + if $_securityprovider == 'ssl' { $cert_path = "${homedir_real}/.mcollective.d/credentials/certs/${callerid}.pem" if $certificate { file { $cert_path: @@ -186,7 +186,7 @@ } } - if $securityprovider == 'sshkey' { + if $_securityprovider == 'sshkey' { $public_path = "${homedir_real}/.mcollective.d/credentials/public_keys/${callerid}.pem" if $public_key { file { $public_path: