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

Salt Plugin: seed_master uses wrong directory #3492

Closed
claytondaley opened this issue Apr 17, 2014 · 1 comment
Closed

Salt Plugin: seed_master uses wrong directory #3492

claytondaley opened this issue Apr 17, 2014 · 1 comment

Comments

@claytondaley
Copy link

Out of the box, the salt plugin doesn't appear to properly seed minion keys on the master when the seed_master option is used (the root cause of this issue).

After some digging, I have determined that the seed_master section of Vagrant\embedded\gems\gems\vagrant-1.5.2\plugins\provisioners\salt\provisioner.rb is the culprit:

  • For example, changing seed_dir = "/tmp/minion-seed-keys" to seed_dir = "/etc/salt/pki/master/minions" eliminates the issue.
  • Alternatively, the salty-vagrant version (which still has another bug) first uploads the files to a tmp directory and then moves them to the correct final location.

Obviously, I'm not picky which route is used to solve the problem, but newbies to Salt and Vagrant together will rejoice at avoiding a bug in a basic feature that is often used in examples.

@claytondaley claytondaley changed the title Salty Plugin: seed_master uses wrong directory Salt Plugin: seed_master uses wrong directory Apr 17, 2014
@claytondaley
Copy link
Author

Rookie mistake. I finally figured out that the -k option should be copying files from the temp directory into the final directory and confirmed that the bootstrap script is getting the right values... and then trying to move an incorrect filename. Will follow up there.

@ghost ghost locked and limited conversation to collaborators Apr 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant