-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add crowdstrike deploy tasks (#1055)
- Loading branch information
Showing
3 changed files
with
66 additions
and
10 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,25 @@ | ||
--- | ||
- debug: | ||
msg: Deploy CrowdStrike Falcon Sensor | ||
|
||
|
||
- name: Install CrowdStrike Falcon Sensor | ||
block: | ||
- include_role: | ||
name: newrelic.crowdstrike_provision.install_crowdstrike_falcon | ||
become: true | ||
vars: | ||
falcon_client_id: "{{ lookup('env', 'CROWDSTRIKE_CLIENT_ID') }}" | ||
falcon_client_secret: "{{ lookup('env', 'CROWDSTRIKE_CLIENT_SECRET') }}" | ||
falcon_customer_id: "{{ lookup('env', 'CROWDSTRIKE_CUSTOMER_ID') }}" | ||
api_base_url: "https://api.laggar.gcw.crowdstrike.com" | ||
|
||
- name: Validate sensor is running | ||
shell: ps -e | grep falcon-sensor | grep -v grep | wc -l | ||
register: is_sensor_running | ||
become: true | ||
|
||
- name: Ensure Falcon is started | ||
ansible.builtin.fail: | ||
msg: falcon-sensor is not running | ||
when: is_sensor_running.stdout|int == 0 |
30 changes: 30 additions & 0 deletions
30
test/manual/definitions/infra-agent/ubuntu20-infra-crowdstrike.json
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,30 @@ | ||
{ | ||
"global_tags": { | ||
"owning_team": "virtuoso", | ||
"Environment": "development", | ||
"Department": "product", | ||
"Product": "virtuoso" | ||
}, | ||
"resources": [ | ||
{ | ||
"id": "infracsubuntu20", | ||
"provider": "aws", | ||
"type": "ec2", | ||
"size": "t3.nano", | ||
"ami_name": "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-????????", | ||
"user_name": "ubuntu" | ||
} | ||
], | ||
"instrumentations": { | ||
"resources": [ | ||
{ | ||
"id": "crowdstrike", | ||
"resource_ids": [ | ||
"infracsubuntu20" | ||
], | ||
"source_repository": "https://github.com/newrelic/open-install-library", | ||
"deploy_script_path": "test/deploy/crowdstrike/roles" | ||
} | ||
] | ||
} | ||
} |
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