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

How would I or is there a process for migrating a Salt master to a new server? #41713

Closed
gzcwnk opened this issue Jun 13, 2017 · 3 comments
Closed
Labels
Question The issue is more of a question rather than a bug or a feature request stale
Milestone

Comments

@gzcwnk
Copy link

gzcwnk commented Jun 13, 2017

Description of Issue/Question

I need to move my existing salt-master off a RHEL6 server to a new RHEL7 server. If possible I'd like to keep the keys and any other config etc so ideally I want to be able to simply change the DNS record and have clients connect tot the new server and work OK. is this possible? and if so how?

@Ch3LL
Copy link
Contributor

Ch3LL commented Jun 13, 2017

You will need to rsync files in /etc/salt/ and of course any other files you want to migrate for your salt instance such as your pillar and file roots to the new server. I did find this issue here #10032 that will impact your planned migration so you will need to workaround this. I am guessing you could possibly schedule a minion restart with cron? So for example run a state that adds a cron job or uses the salt scheduler that will restart the minion service in 30-60 minutes, migrate the server and wait for minions to start coming online. There is also another workaround posted #10032 (comment) but some users reported that it did not work.

@Ch3LL Ch3LL added the Question The issue is more of a question rather than a bug or a feature request label Jun 13, 2017
@Ch3LL Ch3LL added this to the Approved milestone Jun 13, 2017
@gzcwnk
Copy link
Author

gzcwnk commented Jul 27, 2017

thanks, seems salt needs a new version of python 2.7 which is breaking RHEL6 satellite badly as it uses python 2.6.6 so this needs to happen :(

@stale
Copy link

stale bot commented Nov 19, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

@stale stale bot added the stale label Nov 19, 2018
@stale stale bot closed this as completed Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question The issue is more of a question rather than a bug or a feature request stale
Projects
None yet
Development

No branches or pull requests

2 participants