Give enough time for kdb5_util to read the /dev/random.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Wed, 7 Jan 2015 22:46:54 +0000 (23:46 +0100)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Wed, 7 Jan 2015 22:46:54 +0000 (23:46 +0100)
manifests/kdc/config.pp

index c55a187..5f8c979 100644 (file)
@@ -16,6 +16,8 @@ class site_hadoop::kdc::config {
   exec { 'kdb5_util-create':
     command => "kdb5_util create -s -P ${site_hadoop::kdc::master_password}",
     path    => '/sbin:/usr/sbin:/bin:/usr/bin',
+    # reading /dev/random
+    timeout => 0,
     creates => "${site_hadoop::kdc::kdc_dir}/principal",
   }
   File['/etc/krb5.conf'] -> Exec['kdb5_util-create']