Class: CemAcpt::Config::CemAcpt
- Defined in:
- lib/cem_acpt/config/cem_acpt.rb
Overview
Holds the configuration for cem_acpt
Constant Summary collapse
- VALID_KEYS =
%i[ actions bolt image_name_builder module_dir node_data test_data tests ].freeze
Constants inherited from Base
Base::BASE_VALID_KEYS, Base::DEEP_MERGE_OPTS
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#defaults ⇒ Object
The default configuration.
Methods inherited from Base
#[], #ci_mode?, #debug_mode?, #empty?, #env_var_prefix, #explain, #get, #has?, #initialize, #inspect, #load, #quiet_mode?, #to_json, #to_yaml, #valid_keys, #verbose_mode?
Constructor Details
This class inherits a constructor from CemAcpt::Config::Base
Instance Method Details
#defaults ⇒ Object
The default configuration
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/cem_acpt/config/cem_acpt.rb', line 20 def defaults { actions: {}, bolt: { tests: { enabled: true, }, }, ci_mode: false, config_file: nil, image_name_builder: { character_substitutions: ['_', '-'], parts: ['cem-acpt', '$image_fam', '$collection', '$firewall'], join_with: '-', }, log_level: 'info', log_file: nil, log_format: 'text', module_dir: Dir.pwd, node_data: {}, no_ephemeral_ssh_key: false, platform: { name: 'gcp', }, quiet: false, test_data: { for_each: { collection: %w[puppet7 puppet8], }, vars: {}, name_pattern_vars: %r{^(?<framework>[a-z]+)_(?<image_fam>[a-z0-9-]+)_(?<firewall>[a-z]+)_(?<framework_vars>[-_a-z0-9]+)$}, vars_post_processing: { new_vars: [ { name: 'profile', string_split: { from: 'framework_vars', using: '_', part: 0, }, }, { name: 'level', string_split: { from: 'framework_vars', using: '_', part: 1, }, }, ], delete_vars: %w[framework_vars], }, }, tests: [], verbose: false, } end |