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

Is it possible to provision with Saltstack in a masterless configuration? #5547

Closed
ghost opened this issue Mar 9, 2016 · 6 comments
Closed

Comments

@ghost
Copy link

ghost commented Mar 9, 2016

I managed to created a Digital Ocean droplet with Terraform, and now I would like to provision it with Salt, ideally in a masterless configuration using the same .sls files used to provision the development machine. With Vagrant this is rather trivial, with Terraform however it seems to be much less straightforward. Terraform's documentation regarding provisioners is mute on this subject. I couldn't find any reference on how to invoke Salt to provision an instance.

In Vagrant, it's simply a question of declaring the provisioner in the Vagrantfile, like this:

config.vm.provision :salt do |salt|
salt.minion_config = "salt/minion"
salt.run_highstate = true

And afterwards, it just a question of creating a state tree pointing to our state files, where we declare the packages we would like our machine to be provisioned with, the files that we would like to sync, etc. Is it even possible to do anything similar in Terraform?

@jen20
Copy link
Contributor

jen20 commented Mar 9, 2016

Hi @pierrebonbon! Currently there is no explicit support for Salt, or in fact for any configuration management tool other than Chef. However, you can probably make use of the file and remote-exec provisioner here to execute Salt as necessary - I'm not familiar enough with it to suggest the exact contents of the script though! A quick google suggests something like http://ahus1.github.io/saltconsul-examples/tutorial.html (untested and unverified) might be suitable. Thanks for opening the issue - please feel free to reopen if you have further questions on this!

@jen20 jen20 closed this as completed Mar 9, 2016
@ghost
Copy link
Author

ghost commented Mar 9, 2016

Hi @jen20, thank you for the reply and the link. Any chance that Terraform will offer explicit support for Salt in the near future?

@ghost
Copy link
Author

ghost commented Mar 14, 2016

solution here

@sevagh
Copy link
Contributor

sevagh commented May 21, 2017

Hello. As a heavy user of both Terraform and Salt I'd like to take a stab at writing and contributing a salt-masterless provisioner upstream.

Could I get some tips on how to proceed?

I have been looking at https://github.com/hashicorp/packer/tree/master/provisioner/salt-masterless for inspiration.

Is there a mailing list to discuss large PRs? Or should I go ahead and submit a PR when it's semi-functional?

@sevagh
Copy link
Contributor

sevagh commented May 21, 2017

#14720

@github-actions
Copy link

github-actions bot commented Jun 3, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants