I am running Foreman 1.16 and building some simple CentOS hosts. One of our requirements is that the service users added during kickstart are static. During our kickstart we add http, ntp and several others. Those packages create the user the fly with available ids. I’d like to be able to pre-configure some users before the
%packages section is run to ensure that the users already exist and so we know for certain what user ids/group ids they will have.
The idea I’ve been floating is to do something like this placed into the “Kickstart default” template:
echo <%= snippet 'default_passwd' %> > /etc/passwd echo <%= snippet 'default_group' %> > /etc/group echo <%= snippet 'default_shadow' %> > /etc/shadow
But unfortunately I’ve not been able to figure out how to get this in there outside of
%post which… at that point the packages have been installed and would not work as we need.
Any suggestions? Is this even possible?