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

Make formula relative to actual directory by using 'tpldir' #184

Merged
merged 1 commit into from
Jun 18, 2018

Conversation

mkotsbak
Copy link
Contributor

No description provided.

@mkotsbak mkotsbak force-pushed the fix_relative_references branch 2 times, most recently from 7bbf0ec to eae88ae Compare May 18, 2018 17:53
@mkotsbak mkotsbak force-pushed the fix_relative_references branch from eae88ae to 4a8a9bf Compare May 18, 2018 17:58
@aboe76 aboe76 merged commit 2537583 into saltstack-formulas:master Jun 18, 2018
@aboe76
Copy link
Member

aboe76 commented Jun 18, 2018

@noelmcloughlin thanks for reviewing, @mkotsbak thanks for this pr.

@noelmcloughlin
Copy link
Member

Thanks guys. @mkotsbak thanks for the contribution.

Could you raise another PR to complete same changes for content in files/ directory:

ls
client.cnf		my-include.cnf		mysql-clients.cnf	usr-my.cnf
galera.cnf		my.cnf			server.cnf

Because these are not SLS files the 'tpldir' variable will be undefined, so you'll have to pass as context variable to each file.managed state - like this for example. Thanks

    context:
       tpldir: {{ tpldir }}

@mkotsbak
Copy link
Contributor Author

Sure, nice workaround. Sent PR: #187

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.

3 participants