Hi all,
I was curious if anyone would be willing to share any of their cool
dynamic partition templates used in Foreman.
I'm in the process of using Foreman to provision the first of our
Proliant DL380 servers, and thought I'd see if anyone is doing any cool
partition templates for the RedHat Family.
The a couple of cool things I am interested in are:
determine something about the hardware - whether to use cciss or sd
set logical volume or partition size to a calculated amount - like
lv_swap to some fraction of physical RAM
choose the device to partition based on some logic
I have yet to have reason to dig into these partition templates, as we have
not provisioned anything but VMs to date.
Sean M. Alderman
Senior Engineer, UDit Systems Integration and Engineering
University of Dayton salderman1@udayton.edu
"We are not some casual and meaningless product of evolution. Each of us
is the result of a thought of God. Each of us is willed. Each of us is
loved. Each of us is necessary." - BXVI
While this could be technically possible to find some interesting facts
when using Discovery plugin, Anaconda does not send us much detailed
information. Therefore you do not have much data for dynamic generation.
Autodiscovered hosts do have facts uploaded including amount of RAM, but
I am not sure if it survives provisioning process.
You could put some host parameters manually tho. These should be
available in the template, e.g. amount of RAM, cciss/sd. Then you can
code some logic in the ERB. Again, this cannot be automated AFAIK.
Go ahead and try Discovery plugin and render a fact in a template. This
could work. If not, you can raise a feature request to keep the facts
during provisioning.
···
On Thu, Feb 27, 2014 at 12:31:58PM -0500, Sean Alderman wrote:
> The a couple of cool things I am interested in are:
> * determine something about the hardware - whether to use cciss or sd
> * set logical volume or partition size to a calculated amount - like
> lv_swap to some fraction of physical RAM
> * choose the device to partition based on some logic