Upgrade with playbooks#
Important
This page describes steps for upgrading existing installations.
For instructions to perform new installations,
see New install with playbooks instead.
Upgrading from CentOS 7/RHEL 7
If you are installing or upgrading EcelcticIQ Intelligence Center on managed on older operating systems (e.g. CentOS 7, RHEL 7), you must upgrade the operating system to Rocky Linux 8 or RHEL 8 before following the instructions here.
See:
This section contains instructions for running the playbooks to upgrade EclecticIQ Intelligence Center.
Supported: Upgrade EclecticIQ Intelligence Center 2.14 to 3.1
If you are running an EclecticIQ Intelligence Center version older than 2.14, you must upgrade to 2.14 before following instructions here. See Upgrade EclecticIQ Intelligence Center (2.x only)
Requirements#
To upgrade EclecticIQ Intelligence Center using these playbooks, fulfill these requirements.
Control node:
You must have an existing
.envrc,ansible.cfg, and an inventory file appropriate for your deployment.Follow the instructions in Prepare nodes to reconstruct these files if needed.
Managed nodes:
Must run one of these supported operating systems:
Red Hat Enterprise Linux 8
Rocky Linux 8
Fulfill requirements stated in Prepare nodes
Update .envrc#
You should have an existing .envrc file from a previous installation.
If you do not, follow instructions in Prepare nodes to reconstruct one.
Update this .envrc file to set the target
EclecticIQ Intelligence Center version to install:
# Recommend that you generate passwords with the below command:
# printf '~^'; cat /dev/urandom | LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
# Password requirements: at least 10 char with on uppercase, one lowercase, one number and 1 symbol
# https://docs.eclecticiq.com/install-configure-upgrade/eclecticiq-intelligence-center-on-centos/install-the-intelligence-center-on-centos/before-you-start-centos#BeforeyoustartCentOS-id11Usernameandpassword
export EIQ_IC_VERSION='3.1'
export EIQ_IC_API_VERSION='3.1.*'
After setting these values, make sure to reload your .envrc file:
source .envrc
Back up existing configuration files#
Remove Neo4j#
If upgrading from EclecticIQ Intelligence Center 2.14, you may need to remove Neo4j from an existing host.
To do this:
Edit
inventories/ic-remove-neo4j.yml.This is a separate inventory file for the
pb-remove_neo4j.ymlplaybook.Set
neo4j-node-01.ansible_hostto the network address of the host to remove Neo4j from.From the control node, run the
pb-remove_neo4j.ymlplaybook with the above inventory file:ansible-playbook -i inventories/ic-remove-neo4j.yml pb-remove_neo4j.yml
Run the upgrade#
After completing all the above sections, run the playbooks.
You must run the playbooks in the sequence specified.
Tip
A playbook run is successful if has 0 failed tasks.
The following is an example PLAY RECAP from a
successful (failed=0) single node playbook run:
PLAY RECAP ******************************************************************************************
application-node : ok=64 changed=44 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0
localhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
On the control node,
run playbooks with the ansible-playbook command
with these command line options:
ansible-playbook --tags=all,logstash -i inventories/<inventory_file.yml> <pb-playbook.yml>
Option |
Description |
|---|---|
|
(Optional) Use |
|
Specify the path to an inventory file configured for your deployment. Inventory files are described in Prepare nodes. |
|
This is the playbook to run. |
Run the playbooks in this sequence:
Prepare nodes:
pb-pre_requisites.ymlansible-playbook --tags=all,logstash -i inventories/<inventory_file.yml> pb-pre_requisites.yml
Install components:
pb-install_intelligence_center.ymlansible-playbook --tags=all,logstash -i inventories/<inventory_file.yml> pb-install_intelligence_center.yml
Make sure services have started:
pb-start_services.ymlansible-playbook --tags=all,logstash -i inventories/<inventory_file.yml> pb-start_services.yml
Run database migrations:
pb-migrate_databases.ymlansible-playbook --tags=all,logstash -i inventories/<inventory_file.yml> pb-migrate_databases.yml
Start services:
pb-start_services.ymlansible-playbook --tags=all,logstash -i inventories/<inventory_file.yml> pb-start_services.yml
Run the post-installation playbook:
pb-post.ymlansible-playbook --tags=all,logstash -i inventories/<inventory_file.yml> pb-post.yml
Reboot your managed node(s) after
pb-post.ymlcompletes.
Important
If you are adding Elasticsearch or PostgreSQL nodes to your deployment, you must:
Migrate your existing inventory file to an inventory file for your deployment size.
Run the playbooks for initializing Elasticsearch and PostgreSQL clusters, as instructed in New install with playbooks.
(Recommended) Save and version control playbook configuration#
Save and version control your playbook configuration. Playbook configurations document your deployment, and can be used to administer and upgrade your EclecticIQ Intelligence Center instance.
Do not store credentials in version control.