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:
Ben Nemec 2015-02-10 18:00:12 -06:00
parent dc96d3412f
commit 7ce47e69e7
3 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,3 @@
{{#os_disk_config}}
{{.}}
{{/os_disk_config}}

View 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

View File

@ -0,0 +1,2 @@
jq:
python-blivet: