-
Install Ansible
brew install ansible
-
Install VMWare Fusion You can download VMWare Fusion free Edition for learning purpose. You need to register your account to get the License
-
Install Vagrant
brew install --cask vagrant vagrant --version
Install VMWare Utility
brew install vagrant-vmware-utility
You need to setup vagrant plugin vmware
vagrant plugin install vagrant-vmware-desktop vagrant plugin list
ssh-keygen -f ./vagrant/key/vagrant-key
For this example we used vagrant and use plugin vmware-desktop
since we setup the node in Apple Mac M1
# Up the node server
vagrant up
# See the status of the server
vagrant status
# SSH to the node server
vagrant ssh app-1
vagrant ssh app-2
vagrant prometheus
vagrant grafana
vagrant grafana-loki
ssh-add ./vagrant/key/vagrant-key
ssh [email protected]
ssh [email protected]
ssh [email protected]
ssh [email protected]
ssh [email protected]
# remove all node
vagrant destroy
cd ansible
ansible-playbook -i inventory playbooks/node-exporter.yaml
ansible-playbook -i inventory playbooks/prometheus-server.yaml
ansible-playbook -i inventory playbooks/grafana-loki.yaml
ansible-playbook -i inventory playbooks/promtail.yaml
ansible-playbook -i inventory playbooks/grafana.yaml