Do not show diff of local_settings(.py)
... because the file contains a few sensitive values like SECRET_KEY. Closes-Bug: #1987015 Change-Id: Ie96eb626148214270c5a3a041087fcc679c127ce
This commit is contained in:
parent
14b45e9987
commit
a810ca2b4e
@ -768,11 +768,12 @@ and usage of a quoted value is deprecated.')
|
||||
}
|
||||
|
||||
concat { $::horizon::params::config_file:
|
||||
mode => '0640',
|
||||
owner => $::horizon::params::wsgi_user,
|
||||
group => $::horizon::params::wsgi_group,
|
||||
require => Anchor['horizon::config::begin'],
|
||||
tag => ['django-config'],
|
||||
mode => '0640',
|
||||
owner => $::horizon::params::wsgi_user,
|
||||
group => $::horizon::params::wsgi_group,
|
||||
show_diff => false,
|
||||
require => Anchor['horizon::config::begin'],
|
||||
tag => ['django-config'],
|
||||
}
|
||||
|
||||
concat::fragment { 'local_settings.py':
|
||||
|
@ -39,6 +39,13 @@ describe 'horizon' do
|
||||
is_expected.to_not contain_concat(platforms_params[:config_file]).that_notifies('Exec[refresh_horizon_django_cache]')
|
||||
is_expected.to contain_concat(platforms_params[:config_file]).that_notifies('Exec[refresh_horizon_django_compress]')
|
||||
end
|
||||
|
||||
is_expected.to contain_concat(platforms_params[:config_file]).with(
|
||||
:mode => '0640',
|
||||
:owner => platforms_params[:wsgi_user],
|
||||
:group => platforms_params[:wsgi_group],
|
||||
:show_diff => false
|
||||
)
|
||||
}
|
||||
|
||||
it 'configures apache' do
|
||||
@ -805,6 +812,8 @@ describe 'horizon' do
|
||||
:root_url => '/horizon',
|
||||
:root_path => '/var/lib/openstack-dashboard',
|
||||
:memcache_package => 'python3-memcache',
|
||||
:wsgi_user => 'horizon',
|
||||
:wsgi_group => 'horizon',
|
||||
}
|
||||
else
|
||||
{ :config_file => '/etc/openstack-dashboard/local_settings.py',
|
||||
@ -813,6 +822,8 @@ describe 'horizon' do
|
||||
:root_url => '/horizon',
|
||||
:root_path => '/var/lib/openstack-dashboard',
|
||||
:memcache_package => 'python3-memcache',
|
||||
:wsgi_user => 'horizon',
|
||||
:wsgi_group => 'horizon',
|
||||
}
|
||||
end
|
||||
when 'RedHat'
|
||||
@ -822,6 +833,8 @@ describe 'horizon' do
|
||||
:root_url => '/dashboard',
|
||||
:root_path => '/usr/share/openstack-dashboard',
|
||||
:memcache_package => 'python3-memcached',
|
||||
:wsgi_user => 'apache',
|
||||
:wsgi_group => 'apache',
|
||||
}
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user