diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-07-27 05:01:07 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-07-27 05:01:07 +0000 |
commit | 7ff70f8094a51cae422c77b7f85ebbcba72d43f6 (patch) | |
tree | eae26745d7dc156a06bcf26796b4e6543ef0d108 | |
parent | bf5eaa2fa243b9f3a1e329ea60ad23e12af41f1c (diff) | |
parent | d90abf468cf065057a171fdd8031006eb8536088 (diff) |
Merge "Configure redis as incoming storage driver in gnocchi"
-rw-r--r-- | manifests/profile/base/gnocchi/api.pp | 5 | ||||
-rw-r--r-- | spec/classes/tripleo_profile_base_gnocchi_api_spec.rb | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/manifests/profile/base/gnocchi/api.pp b/manifests/profile/base/gnocchi/api.pp index 3953f04..a9f2955 100644 --- a/manifests/profile/base/gnocchi/api.pp +++ b/manifests/profile/base/gnocchi/api.pp @@ -105,6 +105,11 @@ class tripleo::profile::base::gnocchi::api ( class { '::gnocchi::storage': coordination_url => join(['redis://:', $gnocchi_redis_password, '@', normalize_ip_for_uri($redis_vip), ':6379/']), } + + class { '::gnocchi::storage::incoming::redis': + redis_url => join(['redis://:', $gnocchi_redis_password, '@', normalize_ip_for_uri($redis_vip), ':6379/']), + } + case $gnocchi_backend { 'swift': { include ::gnocchi::storage::swift diff --git a/spec/classes/tripleo_profile_base_gnocchi_api_spec.rb b/spec/classes/tripleo_profile_base_gnocchi_api_spec.rb index 90bdea0..60e82b3 100644 --- a/spec/classes/tripleo_profile_base_gnocchi_api_spec.rb +++ b/spec/classes/tripleo_profile_base_gnocchi_api_spec.rb @@ -82,6 +82,9 @@ describe 'tripleo::profile::base::gnocchi::api' do is_expected.to contain_class('gnocchi::storage').with( :coordination_url => 'redis://:gnocchi@127.0.0.1:6379/' ) + is_expected.to contain_class('gnocchi::storage::incoming::redis').with( + :redis_url => 'redis://:gnocchi@127.0.0.1:6379/' + ) is_expected.to contain_class('gnocchi::storage::file') } end @@ -100,6 +103,9 @@ describe 'tripleo::profile::base::gnocchi::api' do is_expected.to contain_class('gnocchi::storage').with( :coordination_url => 'redis://:gnocchi@127.0.0.1:6379/' ) + is_expected.to contain_class('gnocchi::storage::incoming::redis').with( + :redis_url => 'redis://:gnocchi@127.0.0.1:6379/' + ) is_expected.to contain_class('gnocchi::storage::ceph') } end |