From fee9ff9c9d75de0666758ac360478c5a7a6f37d5 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Tue, 28 Apr 2020 11:22:38 +0200 Subject: [PATCH] ironic: handle Swift object storage Change-Id: I18f8855a758703968aba032add68add24b31f673 Closes-bug: #1875588 --- ansible/roles/ironic/templates/ironic.conf.j2 | 14 ++++++++++++++ .../notes/ironic-swift-f5ee8ee54ebcde08.yaml | 3 +++ 2 files changed, 17 insertions(+) create mode 100644 releasenotes/notes/ironic-swift-f5ee8ee54ebcde08.yaml diff --git a/ansible/roles/ironic/templates/ironic.conf.j2 b/ansible/roles/ironic/templates/ironic.conf.j2 index 531dede028..1a95cfd47e 100644 --- a/ansible/roles/ironic/templates/ironic.conf.j2 +++ b/ansible/roles/ironic/templates/ironic.conf.j2 @@ -127,6 +127,20 @@ valid_interfaces = internal cafile = {{ openstack_cacert }} {% endif %} +{% if enable_swift | bool %} +[swift] +auth_url = {{ keystone_admin_url }} +auth_type = password +project_domain_id = {{ default_project_domain_id }} +user_domain_id = {{ default_user_domain_id }} +project_name = service +username = {{ ironic_keystone_user }} +password = {{ ironic_keystone_password }} +region_name = {{ openstack_region_name }} +valid_interfaces = internal +cafile = {{ openstack_cacert }} +{% endif %} + [inspector] {% if enable_keystone | bool %} auth_url = {{ keystone_admin_url }} diff --git a/releasenotes/notes/ironic-swift-f5ee8ee54ebcde08.yaml b/releasenotes/notes/ironic-swift-f5ee8ee54ebcde08.yaml new file mode 100644 index 0000000000..ab1711aa6a --- /dev/null +++ b/releasenotes/notes/ironic-swift-f5ee8ee54ebcde08.yaml @@ -0,0 +1,3 @@ +--- +features: + - Add Object Storage service (Swift) support for Ironic.