Skip to content

Commit 800e0ab

Browse files
Add conflicts to the newrelic-infra packages to not allow having both fips and non fips installed at the same time (#1987)
1 parent a5b68fd commit 800e0ab

26 files changed

+51
-0
lines changed

.github/workflows/component_molecule_packaging.yml

+1
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@ jobs:
3535
gpg_key: 'https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg'
3636
repo_base_url: ${{ inputs.REPO_ENDPOINT }}
3737
package_name: 'newrelic-infra-fips'
38+
exec_name: 'newrelic-infra'
3839
package_version: ${{ inputs.TAG }}
3940
platforms: "al2,al2023,debian-bullseye,debian-bookworm,redhat8,redhat9,suse15.3,suse15.4,suse15.5,suse15.6,ubuntu1604,ubuntu1804,ubuntu2004,ubuntu2204,ubuntu2404"

build/goreleaser/linux/al2023_amd64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,7 @@
8888
# Required packages. rpm version 4.11.3 does not support weak dependencies
8989
recommends:
9090
- fluent-bit
91+
conflicts:
92+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
9193

9294
# end AL2023 adm64

build/goreleaser/linux/al2023_arm64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,7 @@
8181
# Recommended packages. If they fail to install installation of the agent will not be interrupted.
8282
recommends:
8383
- fluent-bit
84+
conflicts:
85+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
8486

8587
# end AL2023 arm64

build/goreleaser/linux/al2_amd64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,7 @@
8989
dependencies:
9090
- td-agent-bit #To be removed on removal of the ff fluent_bit_19
9191
- fluent-bit
92+
conflicts:
93+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
9294

9395
# end AL2 adm64

build/goreleaser/linux/al2_arm64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,7 @@
8282
dependencies:
8383
- td-agent-bit #To be removed on removal of the ff fluent_bit_19
8484
- fluent-bit
85+
conflicts:
86+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
8587

8688
# end AL2 arm64

build/goreleaser/linux/centos_7_amd64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,7 @@
8888
dependencies:
8989
- td-agent-bit #To be removed on removal of the ff fluent_bit_19
9090
- fluent-bit
91+
conflicts:
92+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
9193

9294
# end CentOS 7 amd64

build/goreleaser/linux/centos_7_arm64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,7 @@
8383
dependencies:
8484
- td-agent-bit #To be removed on removal of the ff fluent_bit_19
8585
- fluent-bit
86+
conflicts:
87+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
8688

8789
# end CentOS 7 arm64

build/goreleaser/linux/centos_8_amd64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,7 @@
8989
recommends:
9090
- td-agent-bit #To be removed on removal of the ff fluent_bit_19
9191
- fluent-bit
92+
conflicts:
93+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
9294

9395
# end CentOS 8 amd64

build/goreleaser/linux/centos_8_arm64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,7 @@
8282
recommends:
8383
- td-agent-bit #To be removed on removal of the ff fluent_bit_19
8484
- fluent-bit
85+
conflicts:
86+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
8587

8688
# end CentOS 8 arm64

build/goreleaser/linux/debian_systemd_amd64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,7 @@
7373
recommends:
7474
- td-agent-bit #To be removed on removal of the ff fluent_bit_19
7575
- fluent-bit
76+
conflicts:
77+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
7678

7779
# end Debian systemd amd64

build/goreleaser/linux/debian_systemd_arm64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,7 @@
7373
recommends:
7474
- td-agent-bit #To be removed on removal of the ff fluent_bit_19
7575
- fluent-bit
76+
conflicts:
77+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
7678

7779
# end Debian systemd arm64

build/goreleaser/linux/debian_upstart_amd64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,7 @@
6969
recommends:
7070
- td-agent-bit #To be removed on removal of the ff fluent_bit_19
7171
- fluent-bit
72+
conflicts:
73+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
7274

7375
# end Debian upstart amd64

build/goreleaser/linux/rhel_9_amd64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,7 @@
8888
# Recommended packages. If they fail to install installation of the agent will not be interrupted.
8989
recommends:
9090
- fluent-bit
91+
conflicts:
92+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
9193

9294
# end RHEL 9 amd64

build/goreleaser/linux/rhel_9_arm64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,7 @@
8181
# Recommended packages. If they fail to install installation of the agent will not be interrupted.
8282
recommends:
8383
- fluent-bit
84+
conflicts:
85+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
8486

8587
# end RHEL 9 arm64

build/goreleaser/linux/sles_125_amd64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,7 @@
9191
recommends:
9292
- td-agent-bit #To be removed on removal of the ff fluent_bit_19
9393
- fluent-bit
94+
conflicts:
95+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
9496

9597
# end SLES 12.5 amd64

build/goreleaser/linux/sles_125_arm64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@
7979
posttrans: "build/package/rpm/postinst-systemd.sh"
8080
summary: "New Relic Infrastructure Agent"
8181
group: default
82+
conflicts:
83+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
8284
# Recommended packages. If they fail to install installation of the agent will not be interrupted.
8385
# recommends:
8486
# FB not supported yet

build/goreleaser/linux/sles_152_amd64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,7 @@
8989
recommends:
9090
- td-agent-bit #To be removed on removal of the ff fluent_bit_19
9191
- fluent-bit
92+
conflicts:
93+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
9294

9395
# end SLES 15.2 amd64

build/goreleaser/linux/sles_152_arm64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@
7979
posttrans: "build/package/rpm/postinst-systemd.sh"
8080
summary: "New Relic Infrastructure Agent"
8181
group: default
82+
conflicts:
83+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
8284
# Recommended packages. If they fail to install installation of the agent will not be interrupted.
8385
# recommends:
8486
# FB not supported yet

build/goreleaser/linux/sles_153_amd64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,7 @@
8989
recommends:
9090
- td-agent-bit #To be removed on removal of the ff fluent_bit_19
9191
- fluent-bit
92+
conflicts:
93+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
9294

9395
# end SLES 15.3 amd64

build/goreleaser/linux/sles_153_arm64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@
7979
posttrans: "build/package/rpm/postinst-systemd.sh"
8080
summary: "New Relic Infrastructure Agent"
8181
group: default
82+
conflicts:
83+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
8284
# Recommended packages. If they fail to install installation of the agent will not be interrupted.
8385
# recommends:
8486
# FB not supported yet

build/goreleaser/linux/sles_154_amd64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,7 @@
8888
# Recommended packages. If they fail to install installation of the agent will not be interrupted.
8989
recommends:
9090
- fluent-bit
91+
conflicts:
92+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
9193

9294
# end SLES 15.4 amd64

build/goreleaser/linux/sles_154_arm64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@
7979
posttrans: "build/package/rpm/postinst-systemd.sh"
8080
summary: "New Relic Infrastructure Agent"
8181
group: default
82+
conflicts:
83+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
8284
# Recommended packages. If they fail to install installation of the agent will not be interrupted.
8385
# recommends:
8486
# FB not supported yet

build/goreleaser/linux/sles_155_amd64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,7 @@
8888
# Recommended packages. If they fail to install installation of the agent will not be interrupted.
8989
recommends:
9090
- fluent-bit
91+
conflicts:
92+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
9193

9294
# end SLES 15.5 amd64

build/goreleaser/linux/sles_155_arm64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@
7979
posttrans: "build/package/rpm/postinst-systemd.sh"
8080
summary: "New Relic Infrastructure Agent"
8181
group: default
82+
conflicts:
83+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
8284
# Recommended packages. If they fail to install installation of the agent will not be interrupted.
8385
# recommends:
8486
# FB not supported yet

build/goreleaser/linux/sles_156_amd64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,7 @@
8888
# Recommended packages. If they fail to install installation of the agent will not be interrupted.
8989
recommends:
9090
- fluent-bit
91+
conflicts:
92+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
9193

9294
# end SLES 15.6 amd64

build/goreleaser/linux/sles_156_arm64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@
6868
posttrans: "build/package/rpm/postinst-systemd.sh"
6969
summary: "New Relic Infrastructure Agent"
7070
group: default
71+
conflicts:
72+
- newrelic-infra{{ if eq .Env.FIPS "" -}}-fips{{ end }}
7173
# Recommended packages. If they fail to install installation of the agent will not be interrupted.
7274
# recommends:
7375
# FB not supported yet

0 commit comments

Comments
 (0)