Module: HybridPlatformsConductor::HpcPlugins::SecretsReader::Thycotic::ConfigDSLExtension
- Defined in:
- lib/hybrid_platforms_conductor/hpc_plugins/secrets_reader/thycotic.rb
Overview
Extend the Config DSL
Instance Attribute Summary collapse
-
#thycotic_secrets ⇒ Object
readonly
List of defined Thycotic secrets.
Instance Method Summary collapse
-
#init_thycotic_config ⇒ Object
Mixin initializer.
-
#secrets_from_thycotic(thycotic_url:, secret_id:) ⇒ Object
Set a Thycotic secret server configuration.
Instance Attribute Details
#thycotic_secrets ⇒ Object (readonly)
List of defined Thycotic secrets. Each info has the following properties:
-
nodes_selectors_stack (Array<Object>): Stack of nodes selectors impacted by this rule.
-
thycotic_url (String): Thycotic URL.
-
secret_id (Integer): Thycotic secret ID.
Array< Hash<Symbol, Object> >
21 22 23 |
# File 'lib/hybrid_platforms_conductor/hpc_plugins/secrets_reader/thycotic.rb', line 21 def thycotic_secrets @thycotic_secrets end |
Instance Method Details
#init_thycotic_config ⇒ Object
Mixin initializer
24 25 26 |
# File 'lib/hybrid_platforms_conductor/hpc_plugins/secrets_reader/thycotic.rb', line 24 def init_thycotic_config @thycotic_secrets = [] end |
#secrets_from_thycotic(thycotic_url:, secret_id:) ⇒ Object
Set a Thycotic secret server configuration
- Parameters
-
thycotic_url (String): The Thycotic server URL.
-
secret_id (Integer): The Thycotic secret ID containing the secrets file to be used as secrets.
33 34 35 36 37 38 39 |
# File 'lib/hybrid_platforms_conductor/hpc_plugins/secrets_reader/thycotic.rb', line 33 def secrets_from_thycotic(thycotic_url:, secret_id:) @thycotic_secrets << { nodes_selectors_stack: current_nodes_selectors_stack, thycotic_url: thycotic_url, secret_id: secret_id } end |