Module: Pacemaker::Options
- Included in:
- Puppet::Provider::PacemakerPCS, Puppet::Provider::PacemakerPCS, Puppet::Provider::PacemakerXML, Puppet::Provider::PacemakerXML, Serverspec::Type::PacemakerXML
- Defined in:
- lib/pacemaker/options.rb
Overview
pacemaker options submodule takes the options structure from the YAML file other options sources can be implemented here
Class Method Summary collapse
-
.pacemaker_options ⇒ Hash
pacemaker options structure (class level).
-
.pacemaker_options_file ⇒ String
the YAML file with pacemaker options.
Instance Method Summary collapse
-
#max_wait_time ⇒ Integer
maximum possible waiting time of retry functions.
-
#pacemaker_options ⇒ Hash
pacemaker options structure (instance level).
Class Method Details
.pacemaker_options ⇒ Hash
pacemaker options structure (class level)
14 15 16 17 |
# File 'lib/pacemaker/options.rb', line 14 def self. return @pacemaker_options if @pacemaker_options @pacemaker_options = YAML.load_file end |
.pacemaker_options_file ⇒ String
the YAML file with pacemaker options
8 9 10 |
# File 'lib/pacemaker/options.rb', line 8 def self. File.join File.dirname(__FILE__), 'options.yaml' end |
Instance Method Details
#max_wait_time ⇒ Integer
maximum possible waiting time of retry functions
27 28 29 |
# File 'lib/pacemaker/options.rb', line 27 def max_wait_time [:retry_count] * [:retry_step] end |