-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from redhatrises/role_updates
Update Falcon role and Collection
- Loading branch information
Showing
16 changed files
with
149 additions
and
63 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,31 @@ | ||
name: Release to Galaxy | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- name: Install pip | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install ansible | ||
- name: Create release artifacts | ||
run: | | ||
ansible-galaxy collection build | ||
ansible-galaxy collection publish *.tar.gz --api-key ${{ secrets.GALAXY_API_KEY }} | ||
- name: Release artifacts to Git Hub | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: ./crowdstrike-falcon*.tar.gz | ||
allowUpdates: true | ||
name: Release ${{ github.ref }} | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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,33 @@ | ||
# Ansible Collection - crowdstrike.crowdstrike | ||
# Ansible Collection - crowdstrike.falcon | ||
|
||
Documentation for the collection. | ||
This collection is focused on downloading, installing, and removing, CrowdStrike's Falcon sensor on Linux platforms. Windows and OSX coming soon. | ||
|
||
# Installation | ||
|
||
To install the collection from Ansible Galaxy: | ||
|
||
``` | ||
ansible-galaxy collection install crowdstrike.falcon | ||
``` | ||
|
||
# Example Playbooks | ||
|
||
This example uninstalls the Falcon Sensor: | ||
|
||
```yaml | ||
--- | ||
- hosts: all | ||
vars: | ||
falcon_uninstall: true | ||
tasks: | ||
- import_role: | ||
name: crowdstrike.falcon.falcon_installation | ||
``` | ||
# Contributing | ||
All contributions are welcome! | ||
# License | ||
See the [Unlicense](LICENSE) for more information. |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,73 @@ | ||
Installation | ||
========= | ||
|
||
This role will install or uninstall the CrowdStrike Falcon Sensor. | ||
|
||
Requirements | ||
------------ | ||
|
||
Ansible 2.10 or higher | ||
|
||
Role Variables | ||
-------------- | ||
|
||
Currently the following variables are supported: | ||
|
||
### Falcon Installation | ||
|
||
* `falcon_cid` - Your Falcon Customer ID (CID) (string, default: null) | ||
* `falcon_provisioning_token` - Falcon Installation Token (string, default: null) | ||
* `falcon_install_method` - The installation method for installing the sensor (string, default: api) | ||
* `falcon_gpg_key` - Location of the Falcon GPG Key file (string, default: null) | ||
* `falcon_remove_agent_id` - Remote the Falcon Agent ID (AID) (bool, default: false) | ||
* `falcon_api_url` - CrowdStrike API URL for downloading the Falcon sensor (string, default: `api.crowdstrike.com`) | ||
* `falcon_api_client_id` - CrowdStrike OAUTH Client ID (string, default: null) | ||
* `falcon_api_client_secret` - CrowdStrike OAUTH Client Secret (string, default: null) | ||
* `falcon_install_tmp_dir` - Temporary download and installation directory for the Falson Sensor (string, default: null) | ||
* `falcon_download_url` - URL for downloading the sensor (string, default: null) | ||
* `falcon_retries` - Number of attempts to download the sensor (int, default: 3) | ||
* `falcon_delay` - Number of seconds before trying another download attempt (int, default: 3) | ||
* `falcon_uninstall` - Uninstall the Falcon Sensor (bool, default: false) | ||
|
||
See [default/main.yaml](default/main.yaml) for more details on these variables. | ||
|
||
Dependencies | ||
------------ | ||
|
||
Privilege escalation (sudo) is required for this role to function properly. | ||
|
||
Example Playbooks | ||
---------------- | ||
|
||
This example installs the Falcon Sensor: | ||
|
||
```yaml | ||
--- | ||
- hosts: all | ||
roles: | ||
- role: falcon_installation | ||
vars: | ||
falcon_api_client_id: <Falcon_UI_OAUTH_client_id> | ||
falcon_api_client_secret: <Falcon_UI_OAUTH_client_secret> | ||
``` | ||
This example uninstalls the Falcon Sensor: | ||
```yaml | ||
--- | ||
- hosts: all | ||
roles: | ||
- role: falcon_installation | ||
vars: | ||
falcon_uninstall: true | ||
``` | ||
License | ||
------- | ||
[Unlicense](LICENSE) | ||
Author Information | ||
------------------ | ||
CrowdStrike Solutions Architects |
2 changes: 1 addition & 1 deletion
2
roles/falcon/defaults/main.yml → roles/falcon_installation/defaults/main.yml
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,2 @@ | ||
--- | ||
# handlers file for falcon_installation |
8 changes: 4 additions & 4 deletions
8
roles/falcon/meta/main.yml → roles/falcon_installation/meta/main.yml
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
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
roles/falcon/tasks/main.yml → roles/falcon_installation/tasks/main.yml
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
roles/falcon/vars/main.yml → roles/falcon_installation/vars/main.yml
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