78 Commits

Author SHA1 Message Date
Mike Reeves 67a9abadf2 Gate so_kernel_repo on running salt matching the shipped version
During soup the grid is mid-salt-upgrade. Only assign the UEK8 kernel
repo once the node's grains.saltversion matches salt.minion.version from
minion.defaults.yaml, so the kernel repo and the update it enables don't
activate until the node is fully on the target salt.
2026-06-26 09:21:11 -04:00
Mike Reeves 27c1c35e62 Mark kernel repo skip_if_unavailable so an empty repo can't brick dnf
When the kernel repo is assigned but /nsm/kernelrepo isn't populated
yet, its missing repomd.xml makes every dnf/pkg operation fail (e.g.
pkg.held for salt during highstate). The kernel repo is supplementary,
so set skip_if_unavailable=1 in both the salt-managed client repo and
the four install-time bootstrap repo files; dnf ignores it until it is
populated instead of aborting. The main repo stays strict.
2026-06-24 13:20:10 -04:00
Mike Reeves 698a746d6d Add UEK8 kernel repo support across install and grid
Mirror the kernel repo to full parity with the main package repo so the
grid can pull the Oracle UEK8 kernel:

- setup/so-functions: securityonion_repo() emits a [securityonionkernel]
  section in every branch (mirrorlist on non-airgap, https://$MSRV/kernelrepo
  for airgap/minion, file:///nsm/kernelrepo/ for manager); repo_sync_local()
  and create_repo() sync and build /nsm/kernelrepo.
- manager/init.sls: create /nsm/kernelrepo and deploy mirror-kernel.txt.
- nginx/enabled.sls: serve /nsm/kernelrepo at https://<repo_host>/kernelrepo.
- repo/client/oracle.sls: add so_kernel_repo, gated by
  onlyif test -e /opt/so/state/nic_names_pinned so the kernel repo is only
  assigned once NICs are pinned by MAC.
- update_packages(): run so-nic-pin before the dnf update that pulls the
  kernel, freezing interface names and dropping the pin marker so the kernel
  isn't downgraded then re-upgraded on the first highstate.
2026-06-23 13:19:56 -04:00
Mike Reeves afc14ec29d Remove non-Oracle Linux 9 support from salt states
Simplifies salt states, map files, and modules to only support
Oracle Linux 9, removing all Debian/Ubuntu/CentOS/Rocky/AlmaLinux/RHEL
conditional branches.
2026-03-16 16:58:39 -04:00
Josh Patterson 4107fa006f fix repo files to remove 2025-09-09 16:51:42 -04:00
Josh Patterson 4c9773c68d reenable sslverify 2025-06-09 14:37:06 -04:00
Josh Patterson 44a5b3b1e5 MANAGERHYPE setup is now complete! 2025-03-12 21:05:04 -04:00
m0duspwnens 64bf7eb363 hyper 2024-08-20 15:26:05 -04:00
reyesj2 6cf0b365e6 Modify yum.conf.jinja to include localpkg_gpgcheck rather than modifying it with so-stig
Signed-off-by: reyesj2 <94730068+reyesj2@users.noreply.github.com>
2024-01-15 21:30:31 -05:00
Josh Patterson 3071a1de41 Update map.jinja 2023-07-20 08:42:27 -04:00
Doug Burks 9e42fb927d Add RPM-GPG-KEY-oracle 2023-07-14 14:04:36 -04:00
Mike Reeves 87d72e852c Fix logic 2023-07-14 13:45:31 -04:00
Mike Reeves 333213d1dd Multi OS Support 2023-07-13 18:40:48 -04:00
Mike Reeves 05b30771c5 Initial Oracle support 2023-07-13 10:29:06 -04:00
Mike Reeves a0b6e1076f Initial Oracle support 2023-07-13 10:04:55 -04:00
Mike Reeves 68f5c9965a Initial Oracle support 2023-07-13 09:24:01 -04:00
Mike Reeves b915cea52f Initial Oracle support 2023-07-13 08:44:20 -04:00
Mike Reeves d98a1d5ae5 Initial Oracle support 2023-07-13 08:40:09 -04:00
Mike Reeves 695ec149f1 Initial Oracle support 2023-07-12 15:07:26 -04:00
Mike Reeves 7732435b64 Initial Oracle support 2023-07-12 14:49:59 -04:00
Mike Reeves 710b3bac3d fix repo state 2023-07-03 15:12:52 -04:00
Mike Reeves 8a90579df7 fix repo state 2023-07-03 15:12:51 -04:00
Mike Reeves 39c8766914 fix repo state 2023-07-03 15:12:51 -04:00
Mike Reeves 694ea743cc add more OS logic 2023-07-03 15:12:51 -04:00
Mike Reeves fee4c20912 add OS logic 2023-07-03 15:12:49 -04:00
Mike Reeves 087099b9b6 Fix keys 2023-07-03 15:12:47 -04:00
Mike Reeves 04fe2ca996 Fix gpg things 2023-07-03 15:12:46 -04:00
m0duspwnens 4e849ecc90 issues with exclude rocky-repos 2023-06-21 15:14:53 -04:00
m0duspwnens 1675b787bf exclude rocky-repos and remove files 2023-06-21 13:27:34 -04:00
Mike Reeves 3077c21bd9 Add official key 2023-05-10 14:15:06 -04:00
m0duspwnens ad64b873c0 ubuntu changes 2023-04-11 12:58:40 -04:00
m0duspwnens 0b96635bcc salt3006rc3 2023-03-31 14:52:40 -04:00
Mike Reeves bd1eb9c7df Change yum to dnf 2023-03-16 18:05:38 -04:00
m0duspwnens b8966aa33a fix role match 2023-02-22 10:24:51 -05:00
m0duspwnens db3a46b6a1 fix indent 2023-02-22 10:07:04 -05:00
m0duspwnens d0bb7dc475 repo for rocky 2023-02-22 10:04:43 -05:00
Mike Reeves 327855b0af add docker 2023-02-22 09:28:51 -05:00
Mike Reeves c6919a09da replace centos 2023-02-17 11:26:11 -05:00
Mike Reeves 4dcdea58d7 add key for so packages 2023-02-14 13:16:13 -05:00
Mike Reeves 0f51e7bb98 fix key locations for rocky 2023-02-14 13:14:21 -05:00
Mike Reeves 89bd9163fb reposync attempt for reocky 2023-02-14 10:08:34 -05:00
Mike Reeves 161881efbb Salt for Ubuntu 2023-01-24 16:25:26 -05:00
m0duspwnens b526532ab6 use global vars in states 2022-10-11 11:57:15 -04:00
Mike Reeves 2bd9dd80e2 Move In Day 2022-09-07 09:06:25 -04:00
Mike Reeves e86b7bff84 Fix repo location 2022-06-30 13:29:21 -04:00
Mike Reeves 909e876509 Update ubuntu.sls 2022-06-27 11:41:49 -04:00
m0duspwnens 8fbd16f75d ensure salt.list is absent 2022-04-07 09:03:51 -04:00
m0duspwnens 722b200e16 add retry to apt_update incase running in background 2022-04-07 08:58:07 -04:00
m0duspwnens b2a98af18b proper formatting 2022-04-07 08:55:30 -04:00
m0duspwnens be3769fd7c run apt-get update if saltstack.list changes 2022-04-07 08:53:44 -04:00