Page MenuHomeDevCentral

Use creates parameter instead of unless: test -f
ClosedPublic

Authored by dereckson on Apr 27 2017, 22:04.
Tags
None
Referenced Files
F10016274: D973.id2487.diff
Tue, Jun 17, 17:03
F10003402: D973.id2486.diff
Tue, Jun 17, 12:49
F9989461: D973.diff
Tue, Jun 17, 08:11
Unknown Object (File)
Sun, Jun 15, 19:14
Unknown Object (File)
Sun, Jun 8, 04:46
Unknown Object (File)
Tue, Jun 3, 23:13
Unknown Object (File)
Sat, May 31, 01:26
Unknown Object (File)
Fri, May 30, 09:00
Subscribers
None

Details

Summary

2014.7.0 introduced a creates parameter to run only when the
a file doesn't exist.

Reference: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.cmd.html

Test Plan

Check reapply the state is no op

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
creates
Build Status
Buildable 1517
Build 1765: arc lint + arc unit

Event Timeline

Salt master
$ salt eglide state.apply roles/shellserver/userland-software/openssl-legacy

     Comment: /opt/openssl-legacy/bin/openssl exists
This revision is now accepted and ready to land.Apr 27 2017, 22:06
This revision was automatically updated to reflect the committed changes.