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 the ability to configure the cyhy-commander's jobs-per-*-host values #669

Merged
merged 3 commits into from
Aug 25, 2023

Conversation

mcdonnnj
Copy link
Member

🗣 Description

This pull request adds the ability to configure the jobs-per-nessus-host and jobs-per-nmap-host values in the cyhy-commander configuration file.

💭 Motivation and context

We want to update the value being deployed in production but rather than continuously modifying a hard-coded value it made sense to integrate this as a configurable value between the Ansible role and the Terraform configuration.

🧪 Testing

Automated tests pass. I deployed this in my development environment with a non-default value and confirmed it deployed successfully.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All relevant repo and/or project documentation has been updated
    to reflect the changes in this PR.
  • All new and existing tests pass.

@mcdonnnj mcdonnnj added improvement This issue or pull request will add or improve functionality, maintainability, or ease of use terraform Pull requests that update Terraform code ansible Pull requests that update Ansible code labels Aug 24, 2023
@mcdonnnj mcdonnnj self-assigned this Aug 24, 2023
Add the ability to configure the `jobs-per-nessus-host` and
`jobs-per-nmap-host` values for the `production` section in the
`commander.conf` file through the Terraform configuration.
Sorting these alphabetically aligns with our general practice of
sorting such arguments as long as order is not important.
@mcdonnnj mcdonnnj force-pushed the improvement/configure_commander_jobs-per-host branch from 15172c9 to 01f352b Compare August 24, 2023 20:49
Copy link
Member

@dav3r dav3r left a comment

Choose a reason for hiding this comment

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

Outstanding and long overdue, so thanks for taking care of this! 🥇

I left one small comment suggestion for your perusal.

ansible/roles/cyhy_commander/defaults/main.yml Outdated Show resolved Hide resolved
Make sure to mention that all three variables are only used in the
"production" section of the generated configuration file.

Co-authored-by: dav3r <[email protected]>
@mcdonnnj mcdonnnj merged commit 69bd53d into develop Aug 25, 2023
5 checks passed
@mcdonnnj mcdonnnj deleted the improvement/configure_commander_jobs-per-host branch August 25, 2023 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ansible Pull requests that update Ansible code improvement This issue or pull request will add or improve functionality, maintainability, or ease of use terraform Pull requests that update Terraform code
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants