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

ansible: optimize preseed of gateway /etc/hosts file #66

Open
herzogf opened this issue Mar 8, 2020 · 0 comments
Open

ansible: optimize preseed of gateway /etc/hosts file #66

herzogf opened this issue Mar 8, 2020 · 0 comments
Milestone

Comments

@herzogf
Copy link
Owner

herzogf commented Mar 8, 2020

Right now we're using an ansible loop with lineinfile to preseed the /etc/hosts file on the gateway with all possible node hostnames, by default from k8s-node-100 to k8s-node-200. This is awfully slow :-( Every lineinfile run does a full "login - become - python lineinfile" cycle on the gateway.

Thus we need to optimize this step in the ansible gateway role, e.g. by using a custom shell script to do the preseed as one task/step.

@herzogf herzogf added this to the 0.1 - MVP milestone Mar 8, 2020
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

1 participant