cisco.intersight.intersight_memory_persistent_policy module – Memory Persistent Policy configuration for Cisco Intersight
Note
This module is part of the cisco.intersight collection (version 2.12.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 cisco.intersight.
To use it in a playbook, specify: cisco.intersight.intersight_memory_persistent_policy.
Synopsis
Manages Memory Persistent Policy configuration on Cisco Intersight.
Configure Persistent Memory Modules (PMM) on servers including security, goals, and namespaces.
Supports both Intersight-managed and Operating System-managed configuration modes.
For more information see Cisco Intersight.
Parameters
Parameter |
Comments |
|---|---|
Public API Key ID associated with the private key. If not set, the value of the INTERSIGHT_API_KEY_ID environment variable is used. |
|
Filename (absolute path) or string of PEM formatted private key data to be used for Intersight API authentication. If a string is used, Ansible vault should be used to encrypt string data. Ex. ansible-vault encrypt_string --vault-id tme@/Users/dsoper/Documents/vault_password_file ‘-----BEGIN EC PRIVATE KEY----- <your private key data> -----END EC PRIVATE KEY-----’ If not set, the value of the INTERSIGHT_API_PRIVATE_KEY environment variable is used. |
|
URI used to access the Intersight API. If not set, the value of the INTERSIGHT_API_URI environment variable is used. Default: |
|
The user-defined description for the Memory Persistent Policy. Description can contain letters(a-z, A-Z), numbers(0-9), hyphen(-), period(.), colon(:), or an underscore(_). |
|
Enable goal configuration for Persistent Memory Modules. The Goal configured will be applicable to all the Persistent Memory Modules. Goal modification will delete all existing regions and namespaces along with their data during profile deployment. New regions and namespaces will be created after goal modification. Only applicable when management_mode is Choices:
|
|
Enable secure passphrase for Persistent Memory Modules. When enabled, requires secure_passphrase parameter. Only applicable when management_mode is Choices:
|
|
Configuration management mode for Persistent Memory.
When set to Choices:
|
|
Volatile memory percentage for Memory Mode. Valid range is 0-100. Only applicable when enable_goal is true and management_mode is Default: |
|
The name assigned to the Memory Persistent Policy. The name must be between 1 and 62 alphanumeric characters, allowing special characters :-_. |
|
List of Logical Namespaces to be created or modified on the server. Only applicable when management_mode is |
|
Capacity of this Namespace in GiB. Valid range is 1 to 9223372036854775807. |
|
Mode of this Namespace. Choices:
|
|
Name of this Namespace to be created on the server. |
|
Socket ID of the region on which this Namespace has to be created or modified. Valid values are 1, 2, 3, or 4. Choices:
|
|
Socket Memory ID of the region on which this Namespace has to be created or modified. Only applicable when persistent_memory_type is Valid values are 2, 4, 6, 8, 10, or 12. Choices:
|
|
The name of the Organization this resource is assigned to. Policies created within a Custom Organization are applicable only to devices in the same Organization. Default: |
|
Type of Persistent Memory configuration.
Only applicable when enable_goal is true and management_mode is Choices:
|
|
Retain existing Persistent Memory Namespaces. If false, all existing namespaces not listed in the namespaces parameter will be deleted along with their data. Only applicable when management_mode is Choices:
|
|
Secure passphrase to be applied on the Persistent Memory Modules on the server. Required when enable_security_passphrase is true. The allowed characters are a-z, A-Z, 0-9, and special characters =, !, &, Only applicable when management_mode is |
|
If If Choices:
|
|
List of tags in Key:<user-defined key> Value:<user-defined value> format. |
|
If Choices:
|
|
Boolean control for verifying the api_uri TLS certificate Choices:
|
Examples
- name: Create Memory Persistent Policy with Intersight management
cisco.intersight.intersight_memory_persistent_policy:
api_private_key: "{{ api_private_key }}"
api_key_id: "{{ api_key_id }}"
organization: "default"
name: "pmem-policy-01"
description: "Persistent Memory policy with security and namespaces"
management_mode: configured-from-intersight
enable_security_passphrase: true
secure_passphrase: "SecurePass123!"
enable_goal: true
memory_mode_percentage: 0
persistent_memory_type: app-direct
retain_namespaces: true
namespaces:
- name: "ns1"
socket_id: 1
capacity: 100000
mode: raw
- name: "ns2"
socket_id: 4
capacity: 1000065
mode: block
state: present
- name: Create Memory Persistent Policy with non-interleaved configuration
cisco.intersight.intersight_memory_persistent_policy:
api_private_key: "{{ api_private_key }}"
api_key_id: "{{ api_key_id }}"
organization: "default"
name: "pmem-policy-non-interleaved"
description: "Non-interleaved persistent memory configuration"
management_mode: configured-from-intersight
enable_security_passphrase: true
secure_passphrase: "MySecurePass123"
enable_goal: true
memory_mode_percentage: 0
persistent_memory_type: app-direct-non-interleaved
retain_namespaces: true
namespaces:
- name: "ns1"
socket_id: 1
socket_memory_id: 2
capacity: 100000
mode: raw
- name: "ns2"
socket_id: 2
socket_memory_id: 4
capacity: 200000
mode: block
state: present
- name: Create Memory Persistent Policy with OS management
cisco.intersight.intersight_memory_persistent_policy:
api_private_key: "{{ api_private_key }}"
api_key_id: "{{ api_key_id }}"
organization: "default"
name: "pmem-policy-os-managed"
description: "OS-managed persistent memory configuration"
management_mode: configured-from-operating-system
state: present
- name: Create Memory Persistent Policy without security passphrase
cisco.intersight.intersight_memory_persistent_policy:
api_private_key: "{{ api_private_key }}"
api_key_id: "{{ api_key_id }}"
name: "pmem-policy-no-security"
description: "Policy without security passphrase"
management_mode: configured-from-intersight
enable_security_passphrase: false
enable_goal: true
memory_mode_percentage: 10
persistent_memory_type: app-direct
state: present
- name: Delete Memory Persistent Policy
cisco.intersight.intersight_memory_persistent_policy:
api_private_key: "{{ api_private_key }}"
api_key_id: "{{ api_key_id }}"
name: "pmem-policy-01"
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
The API response output returned by the specified resource. Returned: always Sample: |