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

Support Deployment to any Location #74

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

FoxAmes
Copy link

@FoxAmes FoxAmes commented Oct 22, 2021

What does this PR do?

Implements usage of the tpldir SLS variable to make formula function independent of absolute path on the salt fileserver

Motivation

Our salt fileserver has a pretty strict layout, and all formulas must go to salt://formulas/.... This formula currently has some hard-references that expect it to exist at salt://datadog, which meant it wouldn't work out-of-the-box for us. Rather than update the hardcoded paths, I decided to implement this in a way that would work regardless of where it's deployed.

Additional Notes

Thanks for taking the time to put this together and publish it! Having even a starting point is great. Would love to see it updated to support Windows installs, I may take a crack at that later as time allows.

Describe your test plan

I tested this locally in my lab, applying to a Ubuntu 20.04 machine from both salt://formulas/datadog and salt://datadog. In both cases it worked for me, but having a test in CI to make sure it works from multiple paths would ensure this behavior remains. I'm not familiar enough with CircleCI to be comfortable implementing it without any conversation.

@FoxAmes FoxAmes requested a review from a team as a code owner October 22, 2021 20:21
@FoxAmes FoxAmes changed the title Feat/local paths Support Deployment to Any Location Oct 22, 2021
@FoxAmes FoxAmes changed the title Support Deployment to Any Location Support Deployment to any Location Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant