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"],