Project

General

Profile

Actions

Feature #2241

closed

@host.interfaces not populated in templates

Added by Vincent Janelle almost 12 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Unattended installations
Target version:
-
Difficulty:
easy
Triaged:
Fixed in Releases:
Found in Releases:

Description

It looks like @host.interfaces isn't allowed in the safe mode.

Also, the subnet information isn't stored with the interface, so it's not possible to retrieve it, even with safe_mode off.

Ideally, it'd be then possible to add

<% @host.interfaces.each do |int| >
network --bootproto=static --hostname=<
= int.name > --ip=<= int.ip > --netmask=<= int.subnet > --gateway=<= int.gateway >
<
end %>

to the kick start templates (or something along these lines that checks for dhcp, etc)


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #2240: Full Multiple Interface SupportClosed02/20/2013Actions
Actions

Also available in: Atom PDF