Browse Source

Do not configure provider for stonith ra

Closes-bug: #1515919

Change-Id: Ife8cecd13a4232db0df621c73963605a6b217213
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
changes/92/245092/1
Bogdan Dobrelya 3 years ago
parent
commit
1dffa5e758

+ 2
- 1
deployment_scripts/puppet/modules/pcs_fencing/manifests/fencing.pp View File

@@ -44,7 +44,8 @@ define pcs_fencing::fencing (
44 44
 
45 45
   cs_resource { $res_name:
46 46
     ensure              => present,
47
-    provided_by         => 'pacemaker',
47
+    # stonith does not support providers
48
+    provided_by         => undef,
48 49
     primitive_class     => 'stonith',
49 50
     primitive_type      => $agent_type,
50 51
     parameters          => $parameters,

+ 2
- 2
deployment_scripts/puppet/modules/pcs_fencing/spec/defines/fencing_spec.rb View File

@@ -16,7 +16,7 @@ describe 'pcs_fencing::fencing', :type => :define do
16 16
   let :primitive_params do
17 17
     {
18 18
       :ensure => 'present',
19
-      :provided_by => 'pacemaker',
19
+      :provided_by => nil,
20 20
       :primitive_class => 'stonith',
21 21
       :primitive_type => params[:agent_type],
22 22
       :parameters => params[:parameters],
@@ -40,7 +40,7 @@ describe 'pcs_fencing::fencing', :type => :define do
40 40
         ["expressions", [
41 41
           {"attribute"=>"#uname",
42 42
            "operation"=>"ne",
43
-           "value"=>"node-1"}]]] 
43
+           "value"=>"node-1"}]]]
44 44
     }
45 45
   end
46 46
   let(:facts) {{ :osfamily => 'Debian' }}

Loading…
Cancel
Save