Skip to content

Commit

Permalink
feat: Set crm as default provider for ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
dploeger committed Nov 2, 2023
1 parent 83cc0d7 commit 8a5f888
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/puppet/provider/cs_clone/crm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

mk_resource_methods

defaultfor operatingsystem: [:ubuntu]

def self.instances
block_until_ready

Expand Down
2 changes: 2 additions & 0 deletions lib/puppet/provider/cs_colocation/crm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
# Decided to just go with relative.
commands crm: 'crm'

defaultfor operatingsystem: [:ubuntu]

def self.instances
block_until_ready

Expand Down
2 changes: 2 additions & 0 deletions lib/puppet/provider/cs_commit/crm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
# Required for block_until_ready
commands crm: 'crm'

defaultfor operatingsystem: [:ubuntu]

def self.instances
block_until_ready
[]
Expand Down
2 changes: 2 additions & 0 deletions lib/puppet/provider/cs_group/crm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# Path to the crm binary for interacting with the cluster configuration.
commands crm: '/usr/sbin/crm'

defaultfor operatingsystem: [:ubuntu]

def self.instances
block_until_ready

Expand Down
2 changes: 2 additions & 0 deletions lib/puppet/provider/cs_location/crm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

mk_resource_methods

defaultfor operatingsystem: [:ubuntu]

# we need to check if we run at least pacemakerd version 1.1.13 before enabling feature discovery
# see http://blog.clusterlabs.org/blog/2014/feature-spotlight-controllable-resource-discovery
begin
Expand Down
2 changes: 2 additions & 0 deletions lib/puppet/provider/cs_order/crm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

mk_resource_methods

defaultfor operatingsystem: [:ubuntu]

def self.instances
block_until_ready

Expand Down
3 changes: 3 additions & 0 deletions lib/puppet/provider/cs_primitive/crm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
# Path to the crm binary for interacting with the cluster configuration.
commands crm: 'crm'

defaultfor operatingsystem: [:ubuntu]


# given an XML element (a <primitive> from cibadmin), produce a hash suitible
# for creating a new provider instance.
def self.element_to_hash(e)
Expand Down
2 changes: 2 additions & 0 deletions lib/puppet/provider/cs_property/crm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
commands crm: 'crm'
commands cibadmin: 'cibadmin'

defaultfor operatingsystem: [:ubuntu]

def self.instances
block_until_ready

Expand Down
2 changes: 2 additions & 0 deletions lib/puppet/provider/cs_rsc_defaults/crm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
commands crm: 'crm'
commands cibadmin: 'cibadmin'

defaultfor operatingsystem: [:ubuntu]

def self.instances
block_until_ready

Expand Down
2 changes: 2 additions & 0 deletions lib/puppet/provider/cs_shadow/crm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
commands cibadmin: 'cibadmin'
commands crm: 'crm'

defaultfor operatingsystem: [:ubuntu]

def self.instances
block_until_ready(120, true)
[]
Expand Down

0 comments on commit 8a5f888

Please sign in to comment.