-
Notifications
You must be signed in to change notification settings - Fork 296
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
First-run of state fails on arch due to missing keys #139
Comments
@stooj, could you check if you moved the following part in config.sls to the end of the file.
that way the ssh_host_keys are generated before the config file is placed... |
@stooj Did you try setting (Another way would be to start & stop the server if no host key file is present, but I'm very reluctant to start a not configured service.) |
Sorry for the delay, I was away. I will give this a try over the weekend. |
I take long weekends, apparently. @alxwr I tried adding those keys to my pillar data, and that solved the issue. 👍 Sorry it took so long to get back to you; I let this slip by. |
@stooj don't be sorry. I take looooog weekends to. :-) (Paid word does not always coincide with FLOSS work.) |
On Arch, the hostkeys are generated the first time the service is started. However, sshd_config fails because the keys don't exist yet, so the service can't be started.
A workaround is to start the service manually, then apply the highstate.
The text was updated successfully, but these errors were encountered: