Project

General

Profile

Actions

Feature #1361

closed

Allow subnet information to be accessed from provisioning templates & add gateway, dns to subnets

Added by Trey Dockendorf over 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Category:
Unattended installations
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I've attached a patch that does two things.

  1. Add 2 new fields to the Subnets form. Gateway and DNS
  2. Allow subnet items (gateway, dns, mask) to be used in provisioning templates.

This has been tested using Foreman-0.4.

I'm still very new to Ruby so these code changes may not adhere to coding best practices for Ruby.

The primary use case this was created for is to allow for a static IP to be assigned to a new host on install while booting it using DHCP.

An example of how to use

network --bootproto static --hostname <%= @host.name %> --ip=<%= @host.ip %> \
--netmask=<%= subnet[:mask] %> --gateway=<%= subnet[:gateway] %> --nameserver=<%= subnet[:dns] %>

Files


Related issues 3 (0 open3 closed)

Related to Foreman - Feature #1354: Add vlan id and default gateway to subnet configurationResolved11/24/2011Actions
Related to Foreman - Bug #1432: subnet gateway infos only saved when fill gateway and dns fieldsClosedFlorian Koch01/05/2012Actions
Has duplicate Foreman - Feature #1557: Add more information for static ip configurationDuplicate03/28/2012Actions
Actions

Also available in: Atom PDF