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 Feb 21, 2024
1 parent 7672aa2 commit 9fe5e44
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 @@ -20,6 +20,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 @@ -20,6 +20,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 @@ -20,6 +20,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 @@ -16,6 +16,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 @@ -26,6 +26,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 @@ -21,6 +21,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 @@ -22,6 +22,9 @@
# Path to the crm binary for interacting with the cluster configuration.
commands crm: 'crm'

defaultfor operatingsystem: [:ubuntu]


Check failure on line 27 in lib/puppet/provider/cs_primitive/crm.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Layout/EmptyLines: Extra blank line detected. (https://rubystyle.guide#two-or-more-empty-lines)
# 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 @@ -19,6 +19,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 @@ -19,6 +19,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 @@ -19,6 +19,8 @@
commands cibadmin: 'cibadmin'
commands crm: 'crm'

defaultfor operatingsystem: [:ubuntu]

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

0 comments on commit 9fe5e44

Please sign in to comment.