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

2024 April Update: Section 1.2.x Logic, Section 19 HKU Improvement, Handler Fixes, Prelim Fixes #100

Merged
merged 10 commits into from
Apr 5, 2024

Conversation

frederickw082922
Copy link
Contributor

Overall Review of Changes:

Thank you @MrSteve81 for the enhancements to this release!

  • Improved 19.x section logic for Windows local user SIDs and HKU support.
  • Reboot handler and logic Improvement with skip_reboot var feature.
  • win_skip_for_test var update with additional description
  • Mislabeled control fix for win19cis_rule_2_3_1_4, win19cis_rule_18_9_7_2, win19cis_rule_18_9_32_6_2, win19cis_rule_2_3_1_1, win19cis_rule_2_3_1_2, win19cis_rule_2_3_1_3
  • Improved logic for win19cis_cloud_based_system 1.2.x controls.

Issue Fixes:
Azure Cloud Logic for 1.2.x Section from @mfortin

Enhancements:
Improved Reboot Handler and SID user Logic for all local accounts

How has this been tested?:
Locally and Azure

Signed-off-by: Frederick Witty <frederickw@mindpointgroup.com>
Signed-off-by: Frederick Witty <frederickw@mindpointgroup.com>
Signed-off-by: Frederick Witty <frederickw@mindpointgroup.com>
Signed-off-by: Frederick Witty <frederickw@mindpointgroup.com>
Signed-off-by: Frederick Witty <frederickw@mindpointgroup.com>
Signed-off-by: Frederick Witty <frederickw@mindpointgroup.com>
Signed-off-by: Frederick Witty <frederickw@mindpointgroup.com>
Signed-off-by: Frederick Witty <frederickw@mindpointgroup.com>
Signed-off-by: Frederick Witty <frederickw@mindpointgroup.com>
Signed-off-by: Frederick Witty <frederickw@mindpointgroup.com>
@@ -26,7 +26,7 @@
# Current list is elastic and will be updated as we test more cloud based services.
# Current testing is working in Azure using Hyper-V. We are currently using this for reference:
# https://github.com/ansible/ansible/blob/905131fc76a07cf89dbc8d33e7a4910da3f10a16/lib/ansible/module_utils/facts/virtual/linux.py#L205
- name: Set Fact If Cloud-Based System.
- name: PRELIM | Set Fact If Cloud-Based System.
ansible.builtin.set_fact:
win19cis_cloud_based_system: true
when:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't the Azure fix be here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oversight! Thank you @mfortin ! I see you put in your PR #99 ! Nice work!

@@ -26,7 +26,7 @@
# Current list is elastic and will be updated as we test more cloud based services.
# Current testing is working in Azure using Hyper-V. We are currently using this for reference:
# https://github.com/ansible/ansible/blob/905131fc76a07cf89dbc8d33e7a4910da3f10a16/lib/ansible/module_utils/facts/virtual/linux.py#L205
- name: Set Fact If Cloud-Based System.
- name: PRELIM | Set Fact If Cloud-Based System.
ansible.builtin.set_fact:
win19cis_cloud_based_system: true
when:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
when:
when:
- ansible_system_vendor == 'Microsoft Corporation'

Copy link
Contributor

@georgenalen georgenalen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@frederickw082922 frederickw082922 merged commit 38ff0d7 into devel Apr 5, 2024
3 checks passed
@frederickw082922
Copy link
Contributor Author

Thank you @georgenalen !

@mfortin mfortin mentioned this pull request Apr 5, 2024
@frederickw082922 frederickw082922 deleted the 2024_APRIL_UPDATE branch April 11, 2024 18:04
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.

None yet

3 participants