Page MenuHomeDevCentral

Use creates parameter instead of unless: test -f
ClosedPublic

Authored by dereckson on Apr 27 2017, 22:04.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jul 4, 07:53
Unknown Object (File)
Thu, Jul 3, 00:52
Unknown Object (File)
Wed, Jul 2, 07:22
Unknown Object (File)
Tue, Jul 1, 10:17
Unknown Object (File)
Mon, Jun 30, 05:12
Unknown Object (File)
Sat, Jun 28, 04:56
Unknown Object (File)
Thu, Jun 26, 13:51
Unknown Object (File)
Mon, Jun 23, 18:01
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.