Table of Contents maxLevel 2
...
Before running the setup_deploy.yml
playbook, modify the hosts
file in the deploy/playbook
directory with the host names and IP addresses of the edge nodes in your cluster. Also update the entry for the master node's host if it is not the same as the deploy node.
all:
hosts:
children:
deploy:
hosts:
localhost:
master:
hosts:
localhost: # IP address or hostname of master node
edge_nodes:
hosts:
edge1jet01: # Name of first edge node
ip: 192.168.2.2127 # IP address of first edge node
lora_id: 1
edge2jet02: # Name of second edge node
ip: 192.168.2.2529 # IP address of second edge node
lora_id: 4
vars:
ansible_user: edge
ansible_ssh_private_key_file: ~/.ssh/edge
In addition, if the master node is not the same as the deploy node, remove the line connection: local
wherever it follows hosts: master
in the playbooks in deploy/playbook
, and change the line localhost:
wherever it flollows master:
in the hosts
in deploy/playbook
to IP address or hostname of the master node.
In the file master.yml
in the deploy/playbook/group_vars/all
directory, set the master_ip
value to the IP address of the master node. Note that this is required even if the master node is the same as the deploy node.
...
- CPS: Cyber-Physical System
- MQTT: A lightweight, publish-subscribe network protocol designed for connecting remote devices, especially when there are bandwidth constraints. (MQTT is not an acronym.)