storagegrid

42Modules4Plugins

Overview

Description

NetApp StorageGRID Collection

Readme

example workflow codecov Discord

=============================================================

netapp.storagegrid

NetApp StorageGRID Collection

Copyright (c) 2025 NetApp, Inc. All rights reserved. Specifications subject to change without notice.

=============================================================

Installation

ansible-galaxy collection install netapp.storagegrid

To use this collection add the following to the top of your playbook.

collections:
  - netapp.storagegrid

Requirements

  • ansible-core >= 2.17

Usage

All StorageGRID modules in this collection require an auth_token parameter for authentication. You can obtain an auth_token by running the na_sg_grid_login module as the first task in your playbook and registering its output. The token can be accessed as auth.na_sa_token(assuming you register the result as auth).

If you are performing a Tenant operation, ensure that the tenant_id parameter is also specified in the task and set to the Tenant Account ID. For example, "tenant_id": "01234567890123456789"

- name: Get Tenant Authorization token
  netapp.storagegrid.na_sg_grid_login:
    hostname: https://sgadmin.example.com
    username: admin
    password: admin123
    tenant_id: 01234567890123456789
    validate_certs: false
  register: auth

Subsequent tasks can leverage the registered auth token.

- name: Create a StorageGRID Tenant Account
  netapp.storagegrid.na_sg_grid_account:
    api_url: "https://sgadmin.example.com"
    auth_token: "{{ auth.na_sa_token }}"
    validate_certs: false
    state: present
    name: AnsibleTenant
    protocol: s3
    management: true
    use_own_identity_source: true
    allow_platform_services: true
    password: "mytenantrootpassword"
    quota_size: 10

Module documentation

https://docs.ansible.com/ansible/latest/collections/netapp/storagegrid

Versioning

Releasing, Versioning and Deprecation

Need help

Join our Discord and look for our #ansible channel.

Code of Conduct

This collection follows the Ansible project's Code of Conduct.

Release Notes

21.16.0

New Modules

  • na_sg_grid_recovery_package - downloading recovery package.
  • na_sg_grid_firewall - configure firewall settings on StorageGRID.
  • na_sg_grid_metrics - grab metrics on StorageGRID.
  • na_sg_pge_info - gather information from a StorageGRID node Pre-Grid Environment (PGE).
  • na_sg_grid_login - generate authentication token to login into grid/tenant account on StorageGRID.
  • na_sg_grid_untrusted_client_network - manage untrusted client network on StorageGRID.
  • na_sg_grid_ssh_security - configure ssh security setting, requires storageGRID 12.0 or later.
  • na_sg_org_cloud_mirror_replication - set the replication configuration for an S3 bucket on StorageGRID.

Minor Changes

  • na_sg_org_container - Enhanced the bucket policy.
  • na_sg_grid_gateway - new option closed_on_untrusted_client_network. Requires StorageGRID 11.8 or later.
  • na_sg_grid_gateway - parameter default_service_type allows option for management. Requires StorageGRID 11.8 or later.
  • na_sg_grid_info - added new endpoints in grid info module.
  • na_sg_org_info - added new endpoints in org info module.
  • na_sg_grid_audit_destination - new option access_logs_send, access_logs_facility, and access_logs_severity added to manage access log settings for syslog server.
  • all modules - add support for failure responses to include additional error details for easier troubleshooting.
  • na_sg_grid_group - new option manage_alerts and storage_admin added to management policy.
  • na_sg_org_container - user input for capacity_limit option changed from bytes to GB.
  • na_sg_org_bucket - user input for capacity_limit option changed from bytes to GB.
  • na_sg_grid_alert_receiver - new option smtp_username and smtp_password added in place of username and password.
  • na_sg_org_group - new options s3_console to control S3 console access and view_all_containers to view settings for all buckets added, requires StorageGRID version 11.8 or later.

