From eab9c57e4d113cb8cc4e1409e86bcef870d8ac9d Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Mon, 27 Mar 2017 16:23:08 +0100 Subject: [PATCH] Add default values for inspector rule interpolation variables Without these values being set, viewing hostvars could fail due to undefined values. --- ansible/group_vars/all/inspector | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ansible/group_vars/all/inspector b/ansible/group_vars/all/inspector index bf51e2289..71d76756f 100644 --- a/ansible/group_vars/all/inspector +++ b/ansible/group_vars/all/inspector @@ -55,6 +55,12 @@ inspector_lldp_switch_port_interface: ############################################################################### # Ironic inspector introspection rules configuration. +# IPMI username referenced by inspector rule. +inspector_rule_var_ipmi_username: + +# IPMI password referenced by inspector rule. +inspector_rule_var_ipmi_password: + # Ironic inspector rule to set IPMI credentials. inspector_rule_ipmi_credentials: description: "Set IPMI driver_info if no credentials" @@ -71,6 +77,9 @@ inspector_rule_ipmi_credentials: path: "driver_info/ipmi_password" value: "{{ inspector_rule_var_ipmi_password }}" +# Deployment kernel referenced by inspector rule. +inspector_rule_var_deploy_kernel: + # Ironic inspector rule to set deployment kernel. inspector_rule_deploy_kernel: description: "Set deploy kernel" @@ -82,6 +91,9 @@ inspector_rule_deploy_kernel: path: "driver_info/deploy_kernel" value: "{{ inspector_rule_var_deploy_kernel }}" +# Deployment ramdisk referenced by inspector rule. +inspector_rule_var_deploy_ramdisk: + # Ironic inspector rule to set deployment ramdisk. inspector_rule_deploy_ramdisk: description: "Set deploy ramdisk" @@ -141,6 +153,10 @@ inspector_rule_set_pxe_interface_mac: path: "extra/pxe_interface_mac" value: "{data[boot_interface]}" +# Name of network interface to use for LLDP referenced by switch port +# description rule. +inspector_rule_var_lldp_switch_port_interface: + # Ironic inspector rule to set the node's name from an interface's LLDP switch # port description. inspector_rule_lldp_switch_port_desc_to_name: