Foreman Inital Provisioning via script rather than gui


Very new To foreman and Hammer…

I’m trying to script the inital provisoning set-up stage and not able to find the right commands. I can script the DHCP stage of this as its given to you but would like to script the inital part where you enter the name etc…

Plus trying to add a subnet via hammer, trying to use the following
hammer subnet create etc… is boot-mode correct to use here as need this set to static.

Final part is the installation media via the medium option in hammer is there an option to set up the OS family as there is on the gui…

Many thanks,


All should be possible, please paste the commands in doubt verbosely, use --help option to get help. Everything is documented there.