salt icon indicating copy to clipboard operation
salt copied to clipboard

improve state docs wrt high/lowstate

Open iluminite opened this issue 13 years ago • 5 comments

learning salt, and focusing on config managment, you will led to state.highstate rather quickly.

while not covered in the states tutorial [1], lowstate is mentioned in the API reference [2], though there is no distinction made between them or helpful overview of why there is more than one. in fact, a lot of the details here are really helpful for debugging states but a mention somewhere in the walkthrough or states tutorial would make this more clear to new users. I'm not meaning to focus on this any more than another topic, but this is something I ran into and thought it could be helpful to bring to light.

[1] https://salt.readthedocs.org/en/v0.13.1/topics/tutorials/states_pt1.html#install-the-package [2] https://salt.readthedocs.org/en/latest/ref/modules/all/salt.modules.state.html

iluminite avatar Mar 09 '13 20:03 iluminite

That's a very valid point!

UtahDave avatar Mar 10 '13 05:03 UtahDave

Indeed. I initially thought that lowstate would undo the things done by calling state.highstate. Now I think it's the result of evaluating the sls files that is passed to some function to actually apply them. It's quite helpful in finding problems in your sls. I still have no clue why it's called lowstate, maybe some computer science term that I'm missing.

dimasmjunior avatar Aug 18 '13 20:08 dimasmjunior

I agree with @dimasmjunior. I didn't think it would undo the state but the relation between a high state and a low state was really not clear to me.

From an end user perspective I think it would make sense to just call it a "state" period.

holmboe avatar Aug 19 '13 07:08 holmboe

Refs #12446.

whiteinge avatar May 01 '14 17:05 whiteinge

We've got improved docs here: https://docs.saltstack.com/en/latest/ref/states/layers.html https://docs.saltstack.com/en/latest/ref/states/compiler_ordering.html

UtahDave avatar May 17 '17 22:05 UtahDave