Do not hardcode nova user/group in each manifests

... but refer to nova::params so that we can centralize definition of
nova user and group on host OS.

Change-Id: Ic9027ebbc79702d5405448bfbd5bc4cd869db3fd
This commit is contained in:
Takashi Kajinami 2021-03-05 22:21:31 +09:00
parent 8ab07ef0a5
commit 4324be05d6
1 changed files with 4 additions and 4 deletions

View File

@ -628,8 +628,8 @@ Use nova::compute::block_device_allocate_retries_interval instead')
file { '/var/lib/nova/.ssh':
ensure => directory,
mode => '0700',
owner => 'nova',
group => 'nova',
owner => $::nova::params::nova_user,
group => $::nova::params::nova_group,
require => Anchor['nova::config::begin'],
before => Anchor['nova::config::end'],
}
@ -668,8 +668,8 @@ but should be one of: ssh-rsa, ssh-dsa, ssh-ecdsa.")
file { $nova_private_key_file:
content => $nova_private_key[key],
mode => '0600',
owner => 'nova',
group => 'nova',
owner => $::nova::params::nova_user,
group => $::nova::params::nova_group,
require => File['/var/lib/nova/.ssh'],
}
}