salt icon indicating copy to clipboard operation
salt copied to clipboard

change or provide additional name to saltenv

Open TreverN opened this issue 9 years ago • 2 comments

Description of Issue/Question

saltenv should be stateenv

As salt has evolved and we now have pillar environments (for example), it becomes apparent that saltenv is very badly named.

When working with Salt environments for pillar and states, the continued existence of "saltenv" name leads to ongoing confusion and misdirects newcomers.

saltenv could remain indefinitely or become deprecated, but we should have stateenv and documentation should use that name.

See for example (from https://docs.saltstack.com/en/latest/topics/pillar/):

salt '*' state.apply mystates saltenv=dev pillarenv=dev

That is semantically incorrect, it should be:

salt '*' state.apply mystates stateenv=dev pillarenv=dev

Setup

N/A

Steps to Reproduce Issue

N/A

Versions Report

Current to infinity

TreverN avatar Nov 09 '17 20:11 TreverN

ping @saltstack/team-state any opinions here on renaming saltenv?

Ch3LL avatar Nov 09 '17 21:11 Ch3LL

I am going to push back based on the fact that we already spend 2 years renaming it from env to saltenv. I think that having it stay saltenv and pillarenv is fine, also based on the fact that the default location for states is /srv/salt and for pillar is /srv/pillar so I think that we are good for now here.

thatch45 avatar Nov 16 '17 22:11 thatch45