Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Rocky 9 and refactor to be distro agnostic #35

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

Ranjandas
Copy link
Owner

@Ranjandas Ranjandas commented Jun 19, 2024

  • Minor refactoring in variable names and credentials to be distro agnostic
  • Explicitly install systemd-resolved to support Rocky
  • Make DNF repo addition to support both Fedora and RHEL/clones
  • Compile new cidata.iso
  • Created a distro specific vars directory

Fixes #31

* Minor refactoring in variable names and credentials to be distro agnostic
* Explicitly install systemd-resolved to support Rocky
* Make DNF repo addition to support both Fedora and RHEL/clones
* Compile new cidata.iso
* Created a distro specific vars directory
@Ranjandas
Copy link
Owner Author

Tested

$ packer build -color=false -force -var consul_version=enterprise-1.19.0 -var nomad_version=enterprise-1.8.0 -var-file distro-vars/rocky9-aarch64.pkrvars.hcl hashibox.pkr.hcl | tee packer-output
==> qemu.hashibox: Retrieving ISO
==> qemu.hashibox: Trying https://dl.rockylinux.org/pub/rocky/9.4/images/aarch64/Rocky-9-GenericCloud-Base-9.4-20240509.0.aarch64.qcow2
==> qemu.hashibox: Trying https://dl.rockylinux.org/pub/rocky/9.4/images/aarch64/Rocky-9-GenericCloud-Base-9.4-20240509.0.aarch64.qcow2?checksum=sha256%3A4475b93bc0c0808697774ea7f77a465052d7d5259266618a3153eecf1780b6a3
==> qemu.hashibox: https://dl.rockylinux.org/pub/rocky/9.4/images/aarch64/Rocky-9-GenericCloud-Base-9.4-20240509.0.aarch64.qcow2?checksum=sha256%3A4475b93bc0c0808697774ea7f77a465052d7d5259266618a3153eecf1780b6a3 => /Users/ranjan/.cache/packer/6b2a8482773621e42402df8199f5840e73cfb7a1.iso
==> qemu.hashibox: Deleting previous output directory...
==> qemu.hashibox: Copying hard drive...
==> qemu.hashibox: Resizing hard drive...
==> qemu.hashibox: Found port for communicator (SSH, WinRM, etc): 4037.
==> qemu.hashibox: Creating temporary RSA SSH key for instance...
==> qemu.hashibox: Looking for available port between 5900 and 6000 on 127.0.0.1
==> qemu.hashibox: Starting VM, booting disk image
    qemu.hashibox: The VM will be run headless, without a GUI. If you want to
    qemu.hashibox: view the screen of the VM, connect via VNC without a password to
    qemu.hashibox: vnc://127.0.0.1:5938
==> qemu.hashibox: Overriding default Qemu arguments with qemuargs template option...
==> qemu.hashibox: Waiting 10s for boot...
==> qemu.hashibox: Connecting to VM via VNC (127.0.0.1:5938)
==> qemu.hashibox: Typing the boot commands over VNC...
    qemu.hashibox: Not using a NetBridge -- skipping StepWaitGuestAddress
==> qemu.hashibox: Using SSH communicator to connect: 127.0.0.1
==> qemu.hashibox: Waiting for SSH to become available...
==> qemu.hashibox: Connected to SSH!
==> qemu.hashibox: Provisioning with shell script: /var/folders/sc/jy48j0390k7dncgpgk6f31s40000gn/T/packer-shell3941120315
    qemu.hashibox: 0 files removed
    qemu.hashibox: Rocky Linux 9 - BaseOS                          2.0 MB/s | 2.3 MB     00:01
    qemu.hashibox: Rocky Linux 9 - AppStream                       7.1 MB/s | 7.0 MB     00:00
    qemu.hashibox: Rocky Linux 9 - Extras                          9.3 kB/s |  15 kB     00:01
    qemu.hashibox: Dependencies resolved.
    qemu.hashibox: ================================================================================
    qemu.hashibox:  Package        Architecture     Version               Repository          Size
    qemu.hashibox: ================================================================================
    qemu.hashibox: Installing:
    qemu.hashibox:  unzip          aarch64          6.0-56.el9            baseos             177 k
    qemu.hashibox:  wget           aarch64          1.21.1-7.el9          appstream          765 k
    qemu.hashibox:
    qemu.hashibox: Transaction Summary
    qemu.hashibox: ================================================================================
    qemu.hashibox: Install  2 Packages
    qemu.hashibox:
    qemu.hashibox: Total download size: 942 k
    qemu.hashibox: Installed size: 3.5 M
    qemu.hashibox: Downloading Packages:
    qemu.hashibox: (1/2): unzip-6.0-56.el9.aarch64.rpm             856 kB/s | 177 kB     00:00
    qemu.hashibox: (2/2): wget-1.21.1-7.el9.aarch64.rpm            2.9 MB/s | 765 kB     00:00
    qemu.hashibox: --------------------------------------------------------------------------------
    qemu.hashibox: Total                                           497 kB/s | 942 kB     00:01
    qemu.hashibox: Running transaction check
    qemu.hashibox: Transaction check succeeded.
    qemu.hashibox: Running transaction test
    qemu.hashibox: Transaction test succeeded.
    qemu.hashibox: Running transaction
    qemu.hashibox:   Preparing        :                                                        1/1
    qemu.hashibox:   Installing       : wget-1.21.1-7.el9.aarch64                              1/2
    qemu.hashibox:   Installing       : unzip-6.0-56.el9.aarch64                               2/2
    qemu.hashibox:   Running scriptlet: unzip-6.0-56.el9.aarch64                               2/2
    qemu.hashibox:   Verifying        : unzip-6.0-56.el9.aarch64                               1/2
    qemu.hashibox:   Verifying        : wget-1.21.1-7.el9.aarch64                              2/2
    qemu.hashibox:
    qemu.hashibox: Installed:
    qemu.hashibox:   unzip-6.0-56.el9.aarch64               wget-1.21.1-7.el9.aarch64
    qemu.hashibox:
    qemu.hashibox: Complete!
    qemu.hashibox: Last metadata expiration check: 0:00:02 ago on Wed 19 Jun 2024 02:46:11 AM UTC.
    qemu.hashibox: Dependencies resolved.
    qemu.hashibox: ================================================================================
    qemu.hashibox:  Package                 Architecture   Version             Repository     Size
    qemu.hashibox: ================================================================================
    qemu.hashibox: Installing:
    qemu.hashibox:  epel-release            noarch         9-7.el9             extras         19 k
    qemu.hashibox:  systemd-resolved        aarch64        252-32.el9_4        baseos        359 k
    qemu.hashibox:
    qemu.hashibox: Transaction Summary
    qemu.hashibox: ================================================================================
    qemu.hashibox: Install  2 Packages
    qemu.hashibox:
    qemu.hashibox: Total download size: 377 k
    qemu.hashibox: Installed size: 816 k
    qemu.hashibox: Downloading Packages:
    qemu.hashibox: (1/2): epel-release-9-7.el9.noarch.rpm          172 kB/s |  19 kB     00:00
    qemu.hashibox: (2/2): systemd-resolved-252-32.el9_4.aarch64.rp 2.4 MB/s | 359 kB     00:00
    qemu.hashibox: --------------------------------------------------------------------------------
    qemu.hashibox: Total                                           253 kB/s | 377 kB     00:01
    qemu.hashibox: Running transaction check
    qemu.hashibox: Transaction check succeeded.
    qemu.hashibox: Running transaction test
    qemu.hashibox: Transaction test succeeded.
    qemu.hashibox: Running transaction
    qemu.hashibox:   Preparing        :                                                        1/1
    qemu.hashibox:   Installing       : epel-release-9-7.el9.noarch                            1/2
    qemu.hashibox:   Running scriptlet: epel-release-9-7.el9.noarch                            1/2
    qemu.hashibox: Many EPEL packages require the CodeReady Builder (CRB) repository.
    qemu.hashibox: It is recommended that you run /usr/bin/crb enable to enable the CRB repository.
    qemu.hashibox:
    qemu.hashibox:   Running scriptlet: systemd-resolved-252-32.el9_4.aarch64                  2/2
    qemu.hashibox:   Installing       : systemd-resolved-252-32.el9_4.aarch64                  2/2
    qemu.hashibox:   Running scriptlet: systemd-resolved-252-32.el9_4.aarch64                  2/2
    qemu.hashibox:   Verifying        : systemd-resolved-252-32.el9_4.aarch64                  1/2
    qemu.hashibox:   Verifying        : epel-release-9-7.el9.noarch                            2/2
    qemu.hashibox:
    qemu.hashibox: Installed:
    qemu.hashibox:   epel-release-9-7.el9.noarch       systemd-resolved-252-32.el9_4.aarch64
    qemu.hashibox:
    qemu.hashibox: Complete!
