diff --git a/site/profile/manifests/util/keytab.pp b/site/profile/manifests/util/keytab.pp index ba066db5ff..385a6d6ce4 100644 --- a/site/profile/manifests/util/keytab.pp +++ b/site/profile/manifests/util/keytab.pp @@ -33,7 +33,7 @@ } cron { 'k5start_root': - command => "/usr/bin/k5start -f ${keytab_path} -U -o ${uid} -k /tmp/krb5cc_${uid} -H 60 > /dev/null 2>&1", + command => "/usr/bin/k5start -f ${keytab_path} -U -o ${uid} -k /tmp/krb5cc_${uid} -H 60 -F > /dev/null 2>&1", user => 'root', minute => '*/1', require => File[$keytab_path], diff --git a/spec/defines/util/keytab_spec.rb b/spec/defines/util/keytab_spec.rb index b02636f271..df11adad06 100644 --- a/spec/defines/util/keytab_spec.rb +++ b/spec/defines/util/keytab_spec.rb @@ -33,7 +33,7 @@ it do is_expected.to contain_cron('k5start_root').with( - command: '/usr/bin/k5start -f /home/foo/.keytab -U -o 123 -k /tmp/krb5cc_123 -H 60 > /dev/null 2>&1', + command: '/usr/bin/k5start -f /home/foo/.keytab -U -o 123 -k /tmp/krb5cc_123 -H 60 -F > /dev/null 2>&1', ) end