Erb templating in partition tables

Hi,

In a kickstart install I try to achieve partitioning like this:

…snip
part /boot --size=256
part pv.2 --size=0 --grow
volgroup vg_<%= @host.name -%> pv.2
logvol / --name=wurzel --vgname=vg_<%= @host.name -%> --size=3192
logvol /var --name=var --vgname=vg<%= @host.name -%> --size=1024 –
grow --maxsize=2048
logvol swap --fstype swap --name=swap --vgname=vg_<%= @host.name -%> –
size=2048
snap…

It appears to me that partition tables are included literally but not
processed by erb ?
If I put this in a provision template then @host.name is correctly
substituted but not if I put this in a partition table. Should
partition tables be processed by erb ? Do you know about "tricks" to
achieve what I am trying to do ?

– Markus

> Hi,
>
> In a kickstart install I try to achieve partitioning like this:
>
> …snip
> part /boot --size=256
> part pv.2 --size=0 --grow
> volgroup vg_<%= @host.name -%> pv.2
> logvol / --name=wurzel --vgname=vg_<%= @host.name -%> --size=3192
> logvol /var --name=var --vgname=vg<%= @host.name -%> --size=1024 –
> grow --maxsize=2048
> logvol swap --fstype swap --name=swap --vgname=vg_<%= @host.name -%> –
> size=2048
> snap…
>
> It appears to me that partition tables are included literally but not
> processed by erb ?
>
You are correct, it would probably be a easy hack to add, feel free to open
a feature request.

Ohad

··· On Wed, Jul 13, 2011 at 2:40 PM, Markus Falb wrote:

If I put this in a provision template then @host.name is correctly
substituted but not if I put this in a partition table. Should
partition tables be processed by erb ? Do you know about “tricks” to
achieve what I am trying to do ?

– Markus


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

– Thanks, Markus

PGP.sig (243 Bytes)

··· On 14.Jul.2011, at 08:46, Ohad Levy wrote: > On Wed, Jul 13, 2011 at 2:40 PM, Markus Falb wrote: > ... > It appears to me that partition tables are included literally but not > processed by erb ? > You are correct, it would probably be a easy hack to add, feel free to open a feature request.