hitachivantara.vspone_object.oneobject_node.hv_storage_component module – Create or update a storage component
Note
This module is part of the hitachivantara.vspone_object collection (version 1.0.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install hitachivantara.vspone_object
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: hitachivantara.vspone_object.oneobject_node.hv_storage_component
.
New in hitachivantara.vspone_object 1.0.0
Synopsis
This module creates or updates a storage component in Hitachi VSP One Object.
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.7
Parameters
Parameter |
Comments |
---|---|
Information required to establish a connection to the system. |
|
Cluster name of the system. |
|
Interval between retries of an HTTP request. |
|
Number of times to retry an HTTP request. |
|
Timeout for HTTP requests. |
|
Id for authentication. |
|
Secret for authentication. |
|
Username for authentication. |
|
Password for authentication. |
|
Region of the system. |
|
SSL configuration. |
|
Path to the CA certificates file. Default: |
|
Path to the CA certificate file. Default: |
|
Whether to check the hostname. Choices:
|
|
Path to the client certificate file. Default: |
|
Path to the client key file. Default: |
|
SSL cipher to use. Default: |
|
SSL version to use. Default: |
|
Whether to validate SSL certificates. Choices:
|
|
Storage component module spec |
|
The ID of the storage component. If specified, only updates are performed. |
|
The storage component configuration values. |
|
The access key of the S3 credentials for access to the bucket. Mandatory when creating a storage component. |
|
Activate storage component immediately. Choices:
|
|
The AWS Signature Version for authenticating all interactions with Amazon S3. Use Choices:
|
|
The name of the bucket. The bucket must already exist. Mandatory when creating a storage component. |
|
Timeout for establishing HTTP connections (milliseconds). |
|
The connection time to live (TTL) for a request. |
|
The amount of storage requested for the storage component. |
|
The persistent volume (PV) associated with the storage component. |
|
The URL of the storage component back-end host domain. Mandatory when creating a storage component. |
|
The name of the storage component. Mandatory when creating a storage component. |
|
Required for an VSP One Object S Series node storage component. Type the management system IP address or fully qualified domain name. Do not provide for other storage component types. |
|
Required for an VSP One Object S Series node storage component. The password credential. Do not provide for other storage component types. |
|
Required for an VSP One Object S Series node storage component. The communication protocol for MAPI requests. Do not provide for other storage component types. |
|
Required for an VSP One Object S Series node storage component. The administrative user name credential. Do not provide for other storage component types. |
|
The maximum number of open HTTP connections to a storage component. |
|
The Kubernetes namespace associated with the storage component. |
|
The node on the Kubernetes cluster on which the storage is to be allocated. |
|
The HTTP port of the back-end system. Mandatory when creating a storage component. |
|
The proxy domain. This is not supported. |
|
The proxy server host. |
|
The proxy domain password. |
|
The proxy port number. |
|
The proxy domain username. |
|
The S3 region. Mandatory when creating a storage component. |
|
The secret key of the S3 credentials for access to the bucket. Mandatory when creating a storage component. |
|
The size hint, in bytes, for the low-level TCP receive buffer. If specified, you must also specify socketSendBufferSizeHint. |
|
The size hint, in bytes, for the low-level TCP send buffer. If specified, you must also specify socketRecvBufferSizeHint. |
|
The timeout value for reading from a connected socket. |
|
The storage class associated with the storage component. Mandatory when creating a storage component. |
|
The fault domain associated with the storage component. Mandatory when creating a storage component. |
|
The Uniform Resource Identifier (URI) schema used when accessing the resource. Use Choices:
|
|
If true, use path-style syntax to send requests to the back-end system. If false, use virtual-hosted style. If not specified, defaults to true. Choices:
|
|
If true, then values are required for proxy_host, proxy_port, proxy_user_name, and proxy_password. Choices:
|
|
The HTTP user agent prefix header, used in requests to a storage component. |
|
The metadata assigned to the storage component. |
|
The type of storage component. Set storage_type to Choices:
|
|
Set operation to Set operation to Set operation to Choices:
|
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: none |
Determines if the module should run in check mode. |
Examples
- name: Activate storage component in Hitachi VSP One Object
hitachivantara.vspone_object.oneobject_node.hv_storage_component:
connection_info:
http_request_timeout: 300
http_request_retry_times: 3
http_request_retry_interval_seconds: 5
cluster_name: "your_cluster_name"
region: "your_region"
oneobject_node_username: "your_username"
oneobject_node_userpass: "your_password"
oneobject_node_client_id: "vsp-object-external-client"
state: "activate"
spec:
id: 759156789
- name: Create storage component in Hitachi VSP One Object
hitachivantara.vspone_object.oneobject_node.hv_storage_component:
connection_info:
http_request_timeout: 300
http_request_retry_times: 3
http_request_retry_interval_seconds: 5
cluster_name: "your_cluster_name"
region: "your_region"
oneobject_node_username: "your_username"
oneobject_node_userpass: "your_password"
oneobject_node_client_id: "vsp-object-external-client"
state: "present"
spec:
storage_type: "HCPS_S3"
storage_component_config:
label: "component-test6"
host: "172.25.57.10"
storage_class: "A1-CLASS-3_123"
storage_fault_domain: "humphrey-storage-test"
uri_scheme: "HTTP"
port: "80"
bucket: "ansiblecreate6"
region: "us-west-2b"
auth_type: "V2"
access_key: "dxfchgvjh"
secret_key: "thsfgndzbfvzdc"
use_proxy: false
proxy_host: ~
proxy_port: ~
proxy_user_name: ~
proxy_password: ~
management_user: "johndoenag"
management_password: "Passw0rd!"
management_protocol: "HTTPS"
management_host: "172.25.57.10:9090/mapi"
use_path_style_always: false
activate_now: false
- name: Update storage component in Hitachi VSP One Object
hitachivantara.vspone_object.oneobject_node.hv_storage_component:
connection_info:
http_request_timeout: 300
http_request_retry_times: 3
http_request_retry_interval_seconds: 5
cluster_name: "your_cluster_name"
region: "your_region"
oneobject_node_username: "your_username"
oneobject_node_userpass: "your_password"
oneobject_node_client_id: "vsp-object-external-client"
state: "present"
spec:
storage_type: "HCPS_S3"
storage_component_config:
label: "component-test6"
host: "172.25.57.10"
storage_class: "A1-CLASS-3_123"
storage_fault_domain: "humphrey-storage-test"
uri_scheme: "HTTP"
port: "80"
bucket: "ansiblecreate6"
region: "us-west-2b"
auth_type: "V2"
access_key: "dxfchgvjh"
secret_key: "thsfgndzbfvzdc"
use_proxy: false
proxy_host: ~
proxy_port: ~
proxy_user_name: ~
proxy_password: ~
management_user: "johndoenag"
management_password: "Passw0rd!"
management_protocol: "HTTPS"
management_host: "172.25.57.10:9090/mapi"
use_path_style_always: false
activate_now: false
- name: Test storage component access in Hitachi VSP One Object
hitachivantara.vspone_object.oneobject_node.hv_storage_component:
connection_info:
http_request_timeout: 300
http_request_retry_times: 3
http_request_retry_interval_seconds: 5
cluster_name: "your_cluster_name"
region: "your_region"
oneobject_node_username: "your_username"
oneobject_node_userpass: "your_password"
oneobject_node_client_id: "vsp-object-external-client"
state: "test"
spec:
id: 759156789
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Storage component and its attributes. Returned: success |
|
The ID of the storage component. Returned: success Sample: |
|
The id of storage class assigned to the storage component in Kubernetes. Returned: success Sample: |
|
The storage component configuration values. Returned: success |
|
The AWS Signature Version for authenticating all interactions with Amazon S3. Returned: success Sample: |
|
The name of the bucket. Returned: success Sample: |
|
The connection time to live (TTL) for a request. Returned: success Sample: |
|
The URL of the storage component back-end host domain. Returned: success Sample: |
|
The name of the storage component. Returned: success Sample: |
|
The management system IP address or fully qualified domain name. Returned: success Sample: |
|
The communication protocol for MAPI requests. Returned: success Sample: |
|
The maximum number of connections for the storage component. Returned: success Sample: |
|
The HTTP port of the back-end system. Returned: success Sample: |
|
The S3 region. Returned: success Sample: |
|
The site affiliation details for the storage component. Returned: success |
|
The unique identifier of the site affiliation. Returned: success Sample: |
|
The timeout value for reading from a connected socket. Returned: success Sample: |
|
The current state of the storage component. Returned: success Sample: |
|
The Uniform Resource Identifier (URI) schema used when accessing the resource. Returned: success Sample: |
|
Whether to use path-style addressing for the storage component. Returned: success Sample: |
|
Whether to use a proxy for the storage component. Returned: success Sample: |
|
Custom metadata for the storage component. Returned: success Sample: |
|
The unique identifier of the storage fault domain. Returned: success Sample: |
|
The type of the storage component. Returned: success Sample: |