-
Notifications
You must be signed in to change notification settings - Fork 35
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 to use/depend on this formula #34
Comments
Forgot to add, I have tried to follow: https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#adding-a-formula-directory-manually git clone to setup:
and restart salt master. Still getting the following error:
which (as mentioned above) seems to be b/c it can't access https://github.com/salt-formulas/salt-formula-jenkins/blob/master/_modules/jenkins_common.py#L140 |
Anyone, ideas? |
Hello, you can use these scripts to bootstrap salt master and install formulas: These scripts supports both package-based and git-based installation. |
Thank you kindly, I'll check that out. Really I would prefer use git, but it doesn't seem like projects are good about bumping versions. Also I was doing researching I can across: "We strongly recommend forking a formula repository" Which was pretty shocking, I consider that an Anti-Pattern! Which probably mainly exists b/c of improper versioning. B/c of this I was going to follow their recommendation of forking (or cloning) even though doing so pains me. |
It isn't documented in kitchen-salt, but you can just add a branch and name a commit or a tag and still use the public repo. Agree this is an anti-pattern - I'm still new to salt but formula dependency management is not a strong suite, they have no equivalent of puppet's librarian that i'm aware of (http://librarian-puppet.com/). SPM seems to be upcoming? https://docs.saltstack.com/en/latest/topics/spm/ |
SPM could be an option one day. For production use, we are building debian packages: https://launchpad.net/~salt-formulas/+archive/ubuntu/ppa |
I was able to successfully use this repo with .kitchen.yml:
Since the dependencies is using a git repo for https://github.com/salt-formulas/salt-formula-jenkins everything seems to work. When I looked up how to use dependencies on salt master I came across:
https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
which says "We strongly recommend forking a formula repository into your own GitHub account to avoid unexpected changes to your infrastructure." I tried to clone that down into my own folder structure but I can't get things to work... b/c everything is in a sub-directory so I had to change formulas to include 'jenkins.jenkins.master', this hack got me most the way but it can't leverage the module: https://github.com/salt-formulas/salt-formula-jenkins/blob/master/_modules/jenkins_common.py#L140
This is causing pillar data for encrypted password to not be set and formula blows up.
Can someone point me in the right direction for salt best practice on config/how to clone public repos down and leverage them in my own custom Salt formulas.
I know this isn't necessarily an issue with this repo, but hoping I can get some guidance.
Thanks in advance for any help
The text was updated successfully, but these errors were encountered: