diff options
author | Pavlo Shchelokovskyy <shchelokovskyy@gmail.com> | 2017-12-05 18:10:52 +0200 |
---|---|---|
committer | Pavlo Shchelokovskyy <shchelokovskyy@gmail.com> | 2017-12-20 10:06:11 +0000 |
commit | ce7119eaf3e32ac7d27df11c7f0a1f65159d255f (patch) | |
tree | 87842aaad17ec090143f6b1d3574dff6f56ea4bd /etc | |
parent | 2924c3efb6f6003dd49951dd78bdb44bae2ee367 (diff) | |
download | ironic-ce7119eaf3e32ac7d27df11c7f0a1f65159d255f.tar.gz |
[ansible] add defaults to config
In a homogeneous hardware deployment that uses the same ramdisk for all
nodes, and possibly the same playbooks for actions with ansible deploy
interface, it is benefitial to make defaults of various `ansible_`
driver_info fields to be configurable via ironic configuration file
to simplify node enrollment.
This patch also deprecates `ansible_deploy_username` and
`ansible_deploy_key_file` options in node's driver_info in favor of
`ansible_username` and `ansible_key_file` respectively.
Change-Id: Ib198c07c1d414c0d78950e5d98a5176e12a7df13
Closes-Bug: #1736409
Diffstat (limited to 'etc')
-rw-r--r-- | etc/ironic/ironic.conf.sample | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/etc/ironic/ironic.conf.sample b/etc/ironic/ironic.conf.sample index 0d54a145c..e839b9396 100644 --- a/etc/ironic/ironic.conf.sample +++ b/etc/ironic/ironic.conf.sample @@ -891,6 +891,47 @@ # value) #image_store_keyfile = <None> +# Name of the user to use for Ansible when connecting to the +# ramdisk over SSH. It may be overriden by per-node +# 'ansible_username' option in node's 'driver_info' field. +# (string value) +#default_username = ansible + +# Absolute path to the private SSH key file to use by Ansible +# by default when connecting to the ramdisk over SSH. Default +# is to use default SSH keys configured for the user running +# the ironic-conductor service. Private keys with password +# must be pre-loaded into 'ssh-agent'. It may be overriden by +# per-node 'ansible_key_file' option in node's 'driver_info' +# field. (string value) +#default_key_file = <None> + +# Path (relative to $playbooks_path or absolute) to the +# default playbook used for deployment. It may be overriden by +# per-node 'ansible_deploy_playbook' option in node's +# 'driver_info' field. (string value) +#default_deploy_playbook = deploy.yaml + +# Path (relative to $playbooks_path or absolute) to the +# default playbook used for graceful in-band shutdown of the +# node. It may be overriden by per-node +# 'ansible_shutdown_playbook' option in node's 'driver_info' +# field. (string value) +#default_shutdown_playbook = shutdown.yaml + +# Path (relative to $playbooks_path or absolute) to the +# default playbook used for node cleaning. It may be overriden +# by per-node 'ansible_clean_playbook' option in node's +# 'driver_info' field. (string value) +#default_clean_playbook = clean.yaml + +# Path (relative to $playbooks_path or absolute) to the +# default auxiliary cleaning steps file used during the node +# cleaning. It may be overriden by per-node +# 'ansible_clean_steps_config' option in node's 'driver_info' +# field. (string value) +#default_clean_steps_config = clean_steps.yaml + [api] |