Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion recipes/newrelic/infrastructure/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,11 @@ install:
add_gpg_key:
cmds:
- |
curl -s {{.NEW_RELIC_DOWNLOAD_URL}}infrastructure_agent/keys/newrelic_apt_key_current.gpg | apt-key add -
# Remove the key from the legacy keyring if it exists
sudo rm -f /etc/apt/trusted.gpg.d/newrelic-infra.gpg 2>/dev/null
sudo rm -f /etc/apt/trusted.gpg 2>/dev/null
# Add the key to the correct directory
curl -s {{.NEW_RELIC_DOWNLOAD_URL}}infrastructure_agent/keys/newrelic_apt_key_current.gpg | sudo gpg --dearmor --batch --yes -o /etc/apt/trusted.gpg.d/newrelic-infra.gpg
silent: true

add_nr_source:
Expand Down
6 changes: 5 additions & 1 deletion recipes/newrelic/infrastructure/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,11 @@ install:
add_gpg_key:
cmds:
- |
curl -s {{.NEW_RELIC_DOWNLOAD_URL}}infrastructure_agent/keys/newrelic_apt_key_current.gpg | apt-key add -
# Remove the key from the legacy keyring if it exists
sudo rm -f /etc/apt/trusted.gpg.d/newrelic-infra.gpg 2>/dev/null
sudo rm -f /etc/apt/trusted.gpg 2>/dev/null
# Add the key to the correct directory
curl -s {{.NEW_RELIC_DOWNLOAD_URL}}infrastructure_agent/keys/newrelic_apt_key_current.gpg | sudo gpg --dearmor --batch --yes -o /etc/apt/trusted.gpg.d/newrelic-infra.gpg
silent: true

add_nr_source:
Expand Down
2 changes: 1 addition & 1 deletion test/definitions/ohi/linux/consul-debian.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"services": [{
"id": "haproxy1",
"destinations": ["host1"],
"source_repository": "https://github.com/newrelic/open-install-library.git",
"source_repository": "-b fix/consul-debian https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/consul/install/debian/roles",
"port": 8500,
"params":{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,26 @@
state: latest
become: yes

- name: Add official HashiCorp GPG Key
shell: curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
become: true
- name: Download HashiCorp GPG key
shell: |
curl -fsSL https://apt.releases.hashicorp.com/gpg -o /tmp/hashicorp.asc
args:
creates: /tmp/hashicorp.asc
become: yes

- name: Add official HashiCorp Linux Repository
shell: apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
become: true
- name: Add HashiCorp GPG key to APT keyring
shell: |
gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg /tmp/hashicorp.asc
args:
creates: /usr/share/keyrings/hashicorp-archive-keyring.gpg
become: yes

- name: Add HashiCorp APT repository
apt_repository:
repo: "deb [arch=amd64 signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com bookworm main"
state: present
filename: hashicorp
become: yes

- block:
- name: Create consul config directory
Expand Down
Loading