Additions to os-disk-config element
Add os-*-config scripts to allow os-disk-config to actually run at deploy time on an instance. Note that it currently fails due to python-blivet not being found at build time, but I think that's an environment issue, not a problem with the element.
This commit is contained in:
parent
dc96d3412f
commit
7ce47e69e7
@ -0,0 +1,3 @@
|
||||
{{#os_disk_config}}
|
||||
{{.}}
|
||||
{{/os_disk_config}}
|
9
elements/os-disk-config/os-refresh-config/configure.d/20-os-disk-config
Executable file
9
elements/os-disk-config/os-refresh-config/configure.d/20-os-disk-config
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
set -o pipefail
|
||||
|
||||
DISK_CONFIG=$(os-apply-config --key os_disk_config --type raw --key-default '')
|
||||
if [ -n "$DISK_CONFIG" ]; then
|
||||
os-disk-config -c /etc/os-disk-config/config.json -v
|
||||
fi
|
2
elements/os-disk-config/package-installs.yaml
Normal file
2
elements/os-disk-config/package-installs.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
jq:
|
||||
python-blivet:
|
Loading…
Reference in New Issue
Block a user