22.27.122. salt.states.win_path

Manage the Windows System PATH

salt.states.win_path.absent(name)

Remove the directory from the SYSTEM path

index: where the directory should be placed in the PATH (default: 0)

Example:

'C:\sysinternals':
  win_path.absent
salt.states.win_path.exists(name, index=None)

Add the directory to the system PATH at index location

index: where the directory should be placed in the PATH (default: None) [Note: Providing no index will append directory to PATH and will not enforce its location within the PATH.]

Example:

'C:\python27':
  win_path.exists

'C:\sysinternals':
  win_path.exists:
    index: 0

Docs for previous releases are available on salt.rtfd.org.

Latest Salt release: 2014.1.13

Try the shiny new release candidate of Salt, v2014.7.0rc6! More info here.

Previous topic

22.27.121. salt.states.win_network

Next topic

22.27.123. salt.states.win_servermanager

SaltStack News

Upcoming SaltStack events, webinars and local meet ups and user groups.