Skip to content

Commit

Permalink
chore: Add crowdstrike deploy tasks (#1055)
Browse files Browse the repository at this point in the history
  • Loading branch information
rthorn-nr authored Mar 13, 2024
1 parent 51aafc4 commit 696b74d
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 10 deletions.
25 changes: 25 additions & 0 deletions test/deploy/crowdstrike/roles/configure/tasks/main.yml
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
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"
}
]
}
}
21 changes: 11 additions & 10 deletions test/manual/definitions/infra-agent/ubuntu20-infra.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
"Department": "product",
"Product": "virtuoso"
},

"resources": [{
"id": "infraubuntu20",
"provider": "aws",
"type": "ec2",
"size": "t3.nano",
"ami_name": "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-????????",
"user_name": "ubuntu"
}]
}
"resources": [
{
"id": "infraubuntu20",
"provider": "aws",
"type": "ec2",
"size": "t3.nano",
"ami_name": "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-????????",
"user_name": "ubuntu"
}
]
}

0 comments on commit 696b74d

Please sign in to comment.