-
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.
- Loading branch information
Showing
2 changed files
with
30 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Testing | ||
|
||
In order to test the role you'll need Ansible, Molecule and a supported provider such as Vagrant. | ||
|
||
If you also want to test registration, add the following line to [`converge.yml`](converge.yml): | ||
|
||
```yml | ||
sentinelone_token: "..." | ||
``` | ||
Copy the SentinelONE installation files (`sentinelone_latest.deb`, `sentinelone_latest.rpm`) into this directory and run `molecule`: | ||
|
||
```shell | ||
$ molecule create | ||
$ molecule converge | ||
``` |
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,7 +1,17 @@ | ||
--- | ||
- name: Converge | ||
hosts: all | ||
tasks: | ||
- name: Include sentinelone_client | ||
include_role: | ||
name: sentinelone_client | ||
pre_tasks: | ||
- name: Set SentinelONE client installation file (Debian) | ||
ansible.builtin.set_fact: | ||
file_sentinelone: sentinelone_latest.deb | ||
when: ansible_os_family == 'Debian' | ||
|
||
- name: Set SentinelONE client installation file (Red Hat) | ||
ansible.builtin.set_fact: | ||
file_sentinelone: sentinelone_latest.rpm | ||
when: ansible_os_family == 'RedHat' | ||
|
||
roles: | ||
- role: stdevel.sentinelone_client | ||
sentinelone_filename: "{{ file_sentinelone }}" |