ironic-discoverd-ramdisk element cleanup
- Properly rename files - Use new package-installs - Properly check for discoverd_callback_url option (and return backward compatibility) Change-Id: I2247047b9360945408e720329d5b134cfa384ae5
This commit is contained in:
parent
87b4bc7d51
commit
04a542134f
1
elements/ironic-discoverd-ramdisk/element-deps
Normal file
1
elements/ironic-discoverd-ramdisk/element-deps
Normal file
@ -0,0 +1 @@
|
||||
package-installs
|
@ -1,4 +1,15 @@
|
||||
readonly DISCOVERD_URL=$(get_kernel_parameter discoverd_callback_url)
|
||||
DISCOVERD_URL=$(get_kernel_parameter discoverd_callback_url)
|
||||
if [ -z "$DISCOVERD_URL" ]; then
|
||||
# Some old ramdisks are around
|
||||
DISCOVERD_URL=$(get_kernel_parameter ironic_callback_url)
|
||||
if [ -z "$DISCOVERD_URL" ]; then
|
||||
echo "No discoverd_callback_url supplied"
|
||||
troubleshoot
|
||||
else
|
||||
echo "WARNING: deprecated option ironic_callback_url"
|
||||
echo "WARNING: use discoverd_callback_url instead"
|
||||
fi
|
||||
fi
|
||||
|
||||
function request_curl(){
|
||||
HTTP_METHOD=$1
|
@ -1,6 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
install-packages util-linux
|
@ -1,6 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
install-packages curl
|
@ -1,6 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
install-packages dmidecode
|
@ -1,6 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
install-packages ipmitool
|
4
elements/ironic-discoverd-ramdisk/package-installs.yaml
Normal file
4
elements/ironic-discoverd-ramdisk/package-installs.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
curl:
|
||||
dmidecoded:
|
||||
ipmitool:
|
||||
util-linux:
|
Loading…
Reference in New Issue
Block a user