Provisioning templates

Hello! I am brand new to foreman and while reading the documentation on templates and writing templates here:

https://projects.theforeman.org/projects/foreman/wiki/TemplateWriting

I see that you can refer to parameters on an existing host when creating a template. My question is, why would somebody want to refer to parameters on a hosts operating system that hasn’t been installed yet? For example @osver. Is this to reconfigure a hosts OS? If so, is that a common use case? I was under the impression that kickstart files were for the first installation of an operating system.

Hi @collin

Welcome! We’re glad to have you here!

I’m hoping that someone else will step in and explain the @osver example for you, but in the meantime if you’re looking to get set up with provisioning in Foreman, take a look at this provisioning guide:

https://docs.theforeman.org/master/Provisioning_Guide/index-foreman.html#provisioning-introduction

Any other questions, feel free to ask.

1 Like