Skip to content

Commit

Permalink
Merge pull request #497 from carlosmmatos/update-falcon-install-senso…
Browse files Browse the repository at this point in the history
…r-download

fix(falcon_install): add ability to use file ownership changes from sensor_download module
  • Loading branch information
redhatrises authored Apr 9, 2024
2 parents f493132 + 2496a5c commit 5c93a63
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
4 changes: 3 additions & 1 deletion roles/falcon_install/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ This role installs the CrowdStrike Falcon Sensor. It provides the flexibility to
> [!NOTE]
> Please note that for Linux and macOS, this role only handles the installation of the sensor. To configure and start the sensor, please use the [falcon_configure](../falcon_configure/) role after the sensor is installed.

## Requirements

- Ansible 2.13 or higher
Expand Down Expand Up @@ -46,6 +45,9 @@ The following variables are currently supported:
- **eu-1** -> api.eu-1.crowdstrike.com
- `falcon_api_enable_no_log` - Whether to enable or disable the logging of sensitive data being exposed in API calls (bool, default: ***true***)
- `falcon_api_sensor_download_path` - Local directory path to download the sensor to (string, default: ***null***)
- `falcon_api_sensor_download_mode` - The file permissions to set on the downloaded sensor (string, default: ***null***)
- `falcon_api_sensor_download_owner` - The owner to set on the downloaded sensor (string, default: ***null***)
- `falcon_api_sensor_download_group` - The group to set on the downloaded sensor (string, default: ***null***)
- `falcon_api_sensor_download_filename` - The name to save the sensor file as (string, default: ***null***)
- `falcon_api_sensor_download_cleanup` - Whether or not to delete the downloaded sensor after transfer to remote host (bool, default: ***true***)
- `falcon_sensor_version` - Sensor version to install (string, default: ***null***)
Expand Down
19 changes: 19 additions & 0 deletions roles/falcon_install/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,25 @@ falcon_api_sensor_download_path:
#
falcon_api_sensor_download_filename:

# The permissions of the downloaded sensor file.
#
# If not specified, the default permissions based on the OS/filesystem will be used.
# Example: '0644'
#
falcon_api_sensor_download_mode:

# The owner to set the downloaded sensor file as.
#
# If not specified, the default owner based on the OS/filesystem will be used.
#
falcon_api_sensor_download_owner:

# The group to set the downloaded sensor file as.
#
# If not specified, the default group based on the OS/filesystem will be used.
#
falcon_api_sensor_download_group:

# Whether or not to delete the downloaded sensor after transfer to remote host.
#
# By default, this is enabled.
Expand Down
3 changes: 3 additions & 0 deletions roles/falcon_install/tasks/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
hash: "{{ falcon_api_installer_list.installers[falcon_sensor_version_decrement | int].sha256 }}"
dest: "{{ falcon_api_sensor_download_path | default(omit, true) }}"
name: "{{ falcon_api_sensor_download_filename | default(omit, true) }}"
mode: "{{ falcon_api_sensor_download_mode | default(omit, true) }}"
owner: "{{ falcon_api_sensor_download_owner | default(omit, true) }}"
group: "{{ falcon_api_sensor_download_group | default(omit, true) }}"
changed_when: false
register: falcon_sensor_download
delegate_to: localhost
Expand Down

0 comments on commit 5c93a63

Please sign in to comment.