summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilien Macchi <emilien@redhat.com>2017-06-15 14:14:04 -0400
committerEmilien Macchi <emilien@redhat.com>2017-06-15 14:14:28 -0400
commit03ec6b471152e77ba89f31ff6918cd139497073b (patch)
treed5776c0646244b6c1fcac96080a7d97c5e61f7b5
parent3a4971b1071aeab845baafdf843daeb8f7e03eb2 (diff)
include policy class in api.pp
Like we do in other modules, include zaqar::policy class in zaqar::server so users can define policies without taking care of the class. Change-Id: I9f549f11bd4e939ad41ff77c51dd2f32338621c8
Notes
Notes (review): Code-Review+2: zhongshengping <chdzsp@163.com> Code-Review+2: Alex Schultz <aschultz@redhat.com> Workflow+1: Alex Schultz <aschultz@redhat.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Fri, 16 Jun 2017 23:47:11 +0000 Reviewed-on: https://review.openstack.org/474719 Project: openstack/puppet-zaqar Branch: refs/heads/master
-rw-r--r--manifests/server.pp1
-rw-r--r--spec/classes/zaqar_server_spec.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index d734b4e..aea5ef2 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -29,6 +29,7 @@ class zaqar::server(
29 include ::zaqar 29 include ::zaqar
30 include ::zaqar::deps 30 include ::zaqar::deps
31 include ::zaqar::params 31 include ::zaqar::params
32 include ::zaqar::policy
32 33
33 if $enabled { 34 if $enabled {
34 if $manage_service { 35 if $manage_service {
diff --git a/spec/classes/zaqar_server_spec.rb b/spec/classes/zaqar_server_spec.rb
index aeda330..99981b3 100644
--- a/spec/classes/zaqar_server_spec.rb
+++ b/spec/classes/zaqar_server_spec.rb
@@ -14,6 +14,7 @@ describe 'zaqar::server' do
14 :ensure => 'running', 14 :ensure => 'running',
15 :enable => true 15 :enable => true
16 )} 16 )}
17 it { is_expected.to contain_class('zaqar::policy') }
17 18
18 end 19 end
19 end 20 end