]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Adding Gitlab job log sections
authorFrank Brehm <frank.brehm@pixelpark.com>
Fri, 7 Jan 2022 11:09:23 +0000 (12:09 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Fri, 7 Jan 2022 11:09:23 +0000 (12:09 +0100)
lib/cr_vmware_tpl/cobbler.py
snippets/tpl.010.authkeys.sh

index ec427794c5027adda03c992262695c9ee98dda50..a3b86017c513aa3ceee92c2dc812201cc601f476 100644 (file)
@@ -794,7 +794,7 @@ class Cobbler(BaseHandler):
         """Removing the given system."""
 
         LOG.info(_("Removing system {!r} ...").format(name))
-        print_section_start('remove_system', "Creating new system ...", collapsed=True)
+        print_section_start('remove_system', "Removing system ...", collapsed=True)
 
         args = ['system', 'remove']
         args.append('--name')
@@ -813,8 +813,8 @@ class Cobbler(BaseHandler):
             print_section_end('remove_system')
             raise ExpectedCobblerError(msg)
 
-        print_section_end('remove_system')
         self.sync()
+        print_section_end('remove_system')
 
     # -------------------------------------------------------------------------
     def sync(self):
index 3e7ef50a0422f2b7a94ff2f2aead9e1feba66a35..387ce5fbe2c5dad5f3106aa92e32b40909553308 100644 (file)
@@ -4,6 +4,7 @@
 #-----------------------------------------------------------
 create_authkeys() {
 
+    echo -e "\e[0Ksection_start:$( date +%s ):ks_create_authkeys[collapsed=true]\r\e[0KCreating authorized_keys of root ..."
     echo
     echo "${HASH_LINE}"
     echo "Calling create_authkeys() ..."
@@ -24,6 +25,7 @@ create_authkeys() {
         cat "${tmp_file}" >> /root/.ssh/authorized_keys
     fi
     rm -v "${tmp_file}"
+    echo -e "\e[0Ksection_end:$( date +%s ):ks_create_authkeys\r\e[0K"
 }
 
 create_authkeys