Actions
Feature #13847
openAuto-provisioning custom scripts for NIC configurations
Description
Auto-provisioning rules are currently only associated with hostgroups, but these do not define NIC configurations. When user want to create a bond or change interface configuration (e.g. move to different subnet or/and boot mode), this is currently not possible.
Current idea is to provide a piece of script (ERB) that is executed during auto-provisioning and allows complex setups. We could reuse our template rendering and safe_mode code in order to associate a "template" that does something with the host. Something like:
<% provision = @host.interfaces.provision.first slave1 = @host.interfaces.where(:provision => false).first slave2 = @host.interfaces.where(:provision => false).second @host.interfaces.create_bond(slave1, slave2) @host.name = "my_very_own_name_" + rand(12345) @host.subnet = Subnet.find("192.168.77.0") if provision.mac ~= /^99:/ @host.save! %>
Updated by Lukas Zapletal about 9 years ago
- Related to Refactor #13848: Refactor Discovery STI to Facets added
Updated by Lukas Zapletal about 9 years ago
- Related to Refactor #14035: Redesign discovered host added
Updated by Lukas Zapletal over 8 years ago
- Subject changed from Support NIC configurations in auto-provisioning to Auto-provisioning custom scripts for NIC configurations
- Description updated (diff)
Updated by Lukas Zapletal over 8 years ago
- Assignee set to Lukas Zapletal
- Priority changed from Normal to High
Actions