Currently Ironic installation script leaves authenticaiton
strategy in its default value which is noauth. This is not
relevant for the most of development and testing environments.
This patch sets authentication strategy for Ironic to keystone
and specifies the path to the policy file.
Closes-bug: #1233612
Change-Id: Idacbda05663e7ef949cbce0dbdf28eaa36b6a1a9
| ... | ... |
@@ -79,6 +79,8 @@ function configure_ironic() {
|
| 79 | 79 |
# configure_ironic_api() - Is used by configure_ironic(). Performs |
| 80 | 80 |
# API specific configuration. |
| 81 | 81 |
function configure_ironic_api() {
|
| 82 |
+ iniset $IRONIC_CONF_FILE DEFAULT auth_strategy keystone |
|
| 83 |
+ iniset $IRONIC_CONF_FILE DEFAULT policy_file $IRONIC_POLICY_JSON |
|
| 82 | 84 |
iniset $IRONIC_CONF_FILE keystone_authtoken auth_host $KEYSTONE_AUTH_HOST |
| 83 | 85 |
iniset $IRONIC_CONF_FILE keystone_authtoken auth_port $KEYSTONE_AUTH_PORT |
| 84 | 86 |
iniset $IRONIC_CONF_FILE keystone_authtoken auth_protocol $KEYSTONE_AUTH_PROTOCOL |