==> qemu.hashibox: Created symlink /etc/systemd/system/dbus-org.freedesktop.resolve1.service → /usr/lib/systemd/system/systemd-resolved.service.
==> qemu.hashibox: Created symlink /etc/systemd/system/sysinit.target.wants/systemd-resolved.service → /usr/lib/systemd/system/systemd-resolved.service.
    qemu.hashibox: Extra Packages for Enterprise Linux 9 - aarch64  11 MB/s |  21 MB     00:01
    qemu.hashibox: Extra Packages for Enterprise Linux 9 openh264  956  B/s | 2.5 kB     00:02
    qemu.hashibox: Dependencies resolved.
    qemu.hashibox: ================================================================================
    qemu.hashibox:  Package                 Architecture  Version              Repository     Size
    qemu.hashibox: ================================================================================
    qemu.hashibox: Installing:
    qemu.hashibox:  crudini                 noarch        0.9.5-1.el9          epel           31 k
    qemu.hashibox: Installing dependencies:
    qemu.hashibox:  python3-iniparse        noarch        0.4-45.el9           baseos         42 k
    qemu.hashibox:
    qemu.hashibox: Transaction Summary
    qemu.hashibox: ================================================================================
    qemu.hashibox: Install  2 Packages
    qemu.hashibox:
    qemu.hashibox: Total download size: 73 k
    qemu.hashibox: Installed size: 184 k
    qemu.hashibox: Downloading Packages:
    qemu.hashibox: (1/2): crudini-0.9.5-1.el9.noarch.rpm           307 kB/s |  31 kB     00:00
    qemu.hashibox: (2/2): python3-iniparse-0.4-45.el9.noarch.rpm   389 kB/s |  42 kB     00:00
    qemu.hashibox: --------------------------------------------------------------------------------
    qemu.hashibox: Total                                            46 kB/s |  73 kB     00:01
    qemu.hashibox: Extra Packages for Enterprise Linux 9 - aarch64 1.6 MB/s | 1.6 kB     00:00
