-
Notifications
You must be signed in to change notification settings - Fork 130
/
installation-unprivileged.yml
48 lines (41 loc) · 1.16 KB
/
installation-unprivileged.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
---
- name: installation-unprivileged
hosts: testing_hosts_linux
become: true
gather_facts: yes
pre_tasks:
- name: Initial cleanup
include_role:
name: caos.ansible_roles.infra_agent
vars:
uninstall: true
tasks:
- name: Installation tests suite
vars:
agent_user: "nri-agent"
bin_mode: "0755"
env_vars:
NRIA_MODE: UNPRIVILEGED
block:
- name: install agent
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"
- name: assert no privileged caps
include_role:
name: caos.ansible_roles.assert_privileged_caps
vars:
executable: "/usr/bin/newrelic-infra"
caps: []
- name: Assert rootless
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 }}"
...