Adding a Pulsar Instance
It is pretty easy to deploy Pulsar to a Linux machine (maybe to Windows as well, but we did not try that yet) using Ansible playbook.
note
If you are wanting to add an ORC instance, then please use the monorepo to create your VM before proceeding with the steps below.
Steps
The steps to install to a Machine are:
- Make sure there is a user named cloud on the Machine. This user needs to
- have sudo rights (without password, e.g. add
cloud ALL=(ALL) NOPASSWD: ALL
line to the sudoers file), - have public ssh key added to the authorized_keys file on the Machine.
Copy it from an existing machine or generate using the private key:
ssh-keygen -y -f ssh-key > ssh-key.pub
. The private key is here.
One can also use some other username and key pair, but then the Ansible notebook/GitLab jobs should be modified accordingly.
- Add this Machine to the hosts file. There are multiple host groups, add it to the relevant ones.
- Play the notebook. It should install necessary packages, services and configuration. Check for errors. If this is some specific OS version, one might need to modify Ansible roles that give errors. Make sure Pulsar and remote data broker run and can connect to RabbitMQ and Calvera
- Add new destination to Calvera config.
- Add Machine to the list of remote resources and to the system tests