==> qemu.hashibox: Importing GPG key 0x3228467C:
==> qemu.hashibox:  Userid     : "Fedora (epel9) <epel@fedoraproject.org>"
==> qemu.hashibox:  Fingerprint: FF8A D134 4597 106E CE81 3B91 8A38 72BF 3228 467C
==> qemu.hashibox:  From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
    qemu.hashibox: Key imported successfully
    qemu.hashibox: Running transaction check
    qemu.hashibox: Transaction check succeeded.
    qemu.hashibox: Running transaction test
    qemu.hashibox: Transaction test succeeded.
    qemu.hashibox: Running transaction
    qemu.hashibox:   Preparing        :                                                        1/1
    qemu.hashibox:   Installing       : python3-iniparse-0.4-45.el9.noarch                     1/2
    qemu.hashibox:   Installing       : crudini-0.9.5-1.el9.noarch                             2/2
    qemu.hashibox:   Running scriptlet: crudini-0.9.5-1.el9.noarch                             2/2
    qemu.hashibox:   Verifying        : crudini-0.9.5-1.el9.noarch                             1/2
    qemu.hashibox:   Verifying        : python3-iniparse-0.4-45.el9.noarch                     2/2
    qemu.hashibox:
    qemu.hashibox: Installed:
    qemu.hashibox:   crudini-0.9.5-1.el9.noarch         python3-iniparse-0.4-45.el9.noarch
    qemu.hashibox:
    qemu.hashibox: Complete!
    qemu.hashibox: Adding repo from: https://download.docker.com/linux/rhel/docker-ce.repo
    qemu.hashibox: Docker CE Stable - aarch64                       81 kB/s |  15 kB     00:00
    qemu.hashibox: Dependencies resolved.
    qemu.hashibox: ================================================================================
    qemu.hashibox:  Package                    Arch     Version            Repository         Size
    qemu.hashibox: ================================================================================
    qemu.hashibox: Installing:
    qemu.hashibox:  containerd.io              aarch64  1.6.33-3.1.el9     docker-ce-stable   26 M
    qemu.hashibox:  docker-buildx-plugin       aarch64  0.14.1-1.el9       docker-ce-stable   12 M
    qemu.hashibox:  docker-ce                  aarch64  3:26.1.4-1.el9     docker-ce-stable   17 M
    qemu.hashibox:  docker-ce-cli              aarch64  1:26.1.4-1.el9     docker-ce-stable  7.0 M
    qemu.hashibox:  docker-compose-plugin      aarch64  2.27.1-1.el9       docker-ce-stable   12 M
    qemu.hashibox: Installing dependencies:
    qemu.hashibox:  container-selinux          noarch   3:2.229.0-1.el9    appstream          56 k
    qemu.hashibox:  fuse-common                aarch64  3.10.2-8.el9       baseos            7.3 k
    qemu.hashibox:  fuse-overlayfs             aarch64  1.13-1.el9         appstream          62 k
    qemu.hashibox:  fuse3                      aarch64  3.10.2-8.el9       appstream          52 k
    qemu.hashibox:  fuse3-libs                 aarch64  3.10.2-8.el9       appstream          88 k
    qemu.hashibox:  iptables-legacy            aarch64  1.8.10-2.2.el9     epel               47 k
    qemu.hashibox:  iptables-legacy-libs       aarch64  1.8.10-2.2.el9     epel               36 k
    qemu.hashibox:  libslirp                   aarch64  4.4.0-7.el9        appstream          68 k
    qemu.hashibox:  slirp4netns                aarch64  1.2.3-1.el9        appstream          46 k
    qemu.hashibox: Installing weak dependencies:
    qemu.hashibox:  docker-ce-rootless-extras  aarch64  26.1.4-1.el9       docker-ce-stable  3.6 M
    qemu.hashibox:
    qemu.hashibox: Transaction Summary
    qemu.hashibox: ================================================================================
    qemu.hashibox: Install  15 Packages
    qemu.hashibox:
    qemu.hashibox: Total download size: 78 M
    qemu.hashibox: Installed size: 335 M
    qemu.hashibox: Downloading Packages:
    qemu.hashibox: (1/15): docker-buildx-plugin-0.14.1-1.el9.aarch  14 MB/s |  12 MB     00:00
    qemu.hashibox: (2/15): containerd.io-1.6.33-3.1.el9.aarch64.rp  21 MB/s |  26 MB     00:01
    qemu.hashibox: (3/15): docker-ce-cli-26.1.4-1.el9.aarch64.rpm   14 MB/s | 7.0 MB     00:00
    qemu.hashibox: (4/15): docker-ce-rootless-extras-26.1.4-1.el9.  22 MB/s | 3.6 MB     00:00
    qemu.hashibox: (5/15): docker-compose-plugin-2.27.1-1.el9.aarc  32 MB/s |  12 MB     00:00
    qemu.hashibox: (6/15): iptables-legacy-1.8.10-2.2.el9.aarch64. 163 kB/s |  47 kB     00:00
    qemu.hashibox: (7/15): iptables-legacy-libs-1.8.10-2.2.el9.aar 612 kB/s |  36 kB     00:00
    qemu.hashibox: (8/15): docker-ce-26.1.4-1.el9.aarch64.rpm      9.1 MB/s |  17 MB     00:01
    qemu.hashibox: (9/15): fuse-common-3.10.2-8.el9.aarch64.rpm     59 kB/s | 7.3 kB     00:00
    qemu.hashibox: (10/15): container-selinux-2.229.0-1.el9.noarch 303 kB/s |  56 kB     00:00
    qemu.hashibox: (11/15): fuse3-3.10.2-8.el9.aarch64.rpm         435 kB/s |  52 kB     00:00
    qemu.hashibox: (12/15): fuse3-libs-3.10.2-8.el9.aarch64.rpm    699 kB/s |  88 kB     00:00
    qemu.hashibox: (13/15): slirp4netns-1.2.3-1.el9.aarch64.rpm    1.5 MB/s |  46 kB     00:00
    qemu.hashibox: (14/15): fuse-overlayfs-1.13-1.el9.aarch64.rpm  1.2 MB/s |  62 kB     00:00
    qemu.hashibox: (15/15): libslirp-4.4.0-7.el9.aarch64.rpm       1.1 MB/s |  68 kB     00:00
    qemu.hashibox: --------------------------------------------------------------------------------
    qemu.hashibox: Total                                            18 MB/s |  78 MB     00:04
    qemu.hashibox: Docker CE Stable - aarch64                       23 kB/s | 1.6 kB     00:00
