Skip to content

Commit 9fe5e44

Browse files
committed
feat: Set crm as default provider for ubuntu
1 parent 7672aa2 commit 9fe5e44

File tree

10 files changed

+21
-0
lines changed

10 files changed

+21
-0
lines changed

lib/puppet/provider/cs_clone/crm.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
mk_resource_methods
2222

23+
defaultfor operatingsystem: [:ubuntu]
24+
2325
def self.instances
2426
block_until_ready
2527

lib/puppet/provider/cs_colocation/crm.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
# Decided to just go with relative.
2121
commands crm: 'crm'
2222

23+
defaultfor operatingsystem: [:ubuntu]
24+
2325
def self.instances
2426
block_until_ready
2527

lib/puppet/provider/cs_commit/crm.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
# Required for block_until_ready
2121
commands crm: 'crm'
2222

23+
defaultfor operatingsystem: [:ubuntu]
24+
2325
def self.instances
2426
block_until_ready
2527
[]

lib/puppet/provider/cs_group/crm.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
# Path to the crm binary for interacting with the cluster configuration.
1717
commands crm: '/usr/sbin/crm'
1818

19+
defaultfor operatingsystem: [:ubuntu]
20+
1921
def self.instances
2022
block_until_ready
2123

lib/puppet/provider/cs_location/crm.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727
mk_resource_methods
2828

29+
defaultfor operatingsystem: [:ubuntu]
30+
2931
# we need to check if we run at least pacemakerd version 1.1.13 before enabling feature discovery
3032
# see http://blog.clusterlabs.org/blog/2014/feature-spotlight-controllable-resource-discovery
3133
begin

lib/puppet/provider/cs_order/crm.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
mk_resource_methods
2323

24+
defaultfor operatingsystem: [:ubuntu]
25+
2426
def self.instances
2527
block_until_ready
2628

lib/puppet/provider/cs_primitive/crm.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
# Path to the crm binary for interacting with the cluster configuration.
2323
commands crm: 'crm'
2424

25+
defaultfor operatingsystem: [:ubuntu]
26+
27+
2528
# given an XML element (a <primitive> from cibadmin), produce a hash suitible
2629
# for creating a new provider instance.
2730
def self.element_to_hash(e)

lib/puppet/provider/cs_property/crm.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
commands crm: 'crm'
2020
commands cibadmin: 'cibadmin'
2121

22+
defaultfor operatingsystem: [:ubuntu]
23+
2224
def self.instances
2325
block_until_ready
2426

lib/puppet/provider/cs_rsc_defaults/crm.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
commands crm: 'crm'
2020
commands cibadmin: 'cibadmin'
2121

22+
defaultfor operatingsystem: [:ubuntu]
23+
2224
def self.instances
2325
block_until_ready
2426

lib/puppet/provider/cs_shadow/crm.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
commands cibadmin: 'cibadmin'
2020
commands crm: 'crm'
2121

22+
defaultfor operatingsystem: [:ubuntu]
23+
2224
def self.instances
2325
block_until_ready(120, true)
2426
[]

0 commit comments

Comments
 (0)