Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Set crm as default provider for ubuntu #538

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 'os.family': [:ubuntu]

def self.instances
block_until_ready

Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/provider/cs_clone/pcs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

mk_resource_methods

defaultfor operatingsystem: %i[fedora centos redhat]
defaultfor 'os.family': %i[fedora centos redhat]

def change_clone_id(type, primitive, id, cib)
xpath = "/cib/configuration/resources/clone[descendant::#{type}[@id='#{primitive}']]"
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 'os.family': [:ubuntu]

def self.instances
block_until_ready

Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/provider/cs_colocation/pcs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
of current primitive colocations on the system; add, delete, or adjust various
aspects.'

defaultfor operatingsystem: %i[fedora centos redhat]
defaultfor 'os.family': %i[fedora centos redhat]

commands pcs: 'pcs'

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 'os.family': [: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 'os.family': [:ubuntu]

def self.instances
block_until_ready

Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/provider/cs_group/pcs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Puppet::Type.type(:cs_group).provide(:pcs, parent: PuppetX::Voxpupuli::Corosync::Provider::Pcs) do
desc 'Provider to add, delete, manipulate primitive groups.'

defaultfor operatingsystem: %i[fedora centos redhat]
defaultfor 'os.family': %i[fedora centos redhat]

# Path to the pcs binary for interacting with the cluster configuration.
commands pcs: '/usr/sbin/pcs'
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 'os.family': [: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: 1 addition & 1 deletion lib/puppet/provider/cs_location/pcs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
of current primitive locations on the system; add, delete, or adjust various
aspects.'

defaultfor operatingsystem: %i[fedora centos redhat]
defaultfor 'os.family': %i[fedora centos redhat]
has_feature :discovery

commands pcs: 'pcs'
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 'os.family': [:ubuntu]

def self.instances
block_until_ready

Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/provider/cs_order/pcs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
of current primitive start orders on the system; add, delete, or adjust various
aspects.'

defaultfor operatingsystem: %i[fedora centos redhat]
defaultfor 'os.family': %i[fedora centos redhat]

has_feature :kindness

Expand Down
2 changes: 2 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,8 @@
# Path to the crm binary for interacting with the cluster configuration.
commands crm: 'crm'

defaultfor 'os.family': [: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: 1 addition & 1 deletion lib/puppet/provider/cs_primitive/pcs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

mk_resource_methods

defaultfor operatingsystem: %i[fedora centos redhat]
defaultfor 'os.family': %i[fedora centos redhat]

# given an XML element (a <primitive> from cibadmin), produce a hash suitible
# for creating a new provider instance.
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 'os.family': [:ubuntu]

def self.instances
block_until_ready

Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/provider/cs_property/pcs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
abstract corosync/pacemaker vs. keepalived. This provider will check the state
of Corosync cluster configuration properties.'

defaultfor operatingsystem: %i[fedora centos redhat]
defaultfor 'os.family': %i[fedora centos redhat]

# Path to the pcs binary for interacting with the cluster configuration.
commands pcs: 'pcs'
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 'os.family': [:ubuntu]

def self.instances
block_until_ready

Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/provider/cs_rsc_defaults/pcs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
abstract corosync/pacemaker vs. keepalived. This provider will check the state
of Corosync global defaults for resource options.'

defaultfor operatingsystem: %i[fedora centos redhat]
defaultfor 'os.family': %i[fedora centos redhat]

# Path to the pcs binary for interacting with the cluster configuration.
commands pcs: 'pcs'
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 'os.family': [:ubuntu]

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