Merge "Remove unnecessary group assignment"
This commit is contained in:
@@ -65,11 +65,6 @@ class swift(
|
|||||||
tag => ['openstack', 'swift-package'],
|
tag => ['openstack', 'swift-package'],
|
||||||
}
|
}
|
||||||
|
|
||||||
user {'swift':
|
|
||||||
ensure => present,
|
|
||||||
require => Anchor['swift::install::end'],
|
|
||||||
}
|
|
||||||
|
|
||||||
swift_config {
|
swift_config {
|
||||||
'swift-hash/swift_hash_path_suffix': value => $swift_hash_path_suffix;
|
'swift-hash/swift_hash_path_suffix': value => $swift_hash_path_suffix;
|
||||||
'swift-hash/swift_hash_path_prefix': value => $swift_hash_path_prefix;
|
'swift-hash/swift_hash_path_prefix': value => $swift_hash_path_prefix;
|
||||||
|
@@ -29,12 +29,6 @@
|
|||||||
# Enable or not ceilometer fragment
|
# Enable or not ceilometer fragment
|
||||||
# Defaults to 'present'
|
# Defaults to 'present'
|
||||||
#
|
#
|
||||||
# [*group*]
|
|
||||||
# Group name to add to 'swift' user.
|
|
||||||
# ceilometer/eventlet: set 'ceilometer' (default)
|
|
||||||
# ceilometer/wsgi: set $::apache::group
|
|
||||||
# Defaults to 'ceilometer'
|
|
||||||
#
|
|
||||||
# [*nonblocking_notify*]
|
# [*nonblocking_notify*]
|
||||||
# Whether to send events to messaging driver in a background thread
|
# Whether to send events to messaging driver in a background thread
|
||||||
# Defaults to false
|
# Defaults to false
|
||||||
@@ -112,6 +106,10 @@
|
|||||||
# (Optional) Complete public Identity API endpoint.
|
# (Optional) Complete public Identity API endpoint.
|
||||||
# Defaults to undef
|
# Defaults to undef
|
||||||
#
|
#
|
||||||
|
# [*group*]
|
||||||
|
# Group name to add to 'swift' user.
|
||||||
|
# Defaults to undef
|
||||||
|
#
|
||||||
# == Examples
|
# == Examples
|
||||||
#
|
#
|
||||||
# == Authors
|
# == Authors
|
||||||
@@ -128,7 +126,6 @@ class swift::proxy::ceilometer(
|
|||||||
$topic = undef,
|
$topic = undef,
|
||||||
$control_exchange = undef,
|
$control_exchange = undef,
|
||||||
$ensure = 'present',
|
$ensure = 'present',
|
||||||
$group = 'ceilometer',
|
|
||||||
$nonblocking_notify = false,
|
$nonblocking_notify = false,
|
||||||
$ignore_projects = ['services'],
|
$ignore_projects = ['services'],
|
||||||
$auth_url = 'http://127.0.0.1:5000',
|
$auth_url = 'http://127.0.0.1:5000',
|
||||||
@@ -147,17 +144,12 @@ class swift::proxy::ceilometer(
|
|||||||
$rabbit_use_ssl = $::os_service_default,
|
$rabbit_use_ssl = $::os_service_default,
|
||||||
$kombu_ssl_version = $::os_service_default,
|
$kombu_ssl_version = $::os_service_default,
|
||||||
# DEPRECATED PARAMETERS
|
# DEPRECATED PARAMETERS
|
||||||
$auth_uri = undef
|
$auth_uri = undef,
|
||||||
|
$group = undef,
|
||||||
) inherits swift {
|
) inherits swift {
|
||||||
|
|
||||||
include swift::deps
|
include swift::deps
|
||||||
|
|
||||||
User['swift'] {
|
|
||||||
groups +> $group,
|
|
||||||
}
|
|
||||||
|
|
||||||
Package<| tag == 'ceilometer-package' |> -> User['swift']
|
|
||||||
|
|
||||||
if defined(Service['swift-proxy-server']) {
|
if defined(Service['swift-proxy-server']) {
|
||||||
Package['python-ceilometermiddleware'] -> Service['swift-proxy-server']
|
Package['python-ceilometermiddleware'] -> Service['swift-proxy-server']
|
||||||
}
|
}
|
||||||
@@ -166,6 +158,10 @@ class swift::proxy::ceilometer(
|
|||||||
warning('The swift::proxy::ceilometer::auth_uri parameter was deprecated, and has no effect')
|
warning('The swift::proxy::ceilometer::auth_uri parameter was deprecated, and has no effect')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $group != undef {
|
||||||
|
warning('The group parameer has been deprecated and has no effect now.')
|
||||||
|
}
|
||||||
|
|
||||||
if $password == undef {
|
if $password == undef {
|
||||||
warning('Usage of the default password is deprecated and will be removed in a future release. \
|
warning('Usage of the default password is deprecated and will be removed in a future release. \
|
||||||
Please set password parameter')
|
Please set password parameter')
|
||||||
|
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
deprecations:
|
||||||
|
- |
|
||||||
|
The ``swift::proxy::ceilometer::group`` parameter has been deprecated and
|
||||||
|
has no effect now.
|
@@ -20,7 +20,6 @@ describe 'swift::proxy::ceilometer' do
|
|||||||
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/paste.filter_factory').with_value('ceilometermiddleware.swift:filter_factory') }
|
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/paste.filter_factory').with_value('ceilometermiddleware.swift:filter_factory') }
|
||||||
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/url').with_value('rabbit://user_1:user_1_passw@1.1.1.1:5673/rabbit').with_secret(true) }
|
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/url').with_value('rabbit://user_1:user_1_passw@1.1.1.1:5673/rabbit').with_secret(true) }
|
||||||
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/nonblocking_notify').with_value('false') }
|
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/nonblocking_notify').with_value('false') }
|
||||||
it { is_expected.to contain_user('swift').with_groups('ceilometer') }
|
|
||||||
|
|
||||||
it { is_expected.to contain_package('python-ceilometermiddleware').with(
|
it { is_expected.to contain_package('python-ceilometermiddleware').with(
|
||||||
:ensure => 'present',
|
:ensure => 'present',
|
||||||
@@ -31,8 +30,7 @@ describe 'swift::proxy::ceilometer' do
|
|||||||
|
|
||||||
describe "when overriding default parameters with rabbit driver" do
|
describe "when overriding default parameters with rabbit driver" do
|
||||||
let :params do
|
let :params do
|
||||||
{ :group => 'www-data',
|
{ :default_transport_url => 'rabbit://user_1:user_1_passw@1.1.1.1:5673/rabbit',
|
||||||
:default_transport_url => 'rabbit://user_1:user_1_passw@1.1.1.1:5673/rabbit',
|
|
||||||
:driver => 'messagingv2',
|
:driver => 'messagingv2',
|
||||||
:topic => 'notifications',
|
:topic => 'notifications',
|
||||||
:control_exchange => 'swift',
|
:control_exchange => 'swift',
|
||||||
@@ -50,7 +48,6 @@ describe 'swift::proxy::ceilometer' do
|
|||||||
end
|
end
|
||||||
|
|
||||||
context 'with single rabbit host' do
|
context 'with single rabbit host' do
|
||||||
it { is_expected.to contain_user('swift').with_groups('www-data') }
|
|
||||||
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/paste.filter_factory').with_value('ceilometermiddleware.swift:filter_factory') }
|
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/paste.filter_factory').with_value('ceilometermiddleware.swift:filter_factory') }
|
||||||
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/url').with_value('rabbit://user_1:user_1_passw@1.1.1.1:5673/rabbit').with_secret(true) }
|
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/url').with_value('rabbit://user_1:user_1_passw@1.1.1.1:5673/rabbit').with_secret(true) }
|
||||||
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/driver').with_value('messagingv2') }
|
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/driver').with_value('messagingv2') }
|
||||||
|
@@ -28,8 +28,6 @@ describe 'swift' do
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
it {is_expected.to contain_user('swift')}
|
|
||||||
|
|
||||||
it 'configures swift.conf' do
|
it 'configures swift.conf' do
|
||||||
is_expected.to contain_swift_config(
|
is_expected.to contain_swift_config(
|
||||||
'swift-hash/swift_hash_path_suffix').with_value('string')
|
'swift-hash/swift_hash_path_suffix').with_value('string')
|
||||||
|
Reference in New Issue
Block a user