Module: YleTf::Config::Defaults
- Included in:
- Loader
- Defined in:
- lib/yle_tf/config/defaults.rb
Constant Summary collapse
- DEFAULT_CONFIG =
{ 'hooks' => { 'pre' => [], 'post' => [] }, 'backend' => { 'type' => 'file', 'file' => { 'path' => '<%= @module %>_<%= @env %>.tfstate', 'encrypt' => false, 'encrypt_command' => 'sops --encrypt --input-type binary --output-type binary --output "{{TO}}" "{{FROM}}"', 'decrypt_command' => 'sops --decrypt --input-type binary --output-type binary --output "{{TO}}" "{{FROM}}"' }, 's3' => { 'key' => '<%= @module %>_<%= @env %>.tfstate' } }, 'tfvars' => { }, 'terraform' => { 'version_requirement' => nil }, 'yle_tf' => { 'version_requirement' => nil } }.freeze
Instance Method Summary collapse
-
#default_config ⇒ Object
Returns deep copy of the default config Hash.
- #default_config_context ⇒ Object
Instance Method Details
#default_config ⇒ Object
Returns deep copy of the default config Hash.
36 37 38 |
# File 'lib/yle_tf/config/defaults.rb', line 36 def default_config Helpers::Hash.deep_copy(DEFAULT_CONFIG) end |
#default_config_context ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/yle_tf/config/defaults.rb', line 40 def default_config_context { env: tf_env, module: module_dir.basename.to_s, module_dir: module_dir.to_s, } end |