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

Migrate nodePrep and masterPrep to playbooks #17

Open
brusMX opened this issue Jul 25, 2018 · 5 comments
Open

Migrate nodePrep and masterPrep to playbooks #17

brusMX opened this issue Jul 25, 2018 · 5 comments
Assignees
Labels

Comments

@brusMX
Copy link
Collaborator

brusMX commented Jul 25, 2018

Let's try to do it all in Ansible Playbooks

@brusMX brusMX added the wip label Jul 25, 2018
@brusMX brusMX self-assigned this Jul 25, 2018
@brusMX
Copy link
Collaborator Author

brusMX commented Jul 25, 2018

Ok, I have migrated the nodePrep in commit Id 6562cb6 but the problem now is that I need to be able to deploy ansible scripts into the VMs. Which basically would mean that I need:

  1. Solve Issue Configure NAT Propely #11 so I can NAT and SSH into the master and so on, or
  2. Have the bastion node setup add_host bastion VM so ansible can use it #16 and add all the other VMs to some groups so I can run the playbooks on them.

@zikalino
Copy link
Owner

About #11 I asked @haroldwongms and he said that the plan is to remove NAT on purpose for security reasons.
Perhaps we should just enable NAT for bastion node?

Alternatively, bastion node could be in the same vnet as other nodes so we could just use local addresses without NAT.

Pls check this example:

This script is to create list of hosts dynamically:
https://github.com/Azure-Samples/ansible-playbooks/blob/master/vmss/get-hosts-tasks.yml

And this example is using it:

https://github.com/Azure-Samples/ansible-playbooks/blob/master/vmss/vmss-setup-deploy.yml

@zikalino
Copy link
Owner

actually entire VMSS sample may be useful:

https://github.com/Azure-Samples/ansible-playbooks/tree/master/vmss

Maybe as a next step we could use scaleset(s) to create nodes.

@zikalino
Copy link
Owner

I have created issue #19 and suggested the idea that we could have a separate script to prepare images. Then later we could just refer these images in create.yml so additional preparation step and NAT wouldn't be necessary.

@brusMX
Copy link
Collaborator Author

brusMX commented Jul 25, 2018

The only concern I have with VMSS is that there was an issue on provisioning disks. You could not select a single VM to deploy one disk, it was all VMs have a disk, or none.
I know the PG worked to alleviate this situation, but I don’t know if the work has been finished.
Now, maybe if we setup a GlusterFS cluster on the side, then this problem would be solved and the disk provisioning would be handled by Gluster.

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

No branches or pull requests

2 participants