Merge "Support [DEFAULT] host option"
This commit is contained in:
commit
b864357485
@ -29,6 +29,10 @@
|
||||
# (optional) The state of the package
|
||||
# Defaults to 'present'
|
||||
#
|
||||
# [*host*]
|
||||
# (optional) Name of this node.
|
||||
# Defaults to $facts['os_service_default'].
|
||||
#
|
||||
# [*my_ip*]
|
||||
# (optional) IP address of this host.
|
||||
# If unset, will determine the IP programmatically. If unable to do so, will use
|
||||
@ -219,6 +223,7 @@
|
||||
class ironic (
|
||||
Boolean $enabled = true,
|
||||
$package_ensure = 'present',
|
||||
$host = $facts['os_service_default'],
|
||||
$my_ip = $facts['os_service_default'],
|
||||
$my_ipv6 = $facts['os_service_default'],
|
||||
$auth_strategy = 'keystone',
|
||||
@ -284,6 +289,7 @@ class ironic (
|
||||
|
||||
ironic_config {
|
||||
'DEFAULT/auth_strategy': value => $auth_strategy;
|
||||
'DEFAULT/host': value => $host;
|
||||
'DEFAULT/my_ip': value => $my_ip;
|
||||
'DEFAULT/my_ipv6': value => $my_ipv6;
|
||||
'DEFAULT/default_resource_class': value => $default_resource_class;
|
||||
|
4
releasenotes/notes/host-opt-df3665183e207085.yaml
Normal file
4
releasenotes/notes/host-opt-df3665183e207085.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
The new ``ironic::host`` parameter has been added.
|
@ -63,6 +63,7 @@ describe 'ironic' do
|
||||
|
||||
it 'configures ironic.conf' do
|
||||
is_expected.to contain_ironic_config('DEFAULT/auth_strategy').with_value('keystone')
|
||||
is_expected.to contain_ironic_config('DEFAULT/host').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_ironic_config('DEFAULT/my_ip').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_ironic_config('DEFAULT/my_ipv6').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_ironic_config('DEFAULT/default_resource_class').with_value('<SERVICE DEFAULT>')
|
||||
@ -109,6 +110,7 @@ describe 'ironic' do
|
||||
context 'with parameters' do
|
||||
let :params do
|
||||
{
|
||||
:host => 'host.example.com',
|
||||
:my_ip => '127.0.0.1',
|
||||
:my_ipv6 => '::1',
|
||||
:default_resource_class => 'myclass',
|
||||
@ -146,6 +148,7 @@ describe 'ironic' do
|
||||
|
||||
it 'configures ironic.conf' do
|
||||
is_expected.to contain_ironic_config('DEFAULT/auth_strategy').with_value('keystone')
|
||||
is_expected.to contain_ironic_config('DEFAULT/host').with_value('host.example.com')
|
||||
is_expected.to contain_ironic_config('DEFAULT/my_ip').with_value('127.0.0.1')
|
||||
is_expected.to contain_ironic_config('DEFAULT/my_ipv6').with_value('::1')
|
||||
is_expected.to contain_ironic_config('DEFAULT/default_resource_class').with_value('myclass')
|
||||
|
Loading…
Reference in New Issue
Block a user