File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 6
6
class promtail::install {
7
7
include archive
8
8
9
+ case $facts [' os' ][' architecture' ] {
10
+ ' x86_64' , ' amd64' : { $arch = ' amd64' },
11
+ ' aarch64' : { $arch = ' arm64' },
12
+ ' armv7l' : { $arch = ' arm' },
13
+ default: {
14
+ fail(" Unsupported kernel architecture: ${facts['os']['architecture']}" )
15
+ }
16
+ }
17
+
9
18
case $facts [' kernel' ] {
10
19
' Linux' : {
11
20
$data_dir = ' /usr/local/promtail_data'
12
21
if versioncmp($promtail::version , ' v0.3.0' ) > 0 {
13
- $release_file_name = ' promtail-linux-amd64 '
22
+ $release_file_name = " promtail-linux-${arch} "
14
23
} else {
15
- $release_file_name = ' promtail_linux_amd64 '
24
+ $release_file_name = " promtail_linux_ ${arch} "
16
25
}
17
26
}
18
27
default: { fail(" ${facts['kernel']} is not yet supported" ) }
You can’t perform that action at this time.
0 commit comments