Skip to content

Add support for AlmaLinux & Rocky#58

Merged
Phil-Friderici merged 12 commits into
Ericsson:masterfrom
Phil-Friderici:alma
Jan 3, 2023
Merged

Add support for AlmaLinux & Rocky#58
Phil-Friderici merged 12 commits into
Ericsson:masterfrom
Phil-Friderici:alma

Conversation

@Phil-Friderici
Copy link
Copy Markdown
Contributor

@Phil-Friderici Phil-Friderici commented Dec 23, 2022

This change will move all module default values into OS specific hiera data. This is done because not all module default values are really default values for all OS flavours. Now we have one file per OS flavour which makes adding support for new OS flavours very easy.
The usage of os.family is migrated to use os.name. This allows more fine granular settings whenever needed.

The last commits will finally add support for AlmaLinux and Rocky.

Acceptance tests are only added for AlmaLinux and Rocky version 8. Puppet Litmus doesn't provide containers for newer versions yet. FacterDB doesn't provide facts for Rocky 9 yet, but it should work once it gets added to FacterDB.

Phil Friderici added 4 commits December 22, 2022 12:43
Seting $$service_enable to 'manual' will fail on RedHat like systems.
Using manual_startable will fail on other systems as it is unknown to them.

As 'manual' shouldn't be used in real life it gets removed.

Error message:
Failure/Error: it { is_expected.to compile }
  error during compilation: Parameter enable failed on Service[postfix_service]:
  Provider redhat must have features 'manual_startable' to set 'enable' to
  'manual' (file: spec/fixtures/modules/postfix/manifests/init.pp, line: 507)
@Phil-Friderici Phil-Friderici force-pushed the alma branch 5 times, most recently from 2b0ddc0 to 81570c1 Compare December 30, 2022 09:58
Phil Friderici added 2 commits December 30, 2022 11:41
@Phil-Friderici Phil-Friderici force-pushed the alma branch 2 times, most recently from 84a8934 to a7b80eb Compare December 30, 2022 11:48
@Phil-Friderici Phil-Friderici mentioned this pull request Dec 30, 2022
@Phil-Friderici Phil-Friderici force-pushed the alma branch 2 times, most recently from e549aca to dd95cad Compare December 30, 2022 12:43
@Phil-Friderici Phil-Friderici changed the title Add support for AlmaLinux Add support for AlmaLinux & Rocky Jan 2, 2023
@Phil-Friderici Phil-Friderici merged commit 03bd9bd into Ericsson:master Jan 3, 2023
@Phil-Friderici Phil-Friderici deleted the alma branch January 3, 2023 11:24
@Phil-Friderici
Copy link
Copy Markdown
Contributor Author

Thank you @anders-larsson, released as v2.3.0

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.

2 participants