Install dependant collections:
ansible-galaxy collection install -U shubhamtatvamasi.magma
Copy your public SSH key to the host:
ssh-keygen -R 192.168.5.70
ssh-copy-id ubuntu@192.168.5.70
Update your values in hosts.yml
file before running the playbook.
Deploy Magma orchestrator:
ansible-playbook deploy-orc8r.yml
Note: After deployment is done it takes around 10 minutes to start all the magma services.
Create new user:
ORC_POD=$(kubectl -n orc8r get pod -l app.kubernetes.io/component=orchestrator -o jsonpath='{.items[0].metadata.name}')
kubectl -n orc8r exec -it ${ORC_POD} -- envdir /var/opt/magma/envdir /var/opt/magma/bin/accessc \
add-existing -admin -cert /var/opt/magma/certs/admin_operator.pem admin_operator
NMS_POD=$(kubectl -n orc8r get pod -l app.kubernetes.io/component=magmalte -o jsonpath='{.items[0].metadata.name}')
kubectl -n orc8r exec -it ${NMS_POD} -- yarn setAdminPassword magma-test admin admin
kubectl -n orc8r exec -it ${NMS_POD} -- yarn setAdminPassword master admin admin
Install Ansible - Ubuntu 20.04 LTS:
sudo apt remove ansible
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository --yes --update ppa:ansible/ansible
sudo apt install ansible -y
Install Ansible - macOS:
brew install ansible