File tree Expand file tree Collapse file tree 1 file changed +38
-1
lines changed Expand file tree Collapse file tree 1 file changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ cat /etc/yum.repos.d/fluent-bit.repo
73
73
$INSTALL_CMD_PREFIX yum -y $YUM_PARAMETERS install $INSTALL_PACKAGE_NAME$YUM_VERSION
74
74
SCRIPT
75
75
;;
76
- centos|centoslinux|rhel|redhatenterpriselinuxserver|fedora|rocky|almalinux )
76
+ centos|centoslinux|rhel|redhatenterpriselinuxserver|fedora)
77
77
# We need variable expansion and non-expansion on the URL line to pick up the base URL.
78
78
# Therefore we combine things with sed to handle it.
79
79
$SUDO sh << SCRIPT
91
91
sed -i 's|VERSION_SUBSTR|\$ releasever/|g' /etc/yum.repos.d/fluent-bit.repo
92
92
cat /etc/yum.repos.d/fluent-bit.repo
93
93
$INSTALL_CMD_PREFIX yum -y $YUM_PARAMETERS install $INSTALL_PACKAGE_NAME$YUM_VERSION
94
+ SCRIPT
95
+ ;;
96
+ # For Rocky and AlmaLinux, we provide new repos now CentOS no longer tracks downstream.
97
+ almalinux)
98
+ $SUDO sh << SCRIPT
99
+ rpm --import $RELEASE_KEY
100
+ cat << EOF > /etc/yum.repos.d/fluent-bit.repo
101
+ [fluent-bit]
102
+ name = Fluent Bit
103
+ # Legacy server style
104
+ baseurl = $RELEASE_URL /$OS /VERSION_SUBSTR
105
+ gpgcheck=1
106
+ repo_gpgcheck=1
107
+ gpgkey=$RELEASE_KEY
108
+ enabled=1
109
+ EOF
110
+ sed -i 's|VERSION_SUBSTR|\$ releasever/|g' /etc/yum.repos.d/fluent-bit.repo
111
+ cat /etc/yum.repos.d/fluent-bit.repo
112
+ $INSTALL_CMD_PREFIX yum -y $YUM_PARAMETERS install $INSTALL_PACKAGE_NAME$YUM_VERSION
113
+ SCRIPT
114
+ ;;
115
+ rocky|rockylinux)
116
+ $SUDO sh << SCRIPT
117
+ rpm --import $RELEASE_KEY
118
+ cat << EOF > /etc/yum.repos.d/fluent-bit.repo
119
+ [fluent-bit]
120
+ name = Fluent Bit
121
+ # Legacy server style
122
+ baseurl = $RELEASE_URL /rockylinux/VERSION_SUBSTR
123
+ gpgcheck=1
124
+ repo_gpgcheck=1
125
+ gpgkey=$RELEASE_KEY
126
+ enabled=1
127
+ EOF
128
+ sed -i 's|VERSION_SUBSTR|\$ releasever/|g' /etc/yum.repos.d/fluent-bit.repo
129
+ cat /etc/yum.repos.d/fluent-bit.repo
130
+ $INSTALL_CMD_PREFIX yum -y $YUM_PARAMETERS install $INSTALL_PACKAGE_NAME$YUM_VERSION
94
131
SCRIPT
95
132
;;
96
133
ubuntu|debian)
You can’t perform that action at this time.
0 commit comments