saltstack-formulas / users-formula

Configure users via pillar
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
99 stars 361 forks source link

Provide a home_prefix pillar that is used as prefix for home location #163

Open arthurzenika opened 6 years ago

arthurzenika commented 6 years ago

It would be nice to be able to, instead of configuring home (with a duplicated login info), to have a home_prefix pillar that is used instead of the default value "/home"

0xf10e commented 6 years ago

I think there was some discussion about formula-level configuration via pillar-data somewhere. I think we ended up with pillar[xyz_formula:option] or something.

Following that pattern we could just use pillar[users_formula:home_prefix] for your idea.