Module: HybridPlatformsConductor::HpcPlugins::Provisioner::PlatformsDSLProxmox
- Defined in:
- lib/hybrid_platforms_conductor/hpc_plugins/provisioner/proxmox.rb
Overview
Decorate the DSL of platforms definitions
Instance Method Summary collapse
-
#init_proxmox ⇒ Object
Mixin initializer.
-
#proxmox(proxmox_info) ⇒ Object
Register a Proxmox server.
-
#proxmox_servers ⇒ Object
Return the list of Proxmox servers.
Instance Method Details
#init_proxmox ⇒ Object
Mixin initializer
41 42 43 44 45 |
# File 'lib/hybrid_platforms_conductor/hpc_plugins/provisioner/proxmox.rb', line 41 def init_proxmox # List of Proxmox servers info # Array< Hash<Symbol,Object> > @proxmox_servers = [] end |
#proxmox(proxmox_info) ⇒ Object
Register a Proxmox server
- Parameters
-
proxmox_info (Hash<Symbol,Object>): Proxmox server configuration. See Provisioner::Proxmox#proxmox_test_info to know about the returned structure.
51 52 53 |
# File 'lib/hybrid_platforms_conductor/hpc_plugins/provisioner/proxmox.rb', line 51 def proxmox(proxmox_info) @proxmox_servers << proxmox_info end |
#proxmox_servers ⇒ Object
Return the list of Proxmox servers
- Result
-
Array<Hash<Symbol,Object>>: The list of Proxmox servers. See Provisioner::Proxmox#proxmox_test_info to know about the returned structure.
59 60 61 |
# File 'lib/hybrid_platforms_conductor/hpc_plugins/provisioner/proxmox.rb', line 59 def proxmox_servers @proxmox_servers end |