|
| 1 | +# Ansible Inventory Report |
| 2 | +This Ansible playbook generates a report of all the FSx for ONTAP file systems within an AWS account. |
| 3 | +In includes all the SVMs and Volumes. |
| 4 | + |
| 5 | +## Requirements |
| 6 | +- Ansible 2.9 or later |
| 7 | +- AWS Ansible collection |
| 8 | + |
| 9 | +## Installation |
| 10 | +There are three files used to create the report: |
| 11 | +- `generate_report.yaml`: The Ansible playbook that generates the report. |
| 12 | +- `processs_region.yaml`: A collection of tasks that will process all the FSxNs in a region. |
| 13 | +- `get_all_fsxn_regions.yaml`: A collection of tasks that retrieves all the AWS regions, that are enabled for the account, where FSx for ONTAP is available. |
| 14 | + |
| 15 | +## Configuration |
| 16 | +There are a variable that can be changed at the top of the `generate_report.yaml` file: |
| 17 | +- report\_name - Sets the file path of the report that will be generated. |
| 18 | + |
| 19 | +## Usage |
| 20 | +To generate the report, run the following command: |
| 21 | +```bash |
| 22 | +ansible-playbook generate_report.yaml |
| 23 | +``` |
| 24 | + |
| 25 | +## Output |
| 26 | +After a successful run, the report will be saved to the file path specified in the `report_name` variable. |
| 27 | +The fommat of the report is as follows: |
| 28 | +``` |
| 29 | +Region: <region_name> |
| 30 | + File System ID: <file-system-id-1> |
| 31 | + SVM ID: <svm-id-1-1> |
| 32 | + Volumes: |
| 33 | + <volume-id-1-1-1> <volume-size-in-megabytes> <security-style> <volume-type> |
| 34 | + <volume-id-1-1-2> <volume-size-in-megabytes> <security-style> <volume-type> |
| 35 | + SVM ID: <svm-id-1-2> |
| 36 | + Volumes: |
| 37 | + <volume-id-1-1-1> <volume-size-in-megabytes> <security-style> <volume-type> |
| 38 | + <volume-id-1-1-2> <volume-size-in-megabytes> <security-style> <volume-type> |
| 39 | + File System ID: <file-system-id-2> |
| 40 | + SVM ID: <svm-id-2-1> |
| 41 | + Volumes: |
| 42 | + <volume-id-2-1-1> <volume-size-in-megabytes> <security-style> <volume-type> |
| 43 | + <volume-id-2-1-2> <volume-size-in-megabytes> <security-style> <volume-type> |
| 44 | + SVM ID: <svm-id-2-2> |
| 45 | + Volumes: |
| 46 | + <volume-id-2-2-1> <volume-size-in-megabytes> <security-style> <volume-type> |
| 47 | + <volume-id-2-2-2> <volume-size-in-megabytes> <security-style> <volume-type> |
| 48 | +``` |
| 49 | +Where: |
| 50 | + - \<volume-size-in-megabytes> is the provisioned size of the volume in megabytes. |
| 51 | + - \<security-style> is the security style of the volume (e.g. UNIX, NTFS). |
| 52 | + - \<volume-type> is the type of the volume (e.g. RW, DP). |
| 53 | + |
| 54 | +## Author Information |
| 55 | + |
| 56 | +This repository is maintained by the contributors listed on [GitHub](https://github.com/NetApp/FSx-ONTAP-samples-scripts/graphs/contributors). |
| 57 | + |
| 58 | +## License |
| 59 | + |
| 60 | +Licensed under the Apache License, Version 2.0 (the "License"). |
| 61 | + |
| 62 | +You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0). |
| 63 | + |
| 64 | +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an _"AS IS"_ basis, without WARRANTIES or conditions of any kind, either express or implied. |
| 65 | + |
| 66 | +See the License for the specific language governing permissions and limitations under the License. |
| 67 | + |
| 68 | +© 2024 NetApp, Inc. All Rights Reserved. |
0 commit comments