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

Add firewall command to Kickstart remediation #2144

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

jan-cerny
Copy link
Member

In this commit, we will add option for managing firewall rules
during the installation:

  • firewall enable service_name - adds service_name to list in the
    --service= option in the firewall command in commands section in
    the kickstart
  • firewall disable service_name - adds service_name to list in the
    --remove-service= option in the firewall command in commands
    section in the kickstart

Also, the test will be extended for these new commands.

Related to:
https://pykickstart.readthedocs.io/en/latest/kickstart-docs.html#firewall

In this commit, we will add option for managing firewall rules
during the installation:

* `firewall enable service_name` - adds `service_name` to list in the
  `--service=` option in the `firewall` command in commands section in
  the kickstart
* `firewall disable service_name` - adds `service_name` to list in the
  `--remove-service=` option in the `firewall` command in commands
  section in the kickstart

Also, the test will be extended for these new commands.

Related to:
https://pykickstart.readthedocs.io/en/latest/kickstart-docs.html#firewall
Extracts function _write_it_comma_list to prevent code duplication
and simplify.
@evgenyz evgenyz merged commit 5254320 into OpenSCAP:main Aug 1, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants