summaryrefslogtreecommitdiff
path: root/ironic/drivers/generic.py
diff options
context:
space:
mode:
authorArun S A G <sagarun@gmail.com>2021-01-23 11:56:51 -0800
committerArun S A G <sagarun@gmail.com>2021-03-19 09:39:50 -0700
commit26040d4563ca683319d56aaecef478df6ee5390f (patch)
tree08155e27b96d12520a4057c644879a75ffb0d617 /ironic/drivers/generic.py
parent121bc5a4c2ddb6a542323e55c593817df5805126 (diff)
downloadironic-26040d4563ca683319d56aaecef478df6ee5390f.tar.gz
Add anaconda configuration and template
This change adds 'anaconda' group and 'default_ks_template' configuration option under that group to ironic configuration file. Along with this change a new boot_option named 'kickstart' is added to identify anaconda kickstart deploy in the boot interface. deploy_utils.get_boot_option method is modified to check if node.deploy_interface is set to 'anaconda' and return boot_option 'kickstart'. This change also validates whether required parameters are set when the boot_option on the node is set to 'kickstart'. When boot_option is 'kickstart' we also validate if the glance image source has 'squashfs_id' property associated with it. Change-Id: I2ef7c33e2e63e6d08c084b4c5dbd77a44ddd2d14 Story: 2007839 Task: 41675
Diffstat (limited to 'ironic/drivers/generic.py')
-rw-r--r--ironic/drivers/generic.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ironic/drivers/generic.py b/ironic/drivers/generic.py
index 956119df8..e8b359f18 100644
--- a/ironic/drivers/generic.py
+++ b/ironic/drivers/generic.py
@@ -50,7 +50,8 @@ class GenericHardware(hardware_type.AbstractHardwareType):
def supported_deploy_interfaces(self):
"""List of supported deploy interfaces."""
return [agent.AgentDeploy, iscsi_deploy.ISCSIDeploy,
- ansible_deploy.AnsibleDeploy, pxe.PXERamdiskDeploy]
+ ansible_deploy.AnsibleDeploy, pxe.PXERamdiskDeploy,
+ pxe.PXEAnacondaDeploy]
@property
def supported_inspect_interfaces(self):