Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding nodes to static inventory #171

Open
mustafayalniz opened this issue Sep 4, 2019 · 1 comment
Open

Adding nodes to static inventory #171

mustafayalniz opened this issue Sep 4, 2019 · 1 comment

Comments

@mustafayalniz
Copy link

Hi,

Is there any suggested way of adding nodes to cluster using ansible playbook?

Thanks,
Mustafa

@thepg
Copy link

thepg commented Oct 16, 2019

Hello @mustafayalniz
I did not understand your question well
but if u mean just to add new hosts to your cluster you can add it like this :

[hdp-master]
master01 ansible_host=192.168.0.2 ansible_user=root ansible_ssh_private_key_file="/.ssh/id_rsa" rack=/default-rack
master02 ansible_host=192.168.0.2 ansible_user=root ansible_ssh_private_key_file="/.ssh/id_rsa" rack=/default-rack 

[hdp-slave]
slave01 ansible_host=192.168.0.3 ansible_user=root ansible_ssh_private_key_file="/.ssh/id_rsa" rack=/default-rack
slave02 ansible_host=192.168.0.4 ansible_user=root ansible_ssh_private_key_file="/.ssh/id_rsa" rack=/default-rack
slave03 ansible_host=192.168.0.4 ansible_user=root ansible_ssh_private_key_file="~/.ssh/id_rsa" rack=/default-rack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants