Actions
Feature #1361
closedAllow subnet information to be accessed from provisioning templates & add gateway, dns to subnets
Status:
Closed
Priority:
Normal
Assignee:
Category:
Unattended installations
Target version:
Description
I've attached a patch that does two things.
- Add 2 new fields to the Subnets form. Gateway and DNS
- 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
Updated by Ohad Levy over 13 years ago
- Assignee changed from Ohad Levy to Trey Dockendorf
- Target version set to 1.0
Updated by Trey Dockendorf over 13 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
Actions