Skip to content

Commit

Permalink
Added command to remove the previous admin.keytab before creating a n…
Browse files Browse the repository at this point in the history
…ew file
  • Loading branch information
robruma committed Jul 27, 2013
1 parent 6cc94bd commit 18ea192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/serverinstall.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit 18ea192

Please sign in to comment.