-
Notifications
You must be signed in to change notification settings - Fork 132
/
Copy pathinstallation-privileged.yml
49 lines (44 loc) · 1.38 KB
/
installation-privileged.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
- name: Installation-privileged
hosts: testing_hosts_linux
become: true
gather_facts: true
pre_tasks:
- name: Initial cleanup
ansible.builtin.include_role:
name: caos.ansible_roles.infra_agent
vars:
uninstall: true
tasks:
- name: Installation tests suite
vars:
agent_user: "nri-agent"
bin_mode: "0754"
env_vars:
NRIA_MODE: PRIVILEGED
block:
- name: Install agent
ansible.builtin.include_role:
name: caos.ansible_roles.infra_agent
vars:
repo_endpoint: "http://nr-downloads-ohai-staging.s3-website-us-east-1.amazonaws.com/infrastructure_agent"
fips_enabled: "{{ '-fips' in inventory_hostname }}"
- name: Assert privileged caps
ansible.builtin.include_role:
name: caos.ansible_roles.assert_privileged_caps
vars:
executable: "/usr/bin/newrelic-infra"
caps:
- cap_dac_read_search
- cap_sys_ptrace.ep
- name: Assert rootless
ansible.builtin.include_role:
name: caos.ansible_roles.assert_files
vars:
processes:
- name: newrelic-infra-service
owner: "{{ agent_user }}"
files:
- name: /usr/bin/newrelic-infra
permissions: "{{ bin_mode }}"
...