Skip to content

Commit

Permalink
Added disable gpg check for zypper (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwester117 authored Sep 26, 2024
1 parent 5eb47a9 commit 67beb98
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 6 deletions.
14 changes: 8 additions & 6 deletions roles/sentinelone_client_legacy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ No requirements.

## Role Variables

| Variable | Default | Description |
| ------------------------------------ | --------- | -------------------------------- |
| `sentinelone_client_filename` | *(empty)* | Package file to install |
| `sentinelone_client_token` | *(empty)* | Group/Site token |
| `sentinelone_client_gpgkey` | *(empty)* | GPG signing key to import |
| `sentinelone_client_force_new_token` | `false` | Set to true to force a new token |
| Variable | Default | Description |
| ------------------------------------------------- | --------- | -------------------------------- |
| `sentinelone_client_filename` | *(empty)* | Package file to install |
| `sentinelone_client_token` | *(empty)* | Group/Site token |
| `sentinelone_client_gpgkey` | *(empty)* | GPG signing key to import |
| `sentinelone_client_force_new_token` | `false` | Set to true to force a new token |
| `sentinelone_client_customer_id` | *(empty)* | Set optional customer id |
| `sentinelone_client_zypper_disable_gpg_check` | `false` | Disable GPG Check for zypper |

## Dependencies

Expand Down
2 changes: 2 additions & 0 deletions roles/sentinelone_client_legacy/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
sentinelone_client_token: ''
sentinelone_client_gpgkey: ''
sentinelone_client_force_new_token: false
sentinelone_client_customer_id: ''
sentinelone_client_zypper_disable_gpg_check: 'false'
14 changes: 14 additions & 0 deletions roles/sentinelone_client_legacy/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,17 @@ argument_specs:
default: false
description:
- "Set to true to force a new token"

sentinelone_client_customer_id:
type: "str"
required: false
default: ''
description:
- "Set optional customer id"

entinelone_client_zypper_disable_gpg_check:
type: "bool"
required: false
default: false
description:
- "Disable GPG Check for zypper"
1 change: 1 addition & 0 deletions roles/sentinelone_client_legacy/tasks/install_suse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
- name: Install package
community.general.zypper:
name: "/tmp/{{ sentinelone_client_filename | basename }}"
disable_gpg_check: "{{ sentinelone_client_zypper_disable_gpg_check }}"
become: true
when: sentinelone_client_digest is not defined

0 comments on commit 67beb98

Please sign in to comment.