Automated installation¶
IRIS+ Professional can be installed using Ansible to automate the deployment process - This guide provides step-by-step instructions.
Tip
It is recommended to have a high speed network connection, as multiple GBs of data will be downloaded during installation.
It is recommended to visit the hardware and software prerequisites page to learn more about deployment options and hardware requirements.
Docker credentials required
You will need valid Docker credentials to proceed with the installation. Make sure you have your Docker username and password ready, as they will be required in later steps. If you do not have these credentials, please contact sales@irisity.com to obtain them before continuing.
Installation via Ansible involves two node types:
-
Control Node: The control node is where you install Ansible to manage other machines. It runs the playbooks as well as the coordinate operations.
-
Target Nodes: The machines Ansible manages. They receive and execute tasks sent by the control node.
You must have SSH capability from the Control node to the Target nodes.
Info
A single machine can function as both the control node and a target node in an Ansible setup. This means you can install Ansible on this machine and include it in the inventory, allowing it to manage itself along with other nodes. This configuration enables the machine to execute Ansible tasks on itself as well as on other target systems.
Prerequisites on the target node(s)¶
The system can be installed on any OS that supports docker, however the recommended OS is Ubuntu 22.04. The steps described below assume an Ubuntu 22.04 installation.
The installation will require you to have sudo rights.
1. System update¶
Make sure your system is up-to-date.
2. Add Docker GPG key and repository¶
3. Add NVIDIA Docker GPG key and repository¶
4. Add the NVIDIA container toolkit repository¶
5. Install required dependencies¶
Installation steps on the control node¶
1. Install Ansible¶
Note that the installer requires Ansible to be on the control node.
2. Download and extract the Ansible installer¶
3. Set up the Ansible inventory¶
Info
If your control node and target node are both on a single machine, 127.0.0.1
can be used for ansible_host
.
Set up the Ansible inventory file under inventories/all.yaml
.
all:
hosts:
YOUR_TARGET_NODE_NAME_HERE:
ansible_host: # TARGET_NODE_IP_HERE
ansible_port: # TARGET_NODE_PORT_HERE
-
Replace
YOUR_TARGET_NODE_NAME_HERE
with the name of your target node. -
ansible_host
: The IP address or domain name of the target node. -
ansible_port
: The SSH port number of the target node.
Tip
You can check connectivity via the nc
command:
nc -z TARGET_NODE_IP_HERE TARGET_NODE_PORT_HERE && echo "Connectivity succeeded!" || echo "Connectivity failed!"
4. Set up the Target node specific variables¶
Create a directory for node/host specific variables in the document root of the installer and copy the example variables:
mkdir -p host_vars/YOUR_TARGET_NODE_NAME_HERE && \
cp examples/vars.yaml host_vars/YOUR_TARGET_NODE_NAME_HERE/
Fill in host_vars/YOUR_TARGET_NODE_NAME_HERE/vars.yaml
:
- The
docker_username
anddocker_password
variables.
Contact sales@irisity.com for docker credentials.
init_sysadmin_email
: The initial system administrator email address.init_sysadmin_pwd
: The initial system administrator password.
Tip
You can specify the root folder for video storage and the message broker data directory in host_vars/YOUR_TARGET_NODE_NAME_HERE/vars.yaml
using the variables below:
-
volume_videostorage_folder
(example:volume_videostorage_folder: '/var/data/vs'
) -
volume_kafka_folder
(example:volume_kafka_folder: '/var/data/kafka'
)
HTTPS settings¶
You can enable HTTPS connectivity using the https_enabled
variable in host_vars/YOUR_TARGET_NODE_NAME_HERE/vars.yaml
.
If you need HTTPS connectivity, select the 'certificate_type':
-
In the case of 'official_ca', our reverse proxy will attempt to generate a Let's Encrypt signed certificate.
-
It is required to fill in the domain variable as well.
-
An automatic renew process included.
-
The domain's A record must be a public IPv4 address that points to your target node.
-
The domain must be publicly accessible due to HTTP-01 validation for certificate generation and automatic renewal process.
-
In the case of 'self_signed', our reverse proxy will attempt to generate a self signed certificate.
-
It is required to fill in the domain variable as well.
-
An automatic renew process included.
-
In the case of 'custom', you can provide your own certificate and private key pair.
-
It is not required to fill in the domain variable.
-
Create a directory relative to the installer's docroot:
-
Place the following in the created directory:
-
certificate.crt which represents the certificate.
-
certificate.key which represents the private key.
-
5. Start the installation¶
Start the Ansible playbook for installation:
You will be prompted for your SSH and sudo passwords for authenticating the target node.
Tip
If you can authenticate via an SSH private key, you can leave the value of SSH password
blank. If there is no password requirement for sudo commands, you can leave the value of BECOME password
blank as well.
Note that installation may take up to 30 minutes.