1
+ ---
2
+ version : 2
3
+ project_name : nri-vsphere
1
4
builds :
2
5
- id : nri-vsphere-nix
3
6
main : ./cmd/nri-vsphere
@@ -18,6 +21,26 @@ builds:
18
21
- goos : darwin
19
22
goarch : 386
20
23
24
+ - id : nri-vsphere-nix-fips
25
+ main : ./cmd/nri-vsphere
26
+ binary : nri-vsphere
27
+ ldflags :
28
+ - -s -w -X main.integrationVersion={{.Version}} -X main.gitCommit={{.Commit}} -X main.buildDate={{.Date}}
29
+ env :
30
+ - CGO_ENABLED=1
31
+ - GOEXPERIMENT=boringcrypto
32
+ - >-
33
+ {{- if eq .Arch "arm64" -}}
34
+ CC=aarch64-linux-gnu-gcc
35
+ {{- end }}
36
+ goos :
37
+ - linux
38
+ goarch :
39
+ - amd64
40
+ - arm64
41
+ tags :
42
+ - fips
43
+
21
44
- id : nri-vsphere-win
22
45
main : ./cmd/nri-vsphere
23
46
binary : nri-vsphere
@@ -35,13 +58,17 @@ builds:
35
58
36
59
nfpms :
37
60
- id : linux
38
- file_name_template : " {{ .ProjectName }}_{{ .Version }}-1_{{ .Arch }}"
61
+ package_name : nri-vsphere
62
+ file_name_template : " {{ .PackageName }}_{{ .Version }}-1_{{ .Arch }}"
39
63
vendor : " New Relic, Inc."
40
64
homepage : " https://www.newrelic.com/infrastructure"
41
65
maintainer :
" New Relic Infrastructure Team <[email protected] >"
42
66
description : " New Relic Infrastructure vsphere Integration extend the core New Relic\n Infrastructure agent's capabilities to allow you to collect metric and\n live state data from vsphere components."
43
67
license : " https://newrelic.com/terms (also see LICENSE installed with this package)"
44
68
69
+ builds :
70
+ - nri-vsphere-nix
71
+
45
72
dependencies :
46
73
- " newrelic-infra"
47
74
@@ -63,9 +90,58 @@ nfpms:
63
90
64
91
overrides :
65
92
rpm :
66
- file_name_template : " {{ .ProjectName }}-{{ .Version }}-1.{{ .Arch }}"
67
- replacements :
68
- amd64 : x86_64
93
+ file_name_template : >-
94
+ {{- .ProjectName }}-
95
+ {{- .Version }}-1.
96
+ {{- if eq .Arch "amd64" -}}x86_64
97
+ {{- else -}}
98
+ {{ .Arch }}
99
+ {{- end }}
100
+
101
+ formats :
102
+ - deb
103
+ - rpm
104
+
105
+ - id : linux-fips
106
+ package_name : nri-vsphere-fips
107
+ file_name_template : " {{ .PackageName }}_{{ .Version }}-1_{{ .Arch }}"
108
+ vendor : " New Relic, Inc."
109
+ homepage : " https://www.newrelic.com/infrastructure"
110
+ maintainer :
" New Relic Infrastructure Team <[email protected] >"
111
+ description : " New Relic Infrastructure vsphere Integration extend the core New Relic\n Infrastructure agent's capabilities to allow you to collect metric and\n live state data from vsphere components."
112
+ license : " https://newrelic.com/terms (also see LICENSE installed with this package)"
113
+
114
+ builds :
115
+ - nri-vsphere-nix-fips
116
+
117
+ dependencies :
118
+ - newrelic-infra-fips (>= 1.60.0)
119
+
120
+ bindir : " /var/db/newrelic-infra/newrelic-integrations/bin"
121
+
122
+ contents :
123
+ - src : " vsphere-config.yml.sample"
124
+ dst : " /etc/newrelic-infra/integrations.d/vsphere-config.yml.sample"
125
+ type : config
126
+ - src : " vsphere-performance.metrics"
127
+ dst : " /etc/newrelic-infra/integrations.d/vsphere-performance.metrics"
128
+ type : config
129
+ - src : " CHANGELOG.md"
130
+ dst : " /usr/share/doc/nri-vsphere/CHANGELOG.md"
131
+ - src : " README.md"
132
+ dst : " /usr/share/doc/nri-vsphere/README.md"
133
+ - src : " LICENSE"
134
+ dst : " /usr/share/doc/nri-vsphere/LICENSE"
135
+
136
+ overrides :
137
+ rpm :
138
+ file_name_template : >-
139
+ {{- .ProjectName }}-fips-
140
+ {{- .Version }}-1.
141
+ {{- if eq .Arch "amd64" -}}x86_64
142
+ {{- else -}}
143
+ {{ .Arch }}
144
+ {{- end }}
69
145
70
146
formats :
71
147
- deb
@@ -80,6 +156,15 @@ archives:
80
156
- vsphere-config.yml.sample
81
157
- vsphere-performance.metrics
82
158
format : tar.gz
159
+
160
+ - id : nri-vsphere-nix-fips
161
+ builds :
162
+ - nri-vsphere-nix-fips
163
+ name_template : " {{ .ProjectName }}-fips_{{ .Os }}_{{ .Version }}_{{ .Arch }}_dirty"
164
+ files :
165
+ - vsphere-config.yml.sample
166
+ - vsphere-performance.metrics
167
+ format : tar.gz
83
168
84
169
- id : nri-vsphere-win
85
170
builds :
0 commit comments