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

ci: Add ALP-Dolomite var file #141

Merged
merged 4 commits into from
Jan 7, 2024

Conversation

HVSharma12
Copy link
Contributor

Enhancement: This pull request adds the ALP-Dolomite.yml variable file and setup-zypper.yml to support SUSE ALP-Dolomite configurations.

Reason: The existing configuration does not cover SUSE ALP.

Result: Works as expected in the added operating system.

Issue Tracker Tickets (Jira or BZ if any):na

reboot:
when: ansible_distribution == 'ALP-Dolomite'

- name: Flush handlers
Copy link
Contributor

Choose a reason for hiding this comment

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

If you reboot the system, do you still need to run the handlers?

# handlers file for cockpit
- name: Reload systemd
  systemd:
    daemon_reload: true

- name: Restart cockpit
  service:
    name: "{{ __cockpit_daemon }}"
    # noqa args[module]
    state: "{{ 'restarted' if cockpit_started | bool else 'stopped' }}"

not sure how ALP-Dolomite works - it will not perform these actions upon reboot?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A reboot is required after installing new packages due to the use of transactional updates, the 'Flush handlers' task is redundant I'll update the changes

@HVSharma12 HVSharma12 requested a review from richm January 6, 2024 03:06
when: cockpit_packages is defined

- name: Ensure Cockpit Web Console packages are installed.
zypper:
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
zypper:
community.general.zypper:

Also - change meta/collection-requirements.yml to look like this:

# SPDX-License-Identifier: MIT
---
collections:
  - ansible.posix
  - community.general
  - fedora.linux_system_roles

That should make linters and ansible-plugin-scan happy

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the suggestion, @richm . I have updated the meta/collection-requirements.yml as advised and made the necessary changes to the zypper reference

@HVSharma12 HVSharma12 requested a review from richm January 7, 2024 16:31
@richm richm merged commit 1be508b into linux-system-roles:main Jan 7, 2024
10 checks passed
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