==> qemu.hashibox: Importing GPG key 0x621E9F35:
==> qemu.hashibox:  Userid     : "Docker Release (CE rpm) <docker@docker.com>"
==> qemu.hashibox:  Fingerprint: 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35
==> qemu.hashibox:  From       : https://download.docker.com/linux/rhel/gpg
    qemu.hashibox: Key imported successfully
    qemu.hashibox: Running transaction check
    qemu.hashibox: Transaction check succeeded.
    qemu.hashibox: Running transaction test
    qemu.hashibox: Transaction test succeeded.
    qemu.hashibox: Running transaction
    qemu.hashibox:   Preparing        :                                                        1/1
    qemu.hashibox:   Installing       : fuse3-libs-3.10.2-8.el9.aarch64                       1/15
    qemu.hashibox:   Running scriptlet: container-selinux-3:2.229.0-1.el9.noarch              2/15
    qemu.hashibox:   Installing       : container-selinux-3:2.229.0-1.el9.noarch              2/15
    qemu.hashibox:   Running scriptlet: container-selinux-3:2.229.0-1.el9.noarch              2/15
    qemu.hashibox:   Installing       : docker-compose-plugin-2.27.1-1.el9.aarch64            3/15
    qemu.hashibox:   Running scriptlet: docker-compose-plugin-2.27.1-1.el9.aarch64            3/15
    qemu.hashibox:   Installing       : containerd.io-1.6.33-3.1.el9.aarch64                  4/15
    qemu.hashibox:   Running scriptlet: containerd.io-1.6.33-3.1.el9.aarch64                  4/15
    qemu.hashibox:   Installing       : libslirp-4.4.0-7.el9.aarch64                          5/15
    qemu.hashibox:   Installing       : slirp4netns-1.2.3-1.el9.aarch64                       6/15
    qemu.hashibox:   Installing       : fuse-common-3.10.2-8.el9.aarch64                      7/15
    qemu.hashibox:   Installing       : fuse3-3.10.2-8.el9.aarch64                            8/15
    qemu.hashibox:   Installing       : fuse-overlayfs-1.13-1.el9.aarch64                     9/15
    qemu.hashibox:   Running scriptlet: fuse-overlayfs-1.13-1.el9.aarch64                     9/15
    qemu.hashibox:   Installing       : iptables-legacy-libs-1.8.10-2.2.el9.aarch64          10/15
    qemu.hashibox:   Installing       : iptables-legacy-1.8.10-2.2.el9.aarch64               11/15
    qemu.hashibox:   Running scriptlet: iptables-legacy-1.8.10-2.2.el9.aarch64               11/15
    qemu.hashibox:   Installing       : docker-buildx-plugin-0.14.1-1.el9.aarch64            12/15
    qemu.hashibox:   Running scriptlet: docker-buildx-plugin-0.14.1-1.el9.aarch64            12/15
    qemu.hashibox:   Installing       : docker-ce-cli-1:26.1.4-1.el9.aarch64                 13/15
    qemu.hashibox:   Running scriptlet: docker-ce-cli-1:26.1.4-1.el9.aarch64                 13/15
    qemu.hashibox:   Installing       : docker-ce-rootless-extras-26.1.4-1.el9.aarch64       14/15
    qemu.hashibox:   Running scriptlet: docker-ce-rootless-extras-26.1.4-1.el9.aarch64       14/15
    qemu.hashibox:   Installing       : docker-ce-3:26.1.4-1.el9.aarch64                     15/15
    qemu.hashibox:   Running scriptlet: docker-ce-3:26.1.4-1.el9.aarch64                     15/15
    qemu.hashibox:   Running scriptlet: container-selinux-3:2.229.0-1.el9.noarch             15/15
    qemu.hashibox:   Running scriptlet: docker-ce-3:26.1.4-1.el9.aarch64                     15/15
    qemu.hashibox:   Verifying        : containerd.io-1.6.33-3.1.el9.aarch64                  1/15
    qemu.hashibox:   Verifying        : docker-buildx-plugin-0.14.1-1.el9.aarch64             2/15
    qemu.hashibox:   Verifying        : docker-ce-3:26.1.4-1.el9.aarch64                      3/15
    qemu.hashibox:   Verifying        : docker-ce-cli-1:26.1.4-1.el9.aarch64                  4/15
    qemu.hashibox:   Verifying        : docker-ce-rootless-extras-26.1.4-1.el9.aarch64        5/15
    qemu.hashibox:   Verifying        : docker-compose-plugin-2.27.1-1.el9.aarch64            6/15
    qemu.hashibox:   Verifying        : iptables-legacy-1.8.10-2.2.el9.aarch64                7/15
    qemu.hashibox:   Verifying        : iptables-legacy-libs-1.8.10-2.2.el9.aarch64           8/15
    qemu.hashibox:   Verifying        : fuse-common-3.10.2-8.el9.aarch64                      9/15
    qemu.hashibox:   Verifying        : container-selinux-3:2.229.0-1.el9.noarch             10/15
    qemu.hashibox:   Verifying        : fuse3-libs-3.10.2-8.el9.aarch64                      11/15
    qemu.hashibox:   Verifying        : fuse3-3.10.2-8.el9.aarch64                           12/15
    qemu.hashibox:   Verifying        : fuse-overlayfs-1.13-1.el9.aarch64                    13/15
    qemu.hashibox:   Verifying        : slirp4netns-1.2.3-1.el9.aarch64                      14/15
    qemu.hashibox:   Verifying        : libslirp-4.4.0-7.el9.aarch64                         15/15
    qemu.hashibox:
    qemu.hashibox: Installed:
    qemu.hashibox:   container-selinux-3:2.229.0-1.el9.noarch
    qemu.hashibox:   containerd.io-1.6.33-3.1.el9.aarch64
    qemu.hashibox:   docker-buildx-plugin-0.14.1-1.el9.aarch64
    qemu.hashibox:   docker-ce-3:26.1.4-1.el9.aarch64
    qemu.hashibox:   docker-ce-cli-1:26.1.4-1.el9.aarch64
    qemu.hashibox:   docker-ce-rootless-extras-26.1.4-1.el9.aarch64
    qemu.hashibox:   docker-compose-plugin-2.27.1-1.el9.aarch64
    qemu.hashibox:   fuse-common-3.10.2-8.el9.aarch64
    qemu.hashibox:   fuse-overlayfs-1.13-1.el9.aarch64
    qemu.hashibox:   fuse3-3.10.2-8.el9.aarch64
    qemu.hashibox:   fuse3-libs-3.10.2-8.el9.aarch64
    qemu.hashibox:   iptables-legacy-1.8.10-2.2.el9.aarch64
    qemu.hashibox:   iptables-legacy-libs-1.8.10-2.2.el9.aarch64
    qemu.hashibox:   libslirp-4.4.0-7.el9.aarch64
    qemu.hashibox:   slirp4netns-1.2.3-1.el9.aarch64
    qemu.hashibox:
    qemu.hashibox: Complete!
    qemu.hashibox: Adding repo from: https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
    qemu.hashibox: Hashicorp Stable - aarch64                      112 kB/s | 146 kB     00:01
    qemu.hashibox: Dependencies resolved.
    qemu.hashibox: ================================================================================
    qemu.hashibox:  Package                       Arch      Version              Repository   Size
    qemu.hashibox: ================================================================================
    qemu.hashibox: Installing:
    qemu.hashibox:  consul-enterprise             aarch64   1.19.0+ent-1         hashicorp    68 M
    qemu.hashibox:  containernetworking-plugins   aarch64   1:1.4.0-3.el9_4      appstream   8.9 M
    qemu.hashibox:  nomad-enterprise              aarch64   1.8.0+ent-1          hashicorp    46 M
    qemu.hashibox:
    qemu.hashibox: Transaction Summary
    qemu.hashibox: ================================================================================
    qemu.hashibox: Install  3 Packages
    qemu.hashibox:
    qemu.hashibox: Total download size: 123 M
    qemu.hashibox: Installed size: 353 M
    qemu.hashibox: Downloading Packages:
    qemu.hashibox: (1/3): containernetworking-plugins-1.4.0-3.el9_  11 MB/s | 8.9 MB     00:00
    qemu.hashibox: (2/3): nomad-enterprise-1.8.0+ent-1.aarch64.rpm  31 MB/s |  46 MB     00:01
    qemu.hashibox: (3/3): consul-enterprise-1.19.0+ent-1.aarch64.r  25 MB/s |  68 MB     00:02
    qemu.hashibox: --------------------------------------------------------------------------------
    qemu.hashibox: Total                                            36 MB/s | 123 MB     00:03
    qemu.hashibox: Hashicorp Stable - aarch64                       51 kB/s | 3.9 kB     00:00
