| 1 |
nar_santricity_management |
| 2 |
========= |
| 3 |
Manages NetApp E-Series storage system's name, passwords, management interfaces, alerts, syslog, auditlog, asup, ldap, certificates, drive firmware and controller firmware. |
| 4 |
|
| 5 |
Requirements |
| 6 |
------------ |
| 7 |
- NetApp E-Series E2800 platform or newer or NetApp E-Series SANtricity Web Services Proxy configured for older E-Series storage systems. |
| 8 |
|
| 9 |
Example Playbook |
| 10 |
---------------- |
| 11 |
- hosts: eseries_storage_systems |
| 12 |
gather_facts: false |
| 13 |
collection: |
| 14 |
- netapp_eseries.santricity |
| 15 |
tasks: |
| 16 |
- name: Ensure NetApp E-Series storage system is properly configured |
| 17 |
import_role: |
| 18 |
name: nar_santricity_management |
| 19 |
|
| 20 |
Example Storage System Inventory File (Discover storage system with proxy) |
| 21 |
------------------------------------- |
| 22 |
eseries_system_serial: "012345678901" # Be sure to quote if the serial is all numbers and begins with zero. |
| 23 |
eseries_system_password: admin_password |
| 24 |
eseries_proxy_api_url: https://192.168.1.100:8443/devmgr/v2/ |
| 25 |
eseries_proxy_api_password: admin_password |
| 26 |
eseries_subnet: 192.168.1.0/24 |
| 27 |
eseries_prefer_embedded: false # Overrides the default behavior of using Web Services Proxy when eseries_proxy_api_url is defined. This will only effect storage systems that have Embedded Web Services. |
| 28 |
eseries_validate_certs: false |
| 29 |
|
| 30 |
eseries_system_name: my_eseries_array |
| 31 |
eseries_system_cache_block_size: 128 |
| 32 |
eseries_system_cache_flush_threshold: 90 |
| 33 |
eseries_system_autoload_balance: enabled |
| 34 |
eseries_system_host_connectivity_reporting: enabled |
| 35 |
eseries_system_default_host_type: Linux DM-MP |
| 36 |
|
| 37 |
eseries_management_interfaces: |
| 38 |
config_method: static |
| 39 |
subnet_mask: 255.255.255.0 |
| 40 |
gateway: 192.168.1.1 |
| 41 |
dns_config_method: static |
| 42 |
dns_address: 192.168.1.253 |
| 43 |
dns_address_backup: 192.168.1.254 |
| 44 |
ssh: true |
| 45 |
ntp_config_method: static |
| 46 |
ntp_address: 192.168.1.200 |
| 47 |
ntp_address_backup: 192.168.1.201 |
| 48 |
controller_a: |
| 49 |
- address: 192.168.1.100 |
| 50 |
- address: 192.168.1.101 |
| 51 |
controller_b: |
| 52 |
- address: 192.168.1.102 |
| 53 |
- address: 192.168.1.103 |
| 54 |
|
| 55 |
eseries_ldap_state: present |
| 56 |
eseries_ldap_bind_username: |
| 57 |
eseries_ldap_bind_password: |
| 58 |
eseries_ldap_server: |
| 59 |
eseries_ldap_search_base: |
| 60 |
eseries_ldap_role_mappings: |
| 61 |
".*": |
| 62 |
- storage.admin |
| 63 |
- storage.monitor |
| 64 |
- support.admin |
| 65 |
- security.admin |
| 66 |
|
| 67 |
eseries_client_certificate_certificates: |
| 68 |
- /path/to/client_certificate.crt |
| 69 |
eseries_server_certificate: |
| 70 |
controller_a: |
| 71 |
public_certificate: "/path/to/controller_a_server_certificate_bundle.pem" |
| 72 |
controller_b: |
| 73 |
public_certificate: "/path/to/controller_b_server_certificate_bundle.pem" |
| 74 |
|
| 75 |
eseries_firmware_firmware: "/path/to/firmware.dlp" |
| 76 |
eseries_firmware_nvsram: "/path/to/nvsram.dlp" |
| 77 |
eseries_drive_firmware_firmware_list: |
| 78 |
- "/path/to/drive_firmware.dlp" |
| 79 |
|
| 80 |
eseries_asup_state: enabled |
| 81 |
eseries_asup_active: true |
| 82 |
eseries_asup_days: [sunday, saturday] |
| 83 |
eseries_asup_start: 17 |
| 84 |
eseries_asup_end: 24 |
| 85 |
eseries_asup_validate: false |
| 86 |
eseries_asup_method: email |
| 87 |
eseries_asup_email: |
| 88 |
server: smtp.example.com |
| 89 |
sender: [email protected] |
| 90 |
|
| 91 |
eseries_syslog_state: present |
| 92 |
eseries_syslog_address: 192.168.1.150 |
| 93 |
eseries_syslog_protocol: udp |
| 94 |
eseries_syslog_port: 514 |
| 95 |
eseries_alert_syslog_servers: |
| 96 |
- "address": 192.168.1.150 |
| 97 |
"port": 514 |
| 98 |
|
| 99 |
Example Storage System Inventory File (Without storage system discovery) |
| 100 |
------------------------------------- |
| 101 |
eseries_system_api_url: https://192.168.1.200:8443/devmgr/v2/ |
| 102 |
eseries_system_password: admin_password |
| 103 |
eseries_validate_certs: false |
| 104 |
|
| 105 |
(...) # Same as the previous example |
| 106 |
|
| 107 |
Role Variables |
| 108 |
-------------- |
| 109 |
**Note that when values are specified below, they indicate the default value.** |
| 110 |
|
| 111 |
# Web Services Embedded information |
| 112 |
eseries_subnet: # Network subnet to search for the storage system specified in CIDR form. Example: 192.168.1.0/24 |
| 113 |
eseries_system_serial: # Storage system serial number. Be sure to quote if the serial is all numbers and begins with zero. (This is located on a label at the top-left towards the front on the device) |
| 114 |
eseries_system_addresses: # Storage system management IP addresses. Only required when eseries_system_serial or eseries_system_api_url are not defined. When not specified, addresses will be populated with eseries_management_interfaces controller addresses. |
| 115 |
eseries_system_api_url: # Url for the storage system's for embedded web services rest api. Example: https://192.168.10.100/devmgr/v2 |
| 116 |
eseries_system_username: admin # Username for the storage system's for embedded web services rest api |
| 117 |
eseries_system_password: # Password for the storage system's for embedded web services rest api and when the admin password has not been set eseries_system_password will be used to set it. |
| 118 |
eseries_system_old_password: # Previous admin password. This is used to change the current admin password by setting this variable to the current |
| 119 |
# password and eseries_system_password to the new password. |
| 120 |
eseries_proxy_ssid: # Arbitrary string for the proxy to represent the storage system. eseries_system_serial will be used when not defined. |
| 121 |
eseries_template_api_url: # Template for the web services api url. Default: https://0.0.0.0:8443/devmgr/v2/ |
| 122 |
eseries_prefer_embedded: false # Overrides the default behavior of using Web Services Proxy when eseries_proxy_api_url is defined. This will only effect storage systems that have Embedded Web Services. |
| 123 |
eseries_validate_certs: true # Indicates Whether SSL certificates should be verified. Used for both embedded and proxy. Choices: true, false |
| 124 |
|
| 125 |
# Web Services Proxy information |
| 126 |
Note: eseries_proxy_* variables are required to discover storage systems prior to SANtricity OS version 11.60.2. |
| 127 |
eseries_proxy_api_url: # Url for the storage system's for proxy web services rest api. Example: https://192.168.10.100/devmgr/v2 |
| 128 |
eseries_proxy_api_username: # Username for the storage system's for proxy web services rest api. |
| 129 |
eseries_proxy_api_password: # Password for the storage system's for proxy web services rest api and when the admin password has not been set |
| 130 |
# eseries_proxy_api_password will be used to set it. |
| 131 |
|
| 132 |
# Global storage system information |
| 133 |
eseries_system_name: # Name of the storage system. |
| 134 |
eseries_system_cache_block_size: # Cache block size |
| 135 |
eseries_system_cache_flush_threshold: # Unwritten data will be flushed when exceeds this threshold |
| 136 |
eseries_system_autoload_balance: # Whether automatic load balancing should be enabled. Choices: enabled, disabled |
| 137 |
eseries_system_host_connectivity_reporting: # Whether host connectivity reporting should be enabled. Choices: enabled, disabled |
| 138 |
eseries_system_login_banner_message: # Message that appears prior to the login. |
| 139 |
eseries_system_controller_shelf_id: # Controller shelf identifier. |
| 140 |
eseries_system_default_host_type: # Only required when using something other than Linux kernel 3.10 or later with DM-MP (Linux DM-MP), |
| 141 |
# non-clustered Windows (Windows), or the storage system default host type is incorrect. Common definitions below: |
| 142 |
# - AIX MPIO: The Advanced Interactive Executive (AIX) OS and the native MPIO driver |
| 143 |
# - AVT 4M: Silicon Graphics, Inc. (SGI) proprietary multipath driver; refer to the SGI installation documentation for more information |
| 144 |
# - HP-UX: The HP-UX OS with native multipath driver |
| 145 |
# - Linux ATTO: The Linux OS and the ATTO Technology, Inc. driver (must use ATTO FC HBAs) |
| 146 |
# - Linux DM-MP: The Linux OS and the native DM-MP driver |
| 147 |
# - Linux Pathmanager: The Linux OS and the SGI proprietary multipath driver; refer to the SGI installation documentation for more information |
| 148 |
# - Mac: The Mac OS and the ATTO Technology, Inc. driver |
| 149 |
# - ONTAP: FlexArray |
| 150 |
# - Solaris 11 or later: The Solaris 11 or later OS and the native MPxIO driver |
| 151 |
# - Solaris 10 or earlier: The Solaris 10 or earlier OS and the native MPxIO driver |
| 152 |
# - SVC: IBM SAN Volume Controller |
| 153 |
# - VMware: ESXi OS |
| 154 |
# - Windows: Windows Server OS and Windows MPIO with a DSM driver |
| 155 |
# - Windows Clustered: Clustered Windows Server OS and Windows MPIO with a DSM driver |
| 156 |
# - Windows ATTO: Windows OS and the ATTO Technology, Inc. driver |
| 157 |
|
| 158 |
# Role-based username passwords |
| 159 |
eseries_system_monitor_password: # Storage system monitor username password |
| 160 |
eseries_system_security_password: # Storage system security username password |
| 161 |
eseries_system_storage_password: # Storage system storage username password |
| 162 |
eseries_system_support_password: # Storage system support username password |
| 163 |
|
| 164 |
# SSL/TLS certificate configurations |
| 165 |
eseries_client_certificate_common_certificates: # List of common client certificate file paths. These files will be appended to each client certificate list. |
| 166 |
eseries_client_certificate_certificates: # List of client certificate file paths |
| 167 |
eseries_server_certificate_common_certificates: # List of common server certificates. These files will be appended to each controller's server certificate list. |
| 168 |
eseries_server_certificate_common_passphrase: # Common passphrase for decrypting PEM (PKCS8) private key. |
| 169 |
eseries_server_certificate: |
| 170 |
controller_a: |
| 171 |
certificates: # List of server certificates for the storage systems controller A. Leave blank to use self-signed certificate. |
| 172 |
passphrase: # Passphrase for decrypting PEM (PKCS8) private key. |
| 173 |
controller_b: |
| 174 |
certificates: # List of server certificates for the storage systems controller B. Leave blank to use self-signed certificate. |
| 175 |
passphrase: # Passphrase for decrypting PEM (PKCS8) private key. |
| 176 |
|
| 177 |
# Storage management interface defaults |
| 178 |
Note: eseries_management_* variables have the lowest priority and will be overwritten by those found in eseries_management_interfaces; use these to defined host group defaults. |
| 179 |
eseries_management_config_method: # Default config method for all management interfaces. Choices: static, dhcp |
| 180 |
eseries_management_subnet_mask: # Default subnet mask for all management interfaces |
| 181 |
eseries_management_gateway: # Default gateway for all management interfaces |
| 182 |
eseries_management_dns_config_method: # Default DNS config method for all management interfaces |
| 183 |
eseries_management_dns_address: # Default primary DNS address for all management interfaces |
| 184 |
eseries_management_dns_address_backup: # Default backup DNS address for all management interfaces |
| 185 |
eseries_management_ntp_config_method: # Default NTP config method for all management interfaces |
| 186 |
eseries_management_ntp_address: # Default primary NTP address for all management interfaces |
| 187 |
eseries_management_ntp_address_backup: # Default backup NTP address for all management interfaces |
| 188 |
eseries_management_ssh: # Default SSH access for all management interfaces. Choices: true, false |
| 189 |
eseries_management_interfaces: |
| 190 |
config_method: # Config method for all management interfaces. Choices: static, dhcp |
| 191 |
subnet_mask: # Subnet mask for all management interfaces |
| 192 |
gateway_mask: # Gateway for all management interfaces |
| 193 |
dns_config_method: # DNS config method for all management interfaces |
| 194 |
dns_address: # Primary DNS address for all management interfaces |
| 195 |
dns_address_backup: # Backup DNS address for all management interfaces |
| 196 |
ntp_config_method: # NTP config method for all management interfaces |
| 197 |
ntp_address: # Primary NTP address for all management interfaces |
| 198 |
ntp_address_backup: # Backup NTP address for all management interfaces |
| 199 |
ssh: # SSH access for all management interfaces. Choices: true, false |
| 200 |
controller_a: # List of controller A ports |
| 201 |
- address: # IPv4 address for controller A |
| 202 |
config_method: # Config method for controller A. Choices: static, dhcp |
| 203 |
subnet_mask: # Subnet mask for controller A |
| 204 |
gateway: # Gateway for controller A |
| 205 |
dns_config_method: # DNS config method for controller A |
| 206 |
dns_address: # Primary DNS address for controller A |
| 207 |
dns_address_backup: # Backup DNS address for controller A |
| 208 |
ntp_config_method: # NTP config method for controller A |
| 209 |
ntp_address: # Primary NTP address for controller A |
| 210 |
ntp_address_backup: # Backup NTP address for controller A |
| 211 |
ssh: # SSH access for controller A. Choices: true, false |
| 212 |
controller_b: # List of controller B ports |
| 213 |
- (...) # Same as for controller A but for controller B. |
| 214 |
|
| 215 |
# Alerts configuration defaults |
| 216 |
eseries_alerts_state: # Whether to enable storage system alerts. Choices: enabled, disabled |
| 217 |
eseries_alerts_contact: # This allows owner to specify free-form contact information such as email or phone number. |
| 218 |
eseries_alerts_recipients: # List containing e-mails that should be sent notifications when alerts are issued. |
| 219 |
eseries_alerts_sender: # Sender email. This does not necessarily need to be a valid e-mail. |
| 220 |
eseries_alerts_server: # Fully qualified domain name, IPv4 address, or IPv6 address of the mail server. |
| 221 |
eseries_alerts_test: false # When changes are made to the storage system alert configuration a test e-mail will be sent. Choices: true, false |
| 222 |
eseries_alert_syslog_servers: # List of dictionaries where each dictionary contains a syslog server entry. [{"address": <syslog_address>, "port": 514}] |
| 223 |
eseries_alert_syslog_test: false # When changes are made to the alerts syslog servers configuration a test message will be sent to them. Choices: true, false |
| 224 |
|
| 225 |
# LDAP configuration defaults |
| 226 |
eseries_ldap_state: # Whether LDAP should be configured |
| 227 |
eseries_ldap_identifier: # The user attributes that should be considered for the group to role mapping |
| 228 |
eseries_ldap_user_attribute: # Attribute used to the provided username during authentication. |
| 229 |
eseries_ldap_bind_username: # User account that will be used for querying the LDAP server. |
| 230 |
eseries_ldap_bind_password: # Password for the bind user account |
| 231 |
eseries_ldap_server: # LDAP server URL. |
| 232 |
eseries_ldap_search_base: # Search base used for find user's group membership |
| 233 |
eseries_ldap_role_mappings: # Dictionary of user groups, each containing the list of access roles. |
| 234 |
# Role choices: storage.admin - allows users full read/writes access to storage objects and operations. |
| 235 |
# storage.monitor - allows users read-only access to storage objects and operations. |
| 236 |
# storage.admin - allows users access to hardware, diagnostic information, major event logs, |
| 237 |
# and other critical support-related functionality, but not the sorage configuration. |
| 238 |
# security.admin - allows users access to authentication/authorization configuration, as |
| 239 |
# well as the audit log configuration, adn certification management. |
| 240 |
|
| 241 |
# Drive firmware defaults |
| 242 |
eseries_drive_firmware_firmware_list: # Local path list for drive firmware. |
| 243 |
eseries_drive_firmware_wait_for_completion: # Forces drive firmware upgrades to wait for all associated tasks to complete. Choices: true, false |
| 244 |
eseries_drive_firmware_ignore_inaccessible_drives: # Forces drive firmware upgrades to ignore any inaccessible drives. Choices: true, false |
| 245 |
eseries_drive_firmware_upgrade_drives_online: # Forces drive firmware upgrades to be performed while I/Os are accepted. Choices: true, false |
| 246 |
|
| 247 |
# Controller firmware defaults |
| 248 |
eseries_firmware_nvsram: # Local path for NVSRAM file. |
| 249 |
eseries_firmware_firmware: # Local path for controller firmware file. |
| 250 |
eseries_firmware_wait_for_completion: # Forces controller firmware upgrade to wait until upgrade has completed before continuing. Choices: true, false |
| 251 |
eseries_firmware_clear_mel_events: # Forces firmware upgrade to be attempted regardless of the health check results. Choices: true, false |
| 252 |
|
| 253 |
# Auto-Support configuration defaults |
| 254 |
eseries_asup_state: # Whether auto support (ASUP) should be enabled. Choices: enabled, disabled |
| 255 |
eseries_asup_active: # Enables active monitoring which allows NetApp support personnel to request support data to resolve issues. Choices: true, false |
| 256 |
eseries_asup_days: # List of days of the week. Choices: monday, tuesday, wednesday, thursday, friday, saturday, sunday |
| 257 |
eseries_asup_start: # Hour of the day(s) to start ASUP bundle transmissions. Start time must be less than end time. Choices: 0-23 |
| 258 |
eseries_asup_end: # Hour of the day(s) to end ASUP bundle transmissions. Start time must be less than end time. Choices: 1-24 |
| 259 |
eseries_asup_method: # ASUP delivery method. Choices https, http, email (default: https) |
| 260 |
eseries_asup_routing_type: # ASUP delivery routing type for https or http. Choices: direct, proxy, script (default: direct) |
| 261 |
eseries_asup_proxy: # ASUP proxy delivery method information. |
| 262 |
host: # ASUP proxy host IP address or FQDN. When eseries_asup_routing_type==proxy this must be specified. |
| 263 |
port: # ASUP proxy host port. When eseries_asup_routing_type==proxy this must be specified. |
| 264 |
username: # ASUP proxy username. |
| 265 |
password: # ASUP proxy password. |
| 266 |
script: # ASUP proxy host script. |
| 267 |
eseries_asup_email: # ASUP email delivery configuration information |
| 268 |
server: # ASUP email server |
| 269 |
sender: # ASUP email sender |
| 270 |
test_recipient: # ASUP configuration mail test recipient |
| 271 |
eseries_maintenance_duration: # Duration in hours (1-72) the ASUP maintenance mode will be active |
| 272 |
eseries_maintenance_emails: # List of email addresses for maintenance notifications |
| 273 |
eseries_asup_validate: # Verify ASUP configuration prior to applying changes |
| 274 |
|
| 275 |
# Audit-log configuration defaults |
| 276 |
eseries_auditlog_enforce_policy: # Whether to make audit-log policy changes. Choices: true, false |
| 277 |
eseries_auditlog_force: # Forces audit-log to delete log messages when fullness threshold has been exceeded. Applicable when eseries_auditlog_full_policy=preventSystemAccess. Choices: true, false |
| 278 |
eseries_auditlog_full_policy: # Policy for what to do when record limit has been reached. Choices: overWrite, preventSystemAccess |
| 279 |
eseries_auditlog_log_level: # Filters logs based on the specified level. Choices: all, writeOnly |
| 280 |
eseries_auditlog_max_records: # Maximum number of audit-log messages retained. Choices: 100-50000. |
| 281 |
eseries_auditlog_threshold: # Memory full percentage threshold that audit-log will start issuing warning messages. Choices: 60-90 |
| 282 |
|
| 283 |
# Syslog configuration defaults |
| 284 |
eseries_syslog_state: # Whether syslog servers should be added or removed from storage system. Choices: present, absent |
| 285 |
eseries_syslog_address: # Syslog server IPv4 address or fully qualified hostname. |
| 286 |
eseries_syslog_test: # Whether a test messages should be sent to syslog server when added to the storage system. Choices: true, false |
| 287 |
eseries_syslog_protocol: # Protocol to be used when transmitting log messages to syslog server. Choices: udp, tc, tls |
| 288 |
eseries_syslog_port: # Port to be used when transmitting log messages to syslog server. |
| 289 |
eseries_syslog_components: # List of components log to syslog server. Choices: auditLog, (others may become available) |
| 290 |
|
| 291 |
License |
| 292 |
------- |
| 293 |
BSD-3-Clause |
| 294 |
|
| 295 |
Author Information |
| 296 |
------------------ |
| 297 |
Nathan Swartz (@ndswartz) |