Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-36539

Documentation feedback: Update cloud-init steps

XMLWordPrintable

    • False
    • sat-rocket
    • None
    • None
    • None
    • None

      The following steps appear to be outdated:

       

      https://docs.redhat.com/en/documentation/red_hat_satellite/6.17/html-single/provisioning_hosts/index#Using_VMware_Cloud_Init_and_Userdata_Templates_for_Provisioning_vmware-provisioning

       - Step 4: Configure modules to use in cloud-init

        The contents of the /etc/cloud/cloud.cfg file are incorrect and missing a line based on Unable to SSH to new Virtual Machine after upgrading the template to RHEL 8.7 or 9 - Red Hat Customer Portal.  

       

      • Step 5: Enable the CA certificate for the image:

        The command `update-ca-trust enable` is deprecated and gives the following warning:

       

      [root@rhel9-template cloud]# update-ca-trust enable
      Warning: 'enable' is a deprecated argument. Use 'update-ca-trust extract' in future. See 'update-ca-trust --help' for usage.Proceeding with extraction anyway for backwards compatibility.
      [root@rhel9-template cloud]# update-ca-trust extract
      [root@rhel9-template cloud]# 

       

      Step 7 has the correct command it seems

       

      • Step 12: Remove the ifcfg scrips related to existing network configuration:

      This step still references the /etc/sysconfig/network-scripts/ location which in RHEL 9 is incorrect as they are now located in /etc/NetworkManager/system-connections/ directory. 

      This should be updated for RHEL9 and RHEL10.  Would be worth looking up RHEL8 since it's still a supported version for a while longer.

       

      It would also be helpful to cover how to unregister a system from Satellite or Customer Portal since you have to install cloud-init packages and you don't want to have this template registered to the either of them

      Unsure if there's a version of this for RHEL 8+,

      How to unregister a system from Red Hat Satellite 6 and register to the Red Hat Customer Portal - Red Hat Customer Portal

      But this needs to be updated for RHEL8+ with dnf.  Step 1 for Unregistering needs to be updated to include dnf

      [root@rhel9-template ~]# ls -al /var/cache/yum/*
      ls: cannot access '/var/cache/yum/*': No such file or directory
      [root@rhel9-template ~]#  ls -al /var/cache/dnf/* |wc -l
      116 

       

              Unassigned Unassigned
              sfertch-nmhc Shawn Fertch (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: