Skip to content

Commit 696b74d

Browse files
authored
chore: Add crowdstrike deploy tasks (#1055)
1 parent 51aafc4 commit 696b74d

File tree

3 files changed

+66
-10
lines changed

3 files changed

+66
-10
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
- debug:
3+
msg: Deploy CrowdStrike Falcon Sensor
4+
5+
6+
- name: Install CrowdStrike Falcon Sensor
7+
block:
8+
- include_role:
9+
name: newrelic.crowdstrike_provision.install_crowdstrike_falcon
10+
become: true
11+
vars:
12+
falcon_client_id: "{{ lookup('env', 'CROWDSTRIKE_CLIENT_ID') }}"
13+
falcon_client_secret: "{{ lookup('env', 'CROWDSTRIKE_CLIENT_SECRET') }}"
14+
falcon_customer_id: "{{ lookup('env', 'CROWDSTRIKE_CUSTOMER_ID') }}"
15+
api_base_url: "https://api.laggar.gcw.crowdstrike.com"
16+
17+
- name: Validate sensor is running
18+
shell: ps -e | grep falcon-sensor | grep -v grep | wc -l
19+
register: is_sensor_running
20+
become: true
21+
22+
- name: Ensure Falcon is started
23+
ansible.builtin.fail:
24+
msg: falcon-sensor is not running
25+
when: is_sensor_running.stdout|int == 0
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"global_tags": {
3+
"owning_team": "virtuoso",
4+
"Environment": "development",
5+
"Department": "product",
6+
"Product": "virtuoso"
7+
},
8+
"resources": [
9+
{
10+
"id": "infracsubuntu20",
11+
"provider": "aws",
12+
"type": "ec2",
13+
"size": "t3.nano",
14+
"ami_name": "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-????????",
15+
"user_name": "ubuntu"
16+
}
17+
],
18+
"instrumentations": {
19+
"resources": [
20+
{
21+
"id": "crowdstrike",
22+
"resource_ids": [
23+
"infracsubuntu20"
24+
],
25+
"source_repository": "https://github.com/newrelic/open-install-library",
26+
"deploy_script_path": "test/deploy/crowdstrike/roles"
27+
}
28+
]
29+
}
30+
}

test/manual/definitions/infra-agent/ubuntu20-infra.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
"Department": "product",
66
"Product": "virtuoso"
77
},
8-
9-
"resources": [{
10-
"id": "infraubuntu20",
11-
"provider": "aws",
12-
"type": "ec2",
13-
"size": "t3.nano",
14-
"ami_name": "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-????????",
15-
"user_name": "ubuntu"
16-
}]
17-
}
8+
"resources": [
9+
{
10+
"id": "infraubuntu20",
11+
"provider": "aws",
12+
"type": "ec2",
13+
"size": "t3.nano",
14+
"ami_name": "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-????????",
15+
"user_name": "ubuntu"
16+
}
17+
]
18+
}

0 commit comments

Comments
 (0)