-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add handling for signed packages (#7)
* add SUSE package fact (Molecule) * handle digests for versions older than 23.3.2.12 * fix linting (breaking-change!) * use prober variable name prefixes * ensure that signed packages are only installed if appropriate version is given
- Loading branch information
Showing
9 changed files
with
69 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
--- | ||
sentinelone_token: '' | ||
sentinelone_gpgkey: '' | ||
sentinelone_client_token: '' | ||
sentinelone_client_gpgkey: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
- name: Gather RPM package version | ||
ansible.builtin.command: "rpm -qp --queryformat '%{VERSION}' /tmp/{{ sentinelone_client_filename | basename }}" | ||
register: sentinelone_client_rpm_version | ||
changed_when: false | ||
|
||
- name: Set nodigest flag, if required | ||
ansible.builtin.set_fact: | ||
sentinelone_client_digest: '--nodigest' | ||
when: | ||
- "sentinelone_client_rpm_version.stdout is version('23.3.2.12', '<')" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
--- | ||
- name: Import GPG key | ||
ansible.builtin.apt_key: | ||
url: "{{ sentinelone_gpgkey }}" | ||
url: "{{ sentinelone_client_gpgkey }}" | ||
become: true | ||
when: sentinelone_gpgkey | ||
when: sentinelone_client_gpgkey | ||
|
||
- name: Install package | ||
ansible.builtin.apt: | ||
deb: "/tmp/{{ sentinelone_filename | basename }}" | ||
deb: "/tmp/{{ sentinelone_client_filename | basename }}" | ||
update_cache: true | ||
become: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters