I want to move $HOME of user postgres from /var/lib
to /home
via SaltStack.
Here are the steps which happen before:
- postgres RPM gets installed
- $HOME is /var/lib
- Database gets initialized
In this case a imperative way (tell tool to do X) would be easier than the declarative way (tell tool that you want the result which looks like X).
At least this would be easier for me, but I guess SaltStack has a hidden feature which I just don't know up to now.
There is a state user.present but I guess it does not move the home directory from one location to the next.