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

RHEL-09-251040: Resolve iteration issue #6

Closed
wants to merge 2 commits into from

Conversation

fallenpixel
Copy link

Overall Review of Changes:
Loop over each task in this block, that way item is defined. Correct the boolean logic for warning/logging for interfaces. Warnings should be issued if an interface in ansible_facts.interfaces is allowed in promiscuous mode.
Issue Fixes:
Please list (using linking) any open issues this PR addresses
#1
Enhancements:
Please list any enhancements/features that are not open issue tickets

How has this been tested?:
Tested on fresh install of RHEL 9.3 via the network boot iso.

This is a resubmit, going into devel.

@fallenpixel fallenpixel changed the title Loop over each task. import->includes RHEL-09-251040: Resolve iteration issue Apr 18, 2024
@uk-bolly
Copy link
Member

hi @fallenpixel

Thank you for the updating, I am currently trying to replicate why we are seeing a failure in the workflow, happy to get this merged as soon as that is resolved.

thanks

uk-bolly

@uk-bolly uk-bolly self-assigned this Apr 19, 2024
uk-bolly added a commit that referenced this pull request Apr 19, 2024
Signed-off-by: Mark Bolwell <[email protected]>
@fallenpixel
Copy link
Author

Do we want to check for the existence of kdump.service, or only run that task if /usr/share/systemd/system/kdump.service is present on the system? I can add an commit for that as well.

@fallenpixel fallenpixel reopened this Apr 19, 2024
@fallenpixel
Copy link
Author

- name: "MEDIUM | RHEL-09-213115 | PATCH | The kdump service on RHEL 9 must be disabled."
  when:
    - rhel_09_213115
    - "'kdump' in ansible_facts.packages"
  tags:
    - RHEL-09-213115
    - CAT2
    - CCI-000366
    - SRG-OS-000480-GPOS-00227
    - SV-257818r925441_rule
    - V-257818
    - NIST800-53R4_CM-6
  ansible.builtin.systemd:
    daemon_reload: true
    enabled: false
    masked: true
    name: kdump
    state: stopped

Something like this would stop the current error in the workflow. Should I add to this PR?

@uk-bolly
Copy link
Member

- name: "MEDIUM | RHEL-09-213115 | PATCH | The kdump service on RHEL 9 must be disabled."
  when:
    - rhel_09_213115
    - "'kdump' in ansible_facts.packages"
  tags:
    - RHEL-09-213115
    - CAT2
    - CCI-000366
    - SRG-OS-000480-GPOS-00227
    - SV-257818r925441_rule
    - V-257818
    - NIST800-53R4_CM-6
  ansible.builtin.systemd:
    daemon_reload: true
    enabled: false
    masked: true
    name: kdump
    state: stopped

Something like this would stop the current error in the workflow. Should I add to this PR?

Spot on

Im just creating a new PR to ensure all is tested all the way through again. Not sure why this has changed but im working through the issues now.
Happy for you to take the info and add to your PR once we have this sorted.

Thanks

uk-bolly

@uk-bolly
Copy link
Member

- name: "MEDIUM | RHEL-09-213115 | PATCH | The kdump service on RHEL 9 must be disabled."
  when:
    - rhel_09_213115
    - "'kdump' in ansible_facts.packages"
  tags:
    - RHEL-09-213115
    - CAT2
    - CCI-000366
    - SRG-OS-000480-GPOS-00227
    - SV-257818r925441_rule
    - V-257818
    - NIST800-53R4_CM-6
  ansible.builtin.systemd:
    daemon_reload: true
    enabled: false
    masked: true
    name: kdump
    state: stopped

Something like this would stop the current error in the workflow. Should I add to this PR?

Spot on

Im just creating a new PR to ensure all is tested all the way through again. Not sure why this has changed but im working through the issues now. Happy for you to take the info and add to your PR once we have this sorted.

Thanks

uk-bolly

hi @fallenpixel

Have managed to work through it all, why this is has become an issue i'm not sure. There is another PR that has just passed that has all the changes i've made within.
There was also other changes in the IaC code required which i have also carried out.
Happy for you to take the changes if you like into this PR.

Many thanks for your time and patience.

uk-bolly

@fallenpixel
Copy link
Author

Not overly worried about it. If you've got a branch with this fix, them I'm good closing. Ty for your work.

@uk-bolly uk-bolly mentioned this pull request Apr 29, 2024
@fallenpixel fallenpixel deleted the 251040 branch June 22, 2024 13:21
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