From 18ea192038a07f44d59752b2ef4c2c8cadebab49 Mon Sep 17 00:00:00 2001 From: robruma Date: Sat, 27 Jul 2013 16:19:13 -0400 Subject: [PATCH] Added command to remove the previous admin.keytab before creating a new file --- manifests/serverinstall.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/serverinstall.pp b/manifests/serverinstall.pp index 1eba20db..e0275839 100644 --- a/manifests/serverinstall.pp +++ b/manifests/serverinstall.pp @@ -31,7 +31,7 @@ } exec { "admin_keytab": - command => "/usr/sbin/kadmin.local -q 'ktadd -norandkey -k admin.keytab admin' ; /usr/bin/k5start -f ${::ipaadminhomedir}/admin.keytab -U -o admin -k /tmp/krb5cc_${::ipaadminuidnumber} > /dev/null 2>&1", + command => "/bin/rm -f ${::ipaadminhomedir}/admin.keytab ; /usr/sbin/kadmin.local -q 'ktadd -norandkey -k admin.keytab admin' ; /usr/bin/k5start -f ${::ipaadminhomedir}/admin.keytab -U -o admin -k /tmp/krb5cc_${::ipaadminuidnumber} > /dev/null 2>&1", cwd => "${::ipaadminhomedir}", unless => "/usr/bin/kvno -c /tmp/krb5cc_${::ipaadminuidnumber} -k ${::ipaadminhomedir}/admin.keytab admin@${realm}", notify => File["${::ipaadminhomedir}/admin.keytab"],