==> qemu.hashibox: Importing GPG key 0xA621E701:
==> qemu.hashibox:  Userid     : "HashiCorp Security (HashiCorp Package Signing) <security+packaging@hashicorp.com>"
==> qemu.hashibox:  Fingerprint: 798A EC65 4E5C 1542 8C8E 42EE AA16 FCBC A621 E701
==> qemu.hashibox:  From       : https://rpm.releases.hashicorp.com/gpg
    qemu.hashibox: Key imported successfully
    qemu.hashibox: Running transaction check
    qemu.hashibox: Transaction check succeeded.
    qemu.hashibox: Running transaction test
    qemu.hashibox: Transaction test succeeded.
    qemu.hashibox: Running transaction
    qemu.hashibox:   Preparing        :                                                        1/1
    qemu.hashibox:   Installing       : containernetworking-plugins-1:1.4.0-3.el9_4.aarch64    1/3
    qemu.hashibox:   Running scriptlet: nomad-enterprise-1.8.0+ent-1.aarch64                   2/3
    qemu.hashibox:   Installing       : nomad-enterprise-1.8.0+ent-1.aarch64                   2/3
    qemu.hashibox:   Running scriptlet: nomad-enterprise-1.8.0+ent-1.aarch64                   2/3
    qemu.hashibox:
    qemu.hashibox: The following shall apply unless your organization has a separately signed Enterprise License Agreement or Evaluation Agreement governing your use of the software:
    qemu.hashibox: Software in this repository is subject to the license terms located in the software, copies of which are also available at https://eula.hashicorp.com/ClickThruELA-Global.pdf or https://www.hashicorp.com/terms-of-evaluation as applicable. Please read the license terms prior to using the software. Your installation and use of the software constitutes your acceptance of these terms. If you do not accept the terms, do not use the software.
    qemu.hashibox:
    qemu.hashibox:
    qemu.hashibox:   Running scriptlet: consul-enterprise-1.19.0+ent-1.aarch64                 3/3
    qemu.hashibox:   Installing       : consul-enterprise-1.19.0+ent-1.aarch64                 3/3
    qemu.hashibox:   Running scriptlet: consul-enterprise-1.19.0+ent-1.aarch64                 3/3
    qemu.hashibox:
    qemu.hashibox: The following shall apply unless your organization has a separately signed Enterprise License Agreement or Evaluation Agreement governing your use of the software:
    qemu.hashibox: Software in this repository is subject to the license terms located in the software, copies of which are also available at https://eula.hashicorp.com/ClickThruELA-Global.pdf or https://www.hashicorp.com/terms-of-evaluation as applicable. Please read the license terms prior to using the software. Your installation and use of the software constitutes your acceptance of these terms. If you do not accept the terms, do not use the software.
    qemu.hashibox:
    qemu.hashibox:
    qemu.hashibox:   Verifying        : consul-enterprise-1.19.0+ent-1.aarch64                 1/3
    qemu.hashibox:   Verifying        : nomad-enterprise-1.8.0+ent-1.aarch64                   2/3
    qemu.hashibox:   Verifying        : containernetworking-plugins-1:1.4.0-3.el9_4.aarch64    3/3
    qemu.hashibox:
    qemu.hashibox: Installed:
    qemu.hashibox:   consul-enterprise-1.19.0+ent-1.aarch64
    qemu.hashibox:   containernetworking-plugins-1:1.4.0-3.el9_4.aarch64
    qemu.hashibox:   nomad-enterprise-1.8.0+ent-1.aarch64
    qemu.hashibox:
    qemu.hashibox: Complete!
