Skip to content

Commit

Permalink
Add constraints for containerized infra-agent fips installation (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarocabanas authored Jan 10, 2025
1 parent 0ab65cc commit cd15e6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
target_agent_version_or_latest: "{{ target_version }}"
when: target_version | length > 0

- name: image suffix for fips
set_fact:
image-suffix: "{{ '-fips' if fips_enabled else '' }}"

- name: Create folder for docker-compose
file:
path: "/srv/newrelic-infra_{{ target_agent_version_or_latest }}/"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '3'
services:
newrelic-infra:
container_name: "newrelic-infra-{{ target_agent_version_or_latest }}"
image: "newrelic/infrastructure:{{ target_agent_version_or_latest }}"
image: "newrelic/infrastructure{{ image-suffix }}:{{ target_agent_version_or_latest }}"
cap_add:
- SYS_PTRACE
network_mode: host
Expand Down

0 comments on commit cd15e6a

Please sign in to comment.