Upgrade
Upgrade the HAProxy Data Plane API on HAProxy Enterprise
This section describes how to upgrade the HAProxy Data Plane API to the latest version.
Upgrade the HAProxy Data Plane API Jump to heading
To upgrade HAProxy Data Plane API:
-
Install the Data Plane API package. This will upgrade the existing installation. Note that the following examples install version 2.9. You can specify a different package name if you want to install a different version (
hapee-extras-dataplaneapi27
for version 2.7, for example).nixsudo apt-get install hapee-extras-dataplaneapi29nixsudo apt-get install hapee-extras-dataplaneapi29nixsudo yum install hapee-extras-dataplaneapi29 --allowerasingnixsudo yum install hapee-extras-dataplaneapi29 --allowerasingnixsudo zypper install hapee-extras-dataplaneapi29nixsudo zypper install hapee-extras-dataplaneapi29nixsudo pkg install hapee-extras-dataplaneapi29nixsudo pkg install hapee-extras-dataplaneapi29Install in an air-gapped environment
Note: If your installation of HAProxy Enterprise and HAProxy Data Plane API is in an air-gapped environment, follow these instructions for upgrade:
-
Download the latest version of the Data Plane API package from the HAProxy Enterprise respository. Replace
<HAPROXY ENTERPRISE KEY>
with your HAProxy Enterprise license key in the URL below to access the repository.nixhttps://www.haproxy.com/download/hapee/key/<HAPROXY ENTERPRISE KEY>/extras/nixhttps://www.haproxy.com/download/hapee/key/<HAPROXY ENTERPRISE KEY>/extras/Navigate to the directory for your operating system. The Data Plane API package (
.deb
for Debian/Ubuntu or.rpm
for RHEL) will be located at/<arch>/pool
inside that directory. -
Install the Data Plane API package. This will upgrade the existing installation.
nixsudo dpkg -i --force-depends <PACKAGE NAME>.debnixsudo dpkg -i --force-depends <PACKAGE NAME>.debnixsudo rpm -Uvh --nodeps <PACKAGE NAME>.rpmnixsudo rpm -Uvh --nodeps <PACKAGE NAME>.rpm
-
-
Reload the systemd file and restart the service:
nixsudo systemctl daemon-reloadsudo systemctl restart hapee-extras-dataplaneapinixsudo systemctl daemon-reloadsudo systemctl restart hapee-extras-dataplaneapi -
As of version 2.8, your Data Plane API configuration file should be in the
.yml
format. You can convert your Data Plane API configuration file in.hcl
format to.yml
format by installing and running thehapee-extras-hclconverter
utility.
Convert HCL configuration file to YAML Jump to heading
As of version 2.8, your Data Plane API configuration file should be in the YAML format. To convert your HCL Data Plane API configuration file to YAML:
-
Install the
hapee-extras-hclconverter
utility.nixsudo apt install hapee-extras-hclconverternixsudo apt install hapee-extras-hclconverternixsudo yum install hapee-extras-hclconverternixsudo yum install hapee-extras-hclconverternixsudo zypper install hapee-extras-hclconverternixsudo zypper install hapee-extras-hclconverternixsudo pkg install hapee-extras-hclconverternixsudo pkg install hapee-extras-hclconverterInstall in an air-gapped environment
If your installation of HAProxy Enterprise and HAProxy Data Plane API is in an air-gapped environment, follow these instructions for installing the
hapee-extras-hclconverter
utility:-
Download the latest version of the
hapee-extras-hclconverter
utility package from the HAProxy Enterprise respository. Replace<HAPROXY ENTERPRISE KEY>
with your HAProxy Enterprise license key in the URL below to access the repository.nixhttps://www.haproxy.com/download/hapee/key/<HAPROXY ENTERPRISE KEY>/extras/nixhttps://www.haproxy.com/download/hapee/key/<HAPROXY ENTERPRISE KEY>/extras/Navigate to the directory for your operating system. The
hapee-extras-hclconverter
utility package (.deb
for Debian/Ubuntu or.rpm
for RHEL) will be located at/<arch>/pool
inside that directory. -
Install the
hapee-extras-hclconverter
utility.nixsudo dpkg -i --force-depends <PACKAGE NAME>.debnixsudo dpkg -i --force-depends <PACKAGE NAME>.debnixsudo rpm -ivh --nodeps <PACKAGE NAME>.rpmnixsudo rpm -ivh --nodeps <PACKAGE NAME>.rpm
-
-
Run the
hapee-extras-hclconverter
. It takes the following arguments in this order:- the path of your existing Data Plane API configuration file in
.hcl
format - the path for the new configuration file in
.yml
format
Most likely, the new configuration file will reside in the same directory as the old configuration file.
nixsudo /opt/hapee-extras/bin/hcl-converter /etc/hapee-extras/dataplaneapi.hcl /etc/hapee-extras/dataplaneapi.ymlnixsudo /opt/hapee-extras/bin/hcl-converter /etc/hapee-extras/dataplaneapi.hcl /etc/hapee-extras/dataplaneapi.ymloutputtextInput file: /etc/hapee-extras/dataplaneapi.hclOutput file: /etc/hapee-extras/dataplaneapi.ymloutputtextInput file: /etc/hapee-extras/dataplaneapi.hclOutput file: /etc/hapee-extras/dataplaneapi.ymlnixsudo /opt/hapee-extras/bin/hcl-converter /etc/hapee-extras/dataplaneapi.hcl.rpmsave /etc/hapee-extras/dataplaneapi.ymlnixsudo /opt/hapee-extras/bin/hcl-converter /etc/hapee-extras/dataplaneapi.hcl.rpmsave /etc/hapee-extras/dataplaneapi.ymloutputtextInput file: /etc/hapee-extras/dataplaneapi.hcl.rpmsaveOutput file: /etc/hapee-extras/dataplaneapi.ymloutputtextInput file: /etc/hapee-extras/dataplaneapi.hcl.rpmsaveOutput file: /etc/hapee-extras/dataplaneapi.yml - the path of your existing Data Plane API configuration file in
Do you have any suggestions on how we can improve the content of this page?