==> qemu.hashibox:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
==> qemu.hashibox:                                  Dload  Upload   Total   Spent    Left  Speed
==> qemu.hashibox: 100 19.2M  100 19.2M    0     0  36.6M      0 --:--:-- --:--:-- --:--:-- 36.5M
    qemu.hashibox: Archive:  /tmp/consul-cni.zip
    qemu.hashibox:   inflating: /usr/libexec/cni/LICENSE.txt
    qemu.hashibox:   inflating: /usr/libexec/cni/consul-cni
    qemu.hashibox: ==> Saved consul-agent-ca.pem
    qemu.hashibox: ==> Saved consul-agent-ca-key.pem
    qemu.hashibox: ==> CA certificate saved to: nomad-agent-ca.pem
    qemu.hashibox: ==> CA certificate key saved to: nomad-agent-ca-key.pem
==> qemu.hashibox: Gracefully halting virtual machine...
==> qemu.hashibox: Converting hard drive...
Build 'qemu.hashibox' finished after 1 minute 44 seconds.

==> Wait completed after 1 minute 44 seconds

==> Builds finished. The artifacts of successful builds are:
--> qemu.hashibox: VM files in directory: .artifacts/c-enterprise-1.19.0-n-enterprise-1.8.0

$ shikari create -n murphy -s 1 -c 1

$ shikari list -n murphy
CLUSTER       VM NAME             SATUS         DISK(GB)       MEMORY(GB)       CPUS
murphy        murphy-cli-01       Running       100            4                4
murphy        murphy-srv-01       Running       100            4                4

$ nomad node status
ID        Node Pool  DC      Name                Class   Drain  Eligibility  Status
f92112e4  default    murphy  lima-murphy-cli-01  <none>  false  eligible     ready

$ nomad node status -verbose f92  | grep -E "^os.(name|version|cgroup)"
os.cgroups.version              = 2
os.name                         = rocky
os.version                      = 9.4

Copy link
Collaborator

@trainmanrun trainmanrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loogs good to me.

@Ranjandas Ranjandas merged commit 72ebb08 into main Jun 19, 2024
@Ranjandas Ranjandas deleted the feature/support-rocky-9 branch June 19, 2024 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Rocky 9
2 participants