Project

General

Profile

Feature #2241

@host.interfaces not populated in templates

Added by Vincent Janelle over 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Unattended installations
Target version:
-
Difficulty:
easy
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
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

Related to Foreman - Feature #2240: Full Multiple Interface SupportClosed2013-02-20

History

#1 Updated by Benjamin Papillon over 5 years ago

  • Related to Feature #2240: Full Multiple Interface Support added

#2 Updated by Benjamin Papillon over 5 years ago

  • Description updated (diff)
  • Status changed from New to Feedback

Hi,

The wiki page that explain templates variables has been updated with the information you requested. Do you still have the issue with recent foreman versions?

Regards

#3 Updated by Vincent Janelle over 5 years ago

Unfortunately, I no longer use the foreman and can't verify this without setting up the whole stack.

#4 Updated by Benjamin Papillon over 5 years ago

  • Status changed from Feedback to Resolved

Thanks for the quick answer. I'm closing this feature. Feel free to reopen it if you work with foreman again and you still encounter the issue :)

Regards

Also available in: Atom PDF