Drop redundant default for server_proxyclient_address options
These options default to 127.0.0.1, so we don't have to define explicit defaults in the module. Change-Id: Ic6074a8f652b71046a3dfc636e0b5c795cb7858c
This commit is contained in:
@@ -268,7 +268,7 @@ class nova::compute (
|
|||||||
$ensure_package = 'present',
|
$ensure_package = 'present',
|
||||||
Boolean $vnc_enabled = true,
|
Boolean $vnc_enabled = true,
|
||||||
Boolean $spice_enabled = false,
|
Boolean $spice_enabled = false,
|
||||||
$vncserver_proxyclient_address = '127.0.0.1',
|
$vncserver_proxyclient_address = $facts['os_service_default'],
|
||||||
$vncproxy_host = undef,
|
$vncproxy_host = undef,
|
||||||
$vncproxy_protocol = 'http',
|
$vncproxy_protocol = 'http',
|
||||||
$vncproxy_port = '6080',
|
$vncproxy_port = '6080',
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
# [*server_proxyclient_address*]
|
# [*server_proxyclient_address*]
|
||||||
# (optional) Management IP Address on which instance spiceservers will
|
# (optional) Management IP Address on which instance spiceservers will
|
||||||
# listen on the compute host.
|
# listen on the compute host.
|
||||||
# Defaults to '127.0.0.1'
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*proxy_host*]
|
# [*proxy_host*]
|
||||||
# (optional) Host for the html5 console proxy
|
# (optional) Host for the html5 console proxy
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
class nova::compute::spice(
|
class nova::compute::spice(
|
||||||
Boolean $agent_enabled = true,
|
Boolean $agent_enabled = true,
|
||||||
$server_listen = $facts['os_service_default'],
|
$server_listen = $facts['os_service_default'],
|
||||||
$server_proxyclient_address = '127.0.0.1',
|
$server_proxyclient_address = $facts['os_service_default'],
|
||||||
$proxy_host = undef,
|
$proxy_host = undef,
|
||||||
$proxy_protocol = 'http',
|
$proxy_protocol = 'http',
|
||||||
$proxy_port = '6082',
|
$proxy_port = '6082',
|
||||||
|
@@ -27,7 +27,7 @@ describe 'nova::compute' do
|
|||||||
it 'does not configure vncproxy base url in nova.conf' do
|
it 'does not configure vncproxy base url in nova.conf' do
|
||||||
is_expected.to contain_nova_config('vnc/enabled').with_value(true)
|
is_expected.to contain_nova_config('vnc/enabled').with_value(true)
|
||||||
is_expected.to_not contain_nova_config('vnc/novncproxy_base_url')
|
is_expected.to_not contain_nova_config('vnc/novncproxy_base_url')
|
||||||
is_expected.to contain_nova_config('vnc/server_proxyclient_address').with_value('127.0.0.1')
|
is_expected.to contain_nova_config('vnc/server_proxyclient_address').with_value('<SERVICE DEFAULT>')
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should have spice disabled' do
|
it 'should have spice disabled' do
|
||||||
@@ -136,7 +136,7 @@ describe 'nova::compute' do
|
|||||||
|
|
||||||
it 'configures vnc in nova.conf' do
|
it 'configures vnc in nova.conf' do
|
||||||
is_expected.to contain_nova_config('vnc/enabled').with_value(true)
|
is_expected.to contain_nova_config('vnc/enabled').with_value(true)
|
||||||
is_expected.to contain_nova_config('vnc/server_proxyclient_address').with_value('127.0.0.1')
|
is_expected.to contain_nova_config('vnc/server_proxyclient_address').with_value('<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_nova_config('vnc/novncproxy_base_url').with_value(
|
is_expected.to contain_nova_config('vnc/novncproxy_base_url').with_value(
|
||||||
'http://127.0.0.1:6080/vnc_auto.html'
|
'http://127.0.0.1:6080/vnc_auto.html'
|
||||||
)
|
)
|
||||||
|
@@ -3,7 +3,7 @@ require 'spec_helper'
|
|||||||
describe 'nova::compute::spice' do
|
describe 'nova::compute::spice' do
|
||||||
shared_examples 'nova::compute::spice' do
|
shared_examples 'nova::compute::spice' do
|
||||||
it { should contain_nova_config('spice/agent_enabled').with_value('true')}
|
it { should contain_nova_config('spice/agent_enabled').with_value('true')}
|
||||||
it { should contain_nova_config('spice/server_proxyclient_address').with_value('127.0.0.1')}
|
it { should contain_nova_config('spice/server_proxyclient_address').with_value('<SERVICE DEFAULT>')}
|
||||||
it { should contain_nova_config('spice/html5proxy_base_url').with_value('<SERVICE DEFAULT>')}
|
it { should contain_nova_config('spice/html5proxy_base_url').with_value('<SERVICE DEFAULT>')}
|
||||||
it { should contain_nova_config('spice/server_listen').with_value('<SERVICE DEFAULT>')}
|
it { should contain_nova_config('spice/server_listen').with_value('<SERVICE DEFAULT>')}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user