Page MenuHomeDevCentral

Use creates parameter instead of unless: test -f
ClosedPublic

Authored by dereckson on Apr 27 2017, 22:04.
Tags
None
Referenced Files
F55999712: D973.id.diff
Mon, Nov 2, 01:20
F55999024: D973.id2486.diff
Mon, Nov 2, 01:14
F55986533: D973.id2487.diff
Sun, Nov 1, 23:21
F55907530: D973.diff
Sun, Nov 1, 10:52
Unknown Object (File)
Tue, Oct 27, 14:58
Unknown Object (File)
Fri, Oct 23, 10:39
Unknown Object (File)
Wed, Oct 21, 06:50
Unknown Object (File)
Wed, Oct 21, 02:44
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 Not Applicable
Unit
Tests Not Applicable

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.