Bug Fixes

  • na_sg_org_user_s3_key - fixed for incorrect handling of the unique_user_name.
  • na_sg_grid_ha_group - correct documentation section in the module for better understanding.
  • na_sg_grid_regions - correct documentation section in the module for better understanding.
  • na_sg_grid_info - Fix issue where the module incorrectly reported tasks as changed.
  • na_sg_org_info - Fix issue where the module incorrectly reported tasks as changed.
  • na_sg_grid_alert_receiver - correct example section in the module for better understanding.
  • na_sg_grid_autosupport - fix issue with setting up destinations option in the module.
  • na_sg_grid_autosupport - add support to handle error response from the API.
  • na_sg_grid_domain_name - fixed issue where additional domain names was not detected as changed.
  • na_sg_grid_identity_federation - fix issue with check mode response.
  • na_sg_org_identity_federation - fix issue with check mode response.
  • na_sg_grid_group - fix issue where activate_features parameter was deprecated but still present in code.
  • na_sg_grid_group - fix typo in parameter mapping for alarm_acknowledgement option.

21.15.0

New Modules

  • na_sg_grid_proxy_settings - configure proxy settings on StorageGRID.
  • na_sg_grid_domain_name - configure endpoint domain names on StorageGRID.
  • na_sg_grid_vlan_interface - configure VLAN interfaces on StorageGRID.
  • na_sg_grid_audit_destination - configure audit log destinations on StorageGRID.
  • na_sg_grid_autosupport - configure autosupport settings on StorageGRID.
  • na_sg_grid_snmp - configure SNMP agent for monitoring on StorageGRID.
  • na_sg_org_bucket - duplicate of na_sg_org_container module to manage bucket.
  • na_sg_grid_tenant - duplicate of na_sg_grid_account module to manage tenant account.
  • na_sg_grid_hotfix - apply hotfix on StorageGRID.
  • na_sg_grid_alert_receiver - configure alert receiver on StorageGRID.

Minor Changes

  • na_sg_org_container - new option capacity_limit added for bucket, requires storageGRID 11.9 or later.
  • na_sg_grid_ha_group - added check mode support in the module.
  • na_sg_org_container - Enhanced the Consistency setting.

Bug Fixes

  • na_sg_org_user - fix where existing users with no groups attached were not getting any groups added.

21.14.0

New Modules

  • na_sg_grid_ilm_policy - Added new module for ILM policy management.
  • na_sg_grid_ilm_policy_tag - Added new module for ILM policy tag management.
  • na_sg_grid_ilm_rule - Added new module for ILM rule management.
  • na_sg_grid_ilm_pool - Added new module for ILM pool management.
  • na_sg_grid_ec_profile - Added new module for Erasure coding profile management.

Minor Changes

  • na_sg_grid_info - LB endpoints and HA group in info module.
  • na_sg_grid_account - new option allow_compliance_mode and max_retention_days added for tenant account, requires storageGRID 11.9 or later.
  • na_sg_grid_group - new option read_only added for grid groups.
  • na_sg_org_group - new option read_only added for tenant groups.
  • na_sg_grid_gateway - new option enable_tenant_manager, enable_grid_manager and node_type added to support management interfaces.

21.13.0

Minor Changes

  • updated pipleine.

21.12.0

Minor Changes

  • na_sg_grid_account - New option description for setting additional identifying information for the tenant account.
  • na_sg_grid_account - New option allow_select_object_content for enabling use of the S3 SelectObjectContent API.

Bug Fixes

  • Removed fetch limit in API request and implemented pagination.

21.11.1

Bug Fixes

  • na_sg_org_container - fix versioning not enabled on initial bucket creation.

21.11.0

Minor Changes

  • na_sg_org_container - supports versioning configuration for S3 buckets available in StorageGRID 11.6+.

New Modules

  • na_sg_grid_client_certificate - Manage Client Certificates on StorageGRID.

21.10.0

Minor Changes

  • na_sg_grid_gateway - supports specifying HA Groups by name or UUID.

Bug Fixes

  • na_sg_org_group - fixed behaviour where update to s3_policy is ignored if management_policy is set.

New Modules

  • na_sg_grid_ha_group - Manage high availability (HA) group configuration on StorageGRID.
  • na_sg_grid_traffic_classes - Manage Traffic Classification Policy configuration on StorageGRID.

21.9.0

Minor Changes

  • na_sg_grid_gateway - supports load balancer endpoint binding available in StorageGRID 11.5+.
  • na_sg_org_container - supports creation of S3 Object Lock buckets available in StorageGRID 11.5+.

Bug Fixes

  • na_sg_grid_gateway - existing endpoints matched by name and port.
  • na_sg_grid_account - minor documentation fix.

21.8.0

Minor Changes

  • all modules - enable usage of Ansible module group defaults - for Ansible 2.12+.

21.7.0

New Modules

  • na_sg_grid_gateway: Manage Load balancer (gateway) endpoints

Minor Changes

  • Updated documentation - added RETURN block for each module

21.6.0

New Modules

  • na_sg_grid_certificate: Manage the Storage API and Grid Management certificates on StorageGRID.
  • na_sg_grid_identity_federation: Manage Grid identity federation.
  • na_sg_org_identity_federation: Manage Tenant identity federation.

Minor Changes

  • na_sg_org_container - supports deletion of buckets when state is set to absent.

Bug Fixes

  • na_sg_org_container - fix issue with applying compliance settings on buckets.

20.11.0

New Modules

  • na_sg_grid_info: Gather StorageGRID Grig subset information
  • na_sg_org_info: Gather StorageGRID Org subset information

Minor Changes

  • na_sg_grid_account: new option root_access_account for granting initial root access permissions for the tenant to an existing federated group

20.10.0

Breaking Changes

This version introduces a breaking change. All modules have been renamed from nac_sg_* to na_sg_*. Playbooks and Roles must be updated to match.

Bug Fixes

  • na_sg_grid_account: fixed documentation issue.
  • na_sg_grid_account: added no_log flag to password fields
  • na_sg_grid_group: fixed group name parsing
  • na_sg_org_group: fixed group name parsing

New Options

  • na_sg_grid_account: new option update_password for managing Tenant Account root password changes
  • na_sg_org_user: new option password and update_password for setting or updating Tenant User passwords
  • na_sg_grid_user: new option password and update_password for setting or updating Grid Admin User passwords

20.6.1

Minor Changes

  • Fixed documentation issue in README.md

Bug Fixes

  • nac_sg_org_container: fixed documentation issue.

20.6.0

Initial release of NetApp StorageGRID Ansible modules

New Modules

  • nac_sg_grid_account: create/modify/delete Tenant account
  • nac_sg_grid_dns: set Grid DNS servers
  • nac_sg_grid_group: create/modify/delete Grid admin group
  • nac_sg_grid_ntp: set Grid NTP servers
  • nac_sg_grid_regions: set Grid Regions
  • nac_sg_grid_user: create/modify/delete Grid admin user
  • nac_sg_org_container: create S3 bucket
  • nac_sg_org_group: create/modify/delete Tenant group
  • nac_sg_org_user: create/modify/delete Tenant user
  • nac_sg_org_user_s3_key: create/delete S3 key

License

GNU General Public License v3.0 See LICENSE to see the full text.

Certification

Product
2.4
2.5
2.6
DocumentationDependencies
No dependencies
There are currently no dependencies for this collection.
View in Automation Hub
Red Hat logoLinkedInYouTubeFacebookTwitter

Platforms

Products & services

Try, buy, sell

Help

About Red Hat Ecosystem Catalog

The Red Hat Ecosystem Catalog is the official source for discovering and learning more about the Red Hat Ecosystem of both Red Hat and certified third-party products and services.

We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2025 Red Hat