summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorLucas Alvares Gomes <lucasagomes@gmail.com>2015-01-28 16:20:06 +0000
committerLucas Alvares Gomes <lucasagomes@gmail.com>2015-01-29 14:58:22 +0000
commitedf532db91bb7ac40e9a8382cf9fbedeeac814e4 (patch)
treea2833dd0cc2cd660ec38182dcf7b09b5d310640f /etc
parent22ce79f6ba193a69f8ec8790f2ddadf5c4a98b27 (diff)
downloadironic-edf532db91bb7ac40e9a8382cf9fbedeeac814e4.tar.gz
Add logic to store the config drive passed by Nova
This patch is extending the /nodes/<uuid>/provision API endpoint to accept an optional "configdrive" parameter as part of the request BODY. If present, Ironic will get the config drive and store it either directly on the Node's instance_info field or it will upload it to Swift first, generates a temp URL and then store it on Node's instance_info to be processed later after the deployment started. Two new config options were added to the conductor: * configdrive_use_swift: Whether to upload the config drive to Swift ot not. Defaults to False * configdrive_swift_container: The name of the container in Swift to store the config drive. Defaults to ironic_configdrive_container Implements: blueprint expose-configdrive Change-Id: Icc39af604af6439e85f14d1beb2c19b10e983635
Diffstat (limited to 'etc')
-rw-r--r--etc/ironic/ironic.conf.sample16
1 files changed, 16 insertions, 0 deletions
diff --git a/etc/ironic/ironic.conf.sample b/etc/ironic/ironic.conf.sample
index 6f2302524..975833a36 100644
--- a/etc/ironic/ironic.conf.sample
+++ b/etc/ironic/ironic.conf.sample
@@ -581,6 +581,13 @@
# the check entirely. (integer value)
#sync_local_state_interval=180
+# Whether upload the config drive to Swift. (boolean value)
+#configdrive_use_swift=false
+
+# The Swift config drive container to store data. (string
+# value)
+#configdrive_swift_container=ironic_configdrive_container
+
[console]
@@ -817,6 +824,15 @@
# (string value)
#swift_container=glance
+# This should match a config by the same name in the Glance
+# configuration file. When set to 0, a single-tenant store
+# will only use one container to store all images. When set to
+# an integer value between 1 and 32, a single-tenant store
+# will use multiple containers to store images, and this value
+# will determine how many containers are created. (integer
+# value)
+#swift_store_multiple_containers_seed=0
+
#
# Options defined in ironic.common.image_service