File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-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: { fail(" Unsupported kernel architecture: ${facts['os']['architecture']}" ) }
14
+ }
15
+
9
16
case $facts [' kernel' ] {
10
17
' Linux' : {
11
18
$data_dir = ' /usr/local/promtail_data'
12
19
if versioncmp($promtail::version , ' v0.3.0' ) > 0 {
13
- $release_file_name = ' promtail-linux-amd64 '
20
+ $release_file_name = " promtail-linux-${arch} "
14
21
} else {
15
- $release_file_name = ' promtail_linux_amd64 '
22
+ $release_file_name = " promtail_linux_ ${arch} "
16
23
}
17
24
}
18
25
default: { fail(" ${facts['kernel']} is not yet supported" ) }
You can’t perform that action at this time.
0 commit comments