-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat(cron.env): add env option in cron-formula #12
Conversation
Updated the PR title, see https://github.com/saltstack-formulas/.github/blob/master/CONTRIBUTING.rst |
@SynPrime nice work, would you mind adding a test for this to the https://github.com/saltstack-formulas/cron-formula/blob/master/test/salt/pillar/cron.sls |
@SynPrime Please have a look at the lint issues:
It's useful to have If you need any info about this or the InSpec testing, please don't hesitate to ask here or in Slack. |
@SynPrime Note that we also have |
@SynPrime An example of the tests running (2 present and 1 absent): That's based on the test pillar of: env:
env1:
type: present
name: PATH
value: /usr/local/bin:/usr/bin:/bin:/usr/games
user: root
env2:
type: present
name: MAILTO
value: [email protected]
user: root
env3:
type: absent
name: LANG
value: en_GB.UTF-8
user: root |
@SynPrime No problem, welcome and thanks for the contribution.
If you have any queries, feel free to ask here (or on Slack). |
@SynPrime You don't need to close the PR each time you want to amend the commits. Just make the changes and push them, the PR will be updated as well. To minimise issues in your fork, it's best to avoid using the |
@myii Sorry, I pushed with --force to my repo. I re-opened. Thanks for your advice. |
@SynPrime No problem, that's why it's best to avoid the |
@SynPrime Since you've reopened this, let's continue here! |
Okay :-) |
Thanks for the contribution, @SynPrime! It's been merged. I'll push another PR to add the |
🎉 This PR is included in version 0.3.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
@SynPrime nice, thank you, hopefully we see more of those! |
Add the opportunity to add a ENV-variable in cron forumla.
PR progress checklist (to be filled in by reviewers)
What type of PR is this?
Primary type
[build]
Changes related to the build system[chore]
Changes to the build process or auxiliary tools and libraries such as documentation generation[ci]
Changes to the continuous integration configuration[feat]
A new feature[fix]
A bug fix[perf]
A code change that improves performance[refactor]
A code change that neither fixes a bug nor adds a feature[revert]
A change used to revert a previous commit[style]
Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)Secondary type
[docs]
Documentation changes[test]
Adding missing or correcting existing testsDoes this PR introduce a
BREAKING CHANGE
?No.
Related issues and/or pull requests
Describe the changes you're proposing
Pillar / config required to test the proposed changes
Debug log showing how the proposed changes work
Documentation checklist
README
(e.g.Available states
).pillar.example
.Testing checklist
state_top
).Additional context