You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| volume\_name| All | Yes | None | The name of the volume you want to act one.|
26
-
| volume\_size| create\_volume | Yes | None | The size, in MiBs, of the volume to create.|
25
+
| fsxn\_hostname| All | Yes | None | The hostname, or IP address, of the FSxN where the volume resides.|
27
26
| vserver | All | Yes | None | The name of the vserver where the volume resides.|
28
-
|fsxn\_hostname| All | Yes | None | The hostname or IP address of the FSxN where the volume resides.|
29
-
|lambda\_function\_name| All |No| None | The name of the Workload Factory Link to use when issuing API calls to the FSx for ONTAP file system.|
30
-
|aws\_region | All | No | None | The AWS region where the Link lambda function resides.|
31
-
|secret\_name|Yes|All| None | The name of the AWS secret that contains the credentials to authenticate with the FSx for ONTAP file system.|
32
-
|snapshot\_name | create\_snapshot| Yes | None | The name of the snapshot to create.|
27
+
|secret\_name | All | Yes | None | The name of the AWS secret that contains the credentials to authenticate with the FSx for ONTAP file system.|
28
+
|volume\_name| All |Yes| None | The name of the volume you want to act on.|
29
+
|lambda\_function\_name| All | No | None | The name of the Workload Factory Link Lambda function to use when issuing API calls to the FSx for ONTAP file system.|
30
+
|aws\_region|All|No| None | The AWS region where the Lambda function resides.|
31
+
|volume\_size| create\_volume| Yes | None | The size, in MiBs, of the volume to create.|
33
32
| security\_style | create\_volume | No | UNIX | The security style to use when creating the volume. Valid options are UNIX or NTFS.|
34
33
| aggr | create\_volume | No | aggr1 | The name of the aggregate to create the volume on.|
35
34
| volume\_type | create\_volume | No | RW | The type of volume to create. Valid options are RW and DP.|
36
35
| junction\_path | create\_volume | No |`/<volume_name>`| The junction path to use when creating the volume.|
36
+
| snapshot\_name | create\_snapshot | Yes | None | The name of the snapshot to create.|
37
37
38
-
A convenient way to set all the required variable is to put them into a file named `varabless.yaml`.
38
+
A convenient way to set all the required variable is to put them into a file named `variables.yaml`.
39
39
All the playbooks will attempt to load this file and use any variables defined in it. Otherwise,
40
-
you can set them by using the `--extra-vars` flag when running the playbook.
40
+
you can set them by using the `--extra-vars` flag when running the playbook. An example `variables.yaml`
41
+
file is included in this folder.
41
42
43
+
## Authentication
42
44
So that you don't have to hardcode secrets into the playbook, or variable files, all the playbooks
43
45
will leverage an AWS Secrets Manager secret to retrieve the credentials for FSx for ONTAP file system.
44
46
@@ -51,6 +53,66 @@ Each secret should have two `keys`:
51
53
Since this script leverages the AWS Ansible collection you will need to provide authentication credentials for it.
52
54
You can read more about how to do that [here](https://docs.ansible.com/ansible/latest/collections/amazon/aws/docsite/aws_ec2_guide.html#authentication).
53
55
56
+
## Example Run:
57
+
Here is an example of running the `create_volume.yaml` playbook to create a new
58
+
volume named `vol1` with a size of 1024 MiBs on the `fsx` vserver:
Copy file name to clipboardExpand all lines: Infrastructure_as_Code/Ansible/snapmirror_report/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,8 +23,8 @@ the number before it represents the number of seconds. For example, 'P1DT2H3M4S'
23
23
- A file with a list of the FSx for ONTAP file systems and their corresponding secrets. The format of the file is described below.
24
24
25
25
## Installation
26
-
There are three files used to create the report:
27
-
-`generate_report.yaml`: The main Ansible playbook that generates the report.
26
+
There are three components to this playbook:
27
+
-`generate_report.yaml`: The main Ansible playbook that calls the other files.
28
28
-`get_all_fsxn_regions.yaml`: A collection of tasks that retrieves all the regions, that are enabled for the account, where FSx for ONTAP is also available.
29
29
-`processs_region.yaml`: A collection of tasks that will process all the FSxNs within a region.
0 commit comments