Configuring servers for Tungsten purposes using Ansible. For more information read our blog article Automated server preparation using Ansible.
-
Clone repository
git clone https://github.com/continuent/continuent-ansible.git -
Define inventory with hostnames or IP addresses of your hosts
$ cat myhosts.txt my-centos-host ansible_user=centos ansible_ssh_private_key=~/.ssh/id_rsa_centos my-ubuntu-host ansible_user=ubuntu ansible_ssh_private_key=~/.ssh/id_rsa_ubuntu my-amazon-host ansible_user=ec2-user ansible_ssh_private_key=~/.ssh/id_rsa_amazon -
Replace
roles/prerequsites/files/id_rsa.tungstenandroles/prerequsites/files/id_rsa.tungsten.pubfiles with valid keys -
Update
roles/prerequsites/files/tungsten.inifile -
Copy
{{ tungsten_version }}.tar.gzinto this directory (variabletungsten_versionyou will use in next step) -
Run playbook
ansible-playbook -i path/to/myhosts.txt -e "tungsten_version=tungsten-clustering-6.1.3-37" playbook.ymlalternatively you can overwrite default passwords
ansible-playbook -i path/to/myhosts.txt -e "tungsten_version=tungsten-clustering-6.1.3-37 passwd_mysql_tungsten=password passwd_mysql_root=Secret-4-root passwd_mysql_app_user=secret" playbook.yml
- Amazon Linux 2
- CentOS 7
- Debian GNU/Linux 10 (Buster)
- Ubuntu 18.04 (Bionic)
- SUSE Linux Enterprise Server 15
- RHEL 7