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

Variables not used at all within role #134

Open
6 tasks done
ipruteanu-sie opened this issue Dec 6, 2023 · 1 comment
Open
6 tasks done

Variables not used at all within role #134

ipruteanu-sie opened this issue Dec 6, 2023 · 1 comment
Labels
question Further information is requested

Comments

@ipruteanu-sie
Copy link
Contributor

ipruteanu-sie commented Dec 6, 2023

Question
These vars in 'defaults/main.yml' file are not used within role:

  • rhel9cis_allow_autofs: false (NOTE: Setting to 'false' this variable will disable the automounting service(autofs), used for automatically mounting the filesystem and remote-shares.)
    - for example, in ubuntu22 role it was used in templates/ansible_vars_goss.yml.j2
    - and afterwards in tasks/section_1/cis_1.1.9.yml || cis_1.1.x.yml

  • rhel9cis_rh_sub_user & rhel9cis_rh_sub_password(NOTE: Providing the username and password for "Red Hat Subscription Manager" connection.)
    - in RHEL8, they were used for configuring the RH Subscription Manager

  • rhel9cis_rhnsd_required(NOTE: If var "rhel7cis_rhnsd_required" would be set to false, the rhnsd daemon, which periodically connects to Red Hat Network Satellite to check for updates and notifications, will be stopped.)
    - in RHEL7, it was used in tasks/section_1/cis_1.2.x.yml

  • rhel9cis_bootloader_password()
    - Such a variable seem to be used in:
    - other *-CIS-Audit repos, in 'vars/CIS.yml' file
    - other *-CIS repos, in 'templates/ansible_vars_goss.yml.j2' files for loading the hashed password:

				# 1.5.1 Bootloader password
				ubtu22cis_bootloader_password: {{ ubtu22cis_bootloader_password_hash }}

but in current repository NO other reference exists for it.

  • cis_firewalld_ports (not used and documented as an example in RHEL9 & AL2023 )
# These settings are added to demonstrate how this update can be done (eventually will require a new control)
rhel9cis_firewalld_ports:
    - number: 80
      protocol: tcp

Please let me know about your thoughts on this variable definition without actual usage.

@ipruteanu-sie ipruteanu-sie added the question Further information is requested label Dec 6, 2023
@uk-bolly
Copy link
Member

uk-bolly commented Feb 19, 2024

hi @ipruteanu-sie

Thank you for taking the time and providing the feedback for this issue. I can agree, some of the values do need validated. More than happy to remove unused variables that are no longer valid.
Will looking to add this into an upcoming PR and release.

Many thanks

uk-bolly

uk-bolly added a commit that referenced this issue Feb 19, 2024
Signed-off-by: Mark Bolwell <[email protected]>
@uk-bolly uk-bolly mentioned this issue Feb 20, 2024
uk-bolly added a commit that referenced this issue Feb 20, 2024
* change logic thanks to @rjacobs1990 see #175

Signed-off-by: Mark Bolwell <[email protected]>

* thanks to @ipruteani-sie #134

Signed-off-by: Mark Bolwell <[email protected]>

* Thanks to @stwongst #125

Signed-off-by: Mark Bolwell <[email protected]>

* thanks to @sgomez86 #146

Signed-off-by: Mark Bolwell <[email protected]>

* Added updates from #115

Signed-off-by: Mark Bolwell <[email protected]>

* removed rp_filter in post added in error

Signed-off-by: Mark Bolwell <[email protected]>

* updated yamllint precommit

Signed-off-by: Mark Bolwell <[email protected]>

* updated fqcn fo json_query

Signed-off-by: Mark Bolwell <[email protected]>

* updated

Signed-off-by: Mark Bolwell <[email protected]>

* fix typo for virt type query

Signed-off-by: Mark Bolwell <[email protected]>

---------

Signed-off-by: Mark Bolwell <[email protected]>
ipruteanu-sie pushed a commit to siemens/RHEL9-CIS that referenced this issue Feb 21, 2024
* change logic thanks to @rjacobs1990 see ansible-lockdown#175

Signed-off-by: Mark Bolwell <[email protected]>

* thanks to @ipruteani-sie ansible-lockdown#134

Signed-off-by: Mark Bolwell <[email protected]>

* Thanks to @stwongst ansible-lockdown#125

Signed-off-by: Mark Bolwell <[email protected]>

* thanks to @sgomez86 ansible-lockdown#146

Signed-off-by: Mark Bolwell <[email protected]>

* Added updates from ansible-lockdown#115

Signed-off-by: Mark Bolwell <[email protected]>

* removed rp_filter in post added in error

Signed-off-by: Mark Bolwell <[email protected]>

* updated yamllint precommit

Signed-off-by: Mark Bolwell <[email protected]>

* updated fqcn fo json_query

Signed-off-by: Mark Bolwell <[email protected]>

* updated

Signed-off-by: Mark Bolwell <[email protected]>

* fix typo for virt type query

Signed-off-by: Mark Bolwell <[email protected]>

---------

Signed-off-by: Mark Bolwell <[email protected]>
ipruteanu-sie pushed a commit to siemens/RHEL9-CIS that referenced this issue Mar 11, 2024
* change logic thanks to @rjacobs1990 see ansible-lockdown#175

Signed-off-by: Mark Bolwell <[email protected]>

* thanks to @ipruteani-sie ansible-lockdown#134

Signed-off-by: Mark Bolwell <[email protected]>

* Thanks to @stwongst ansible-lockdown#125

Signed-off-by: Mark Bolwell <[email protected]>

* thanks to @sgomez86 ansible-lockdown#146

Signed-off-by: Mark Bolwell <[email protected]>

* Added updates from ansible-lockdown#115

Signed-off-by: Mark Bolwell <[email protected]>

* removed rp_filter in post added in error

Signed-off-by: Mark Bolwell <[email protected]>

* updated yamllint precommit

Signed-off-by: Mark Bolwell <[email protected]>

* updated fqcn fo json_query

Signed-off-by: Mark Bolwell <[email protected]>

* updated

Signed-off-by: Mark Bolwell <[email protected]>

* fix typo for virt type query

Signed-off-by: Mark Bolwell <[email protected]>

---------

Signed-off-by: Mark Bolwell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants