- Install Python 3.8
- Install ansible
- Install sshpass
All mata elang components are already included inside roles
folder that described below:
hadoop
folder contain the automation folder for implementing the Mata Elang Hadoop component.kafka_docker
folder contain the automation folder for implementing the Mata Elang Kafka component.opensearch_docker
folder contain the automation folder for implementing the Mata Elang OpenSearch component.snort_sensor
folder contain the automation folder for implementing the Mata Elang Sensor Snort component.spark_docker
folder contain the automation folder for implementing the Mata Elang Spark and Kaspacore component.
1. Edit inventory
file.
copy the `inventory.example` file to `inventory`. This file define the grouping for each hostname that going to installed with ansible automation. Each group need to defined the username, password, and the root password for the SSH process in ansible
This is an example line for ansible inventory file:
(e.g. 192.168.56.104) ansible_ssh_user=<your_username> ansible_ssh_password=<your_password> ansible_become_password=<your_become_password>
2. Edit default variable
Open `defaults` -> 'main.yml' file and edit necessary variable for each component that necessary. The current configuration for variables are default configuration.
3. Start Ansible Process
Open the terminal with this current project directory and start the ansible using this command:
ansible-playbook -i inventory site.yaml