Skip to content

Update/smartmon playbook #542

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

Merged
merged 2 commits into from
Jun 26, 2023
Merged

Conversation

technowhizz
Copy link
Contributor

Ensure that cron is installed before attempting to configure crontab

@technowhizz technowhizz requested a review from jovial June 23, 2023 14:40
@technowhizz technowhizz self-assigned this Jun 23, 2023
@technowhizz technowhizz requested a review from a team as a code owner June 23, 2023 14:40
@technowhizz technowhizz enabled auto-merge (squash) June 23, 2023 14:41
@technowhizz technowhizz force-pushed the update/smartmon-playbook branch from 3a87651 to df0c7d3 Compare June 23, 2023 14:57
Adds a check to ensure that cron is installed before attempting to
configure the crontab.
@technowhizz technowhizz force-pushed the update/smartmon-playbook branch from df0c7d3 to 111d163 Compare June 23, 2023 14:59
@technowhizz technowhizz requested a review from jovial June 23, 2023 14:59
package:
name:
- smartmontools
- nvme-cli
- jq
- "{{ 'cron' if ansible_facts['distribution'] == 'Ubuntu' else 'cronie' }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: using ansible_facts['os_family'] == 'Debian' might be more generic, but given that that we only support Ubuntu/Redhat this looks OK.

@@ -2,12 +2,13 @@
- hosts: overcloud

tasks:
- name: Ensure smartmon-tools and nvme-cli is installed
- name: Ensure smartmon-tools, jq, nvme-cli and cron/cronie is installed
Copy link
Contributor

Choose a reason for hiding this comment

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

This is why I usually just put "packages" or "package dependencies" :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah. Will bear in mind for next time

@markgoddard markgoddard disabled auto-merge June 26, 2023 08:23
@markgoddard markgoddard merged commit d2c43c7 into stackhpc/yoga Jun 26, 2023
@markgoddard markgoddard deleted the update/smartmon-playbook branch June 26, 2023 08:23
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.

4 participants