summaryrefslogtreecommitdiff
path: root/ironic/common
diff options
context:
space:
mode:
authorJulia Kreger <juliaashleykreger@gmail.com>2022-08-16 14:16:48 -0700
committerJulia Kreger <juliaashleykreger@gmail.com>2022-08-17 12:57:57 -0700
commit5c1dd47e6ce16616268abd016da58ea80136cbfd (patch)
tree43fc2e2329bf6091717936342e36a7d6fb96ae90 /ironic/common
parentc861423eb5acf9a1d8f3704bd4552e798731166e (diff)
downloadironic-5c1dd47e6ce16616268abd016da58ea80136cbfd.tar.gz
Add kickstart template 'url' option
To use a source as a path with the anaconda deployment interface, the kickstart template needs to utilize a 'url' command as opposed to a second stage ramdisk. This allows a seamless automatic switch without a customized kickstart template to just use a URL. Change-Id: I31febd4e131ed0cc1b37adb9318be8cb17136a68
Diffstat (limited to 'ironic/common')
-rw-r--r--ironic/common/pxe_utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ironic/common/pxe_utils.py b/ironic/common/pxe_utils.py
index 40ad98217..1849aaa7d 100644
--- a/ironic/common/pxe_utils.py
+++ b/ironic/common/pxe_utils.py
@@ -1001,8 +1001,10 @@ def build_kickstart_config_options(task):
manager_utils.add_secret_token(node, pregenerated=True)
node.save()
params['liveimg_url'] = node.instance_info['image_url']
+ if node.driver_internal_info.get('is_source_a_path', False):
+ # Record a value so it matches as the template opts in.
+ params['is_source_a_path'] = 'true'
params['agent_token'] = node.driver_internal_info['agent_secret_token']
-
heartbeat_url = '%s/v1/heartbeat/%s' % (
deploy_utils.get_ironic_api_url().rstrip('/'),
node.uuid