Class: TerraspacePluginAzurerm::Interfaces::Config
- Inherits:
-
Object
- Object
- TerraspacePluginAzurerm::Interfaces::Config
- Includes:
- Singleton, Terraspace::Plugin::Config::Interface
- Defined in:
- lib/terraspace_plugin_azurerm/interfaces/config.rb
Instance Method Summary collapse
-
#defaults ⇒ Object
interface method must return an ActiveSupport::OrderedOptions.
-
#provider ⇒ Object
interface method load_project_config: config/plugins/azurerm.rb.
Instance Method Details
#defaults ⇒ Object
interface method must return an ActiveSupport::OrderedOptions
14 15 16 17 18 19 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 |
# File 'lib/terraspace_plugin_azurerm/interfaces/config.rb', line 14 def defaults c = ActiveSupport::OrderedOptions.new c.auto_create = true c.location = nil # AzureInfo.location not assigned here so it can be lazily inferred c.secrets = ActiveSupport::OrderedOptions.new c.secrets.vault = nil c.resource_group = ActiveSupport::OrderedOptions.new c.resource_group.update_existing = false c.storage_account = ActiveSupport::OrderedOptions.new c.storage_account.update_existing = false c.storage_account.sku = ActiveSupport::OrderedOptions.new c.storage_account.sku.name = "Standard_LRS" c.storage_account.sku.tier = "Standard" c.storage_account.allow_blob_public_access = false # Azure default is true c.storage_account.minimum_tls_version = "TLS1_2" # data protection management c.storage_account.configure_data_protection_for_existing = false c.storage_account.delete_retention_policy = ActiveSupport::OrderedOptions.new c.storage_account.delete_retention_policy.days = 365 c.storage_account.delete_retention_policy.enabled = true # overrides the setting above c.storage_account.blob_delete_retention_policy = ActiveSupport::OrderedOptions.new c.storage_account.blob_delete_retention_policy.days = nil c.storage_account.blob_delete_retention_policy.enabled = nil c.storage_account.container_delete_retention_policy = ActiveSupport::OrderedOptions.new c.storage_account.container_delete_retention_policy.days = nil c.storage_account.container_delete_retention_policy.enabled = nil c.storage_account.is_versioning_enabled = true c. = {} c end |
#provider ⇒ Object
interface method load_project_config: config/plugins/azurerm.rb
8 9 10 |
# File 'lib/terraspace_plugin_azurerm/interfaces/config.rb', line 8 def provider "azurerm" end |