MT#17213 Add two-staged puppet run

In some cases puppet should be restarted in order to catch up with
system changes it did itself. For instance if ldap is installed in
puppet session new users won't be available for puppet in the same
session. With this change we have flexibility to run puppet first just
to insall core utils and then do a second normal run.

Change-Id: I7f8d9a7cb45ddcf6c32fd836a4cc488f572092c8
changes/09/4509/1
Sergii Kipot 9 years ago
parent c17dfa6d18
commit 097a4de743

@ -2195,6 +2195,8 @@ check_puppet_rc () {
jessie|stretch)
grml-chroot $TARGET puppet agent --enable 2>&1 | tee -a /tmp/puppet.log
check_puppet_rc "${PIPESTATUS[0]}" "0"
grml-chroot $TARGET puppet agent --test --tags core --waitforcert 30 2>&1 | tee -a /tmp/puppet.log
check_puppet_rc "${PIPESTATUS[0]}" "2"
grml-chroot $TARGET puppet agent --test --waitforcert 30 2>&1 | tee -a /tmp/puppet.log
check_puppet_rc "${PIPESTATUS[0]}" "2"
;;

Loading…
Cancel
Save