Nova: Enable service token

Now service token is required so that nova can update volume
attachments in cinder.

Resolves: rhbz#2228733
Change-Id: I2e873f82245ff4b1e64f2d3fbb2589e03abda8d9
This commit is contained in:
Takashi Kajinami 2024-01-23 14:33:17 +09:00
parent 6b2c4c9899
commit 953e020ed1
2 changed files with 9 additions and 0 deletions

View File

@ -7,6 +7,7 @@ class packstack::keystone::nova ()
class { 'nova::keystone::auth':
roles => ['admin', 'service'],
region => lookup('CONFIG_KEYSTONE_REGION'),
password => lookup('CONFIG_NOVA_KS_PW'),
public_url => $nova_url,

View File

@ -84,4 +84,12 @@ class packstack::nova ()
key => $key,
}
$admin_password = lookup('CONFIG_NOVA_KS_PW')
class { 'nova::keystone::service_user':
send_service_user_token => true,
password => $admin_password,
auth_url => lookup('CONFIG_KEYSTONE_ADMIN_URL'),
}
}