salt.states.win_path

Manage the Windows System PATH

salt.states.win_path.absent(name)

Remove the directory from the SYSTEM path

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

Position where the directory should be placed in the PATH. This is 0-indexed, so 0 means to prepend at the very start of the PATH.

Note

If the index is not specified, and the directory needs to be added to the PATH, then the directory will be appended to the PATH, and this state will not enforce its location within the PATH.

Examples:

'C:\python27':
  win_path.exists

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

'C:\mystuff':
  win_path.exists:
    - index: -1