Skip to content

Refactors#57

Closed
Phil-Friderici wants to merge 5 commits into
Ericsson:masterfrom
Phil-Friderici:refactor_data
Closed

Refactors#57
Phil-Friderici wants to merge 5 commits into
Ericsson:masterfrom
Phil-Friderici:refactor_data

Conversation

@Phil-Friderici
Copy link
Copy Markdown
Contributor

This PR is a preparation to add support for AlmaLinux & RockyLinux.

It moves OS specific data away from os.family to os.name. It uses one file for each OS flavor/version.

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)
This gives more freedom of choice for parameters.
@Phil-Friderici
Copy link
Copy Markdown
Contributor Author

closed in favour of #58

@Phil-Friderici Phil-Friderici deleted the refactor_data branch May 8, 2023 15:33
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.

1 participant