Management of Pure Storage FlashBlade
You will need the purity_fb
python package in your python installation path that is running salt.
pip install purity_fb
Configure Pure Storage FlashBlade authentication. Use one of the following three methods.
pure_tags: fb: san_ip: management vip or hostname for the FlashBlade api_token: A valid api token for the FlashBlade being managed
maintainer: | Simon Dodsley (simon@purestorage.com) |
---|---|
maturity: | new |
requires: | purestorage |
platform: | all |
New in version 2019.2.0.
Create a filesystem on a Pure Storage FlashBlade.
Will return False if filesystem already exists.
New in version 2019.2.0.
*(rw,no_root_squash)
. Refer to Pure Storage documentation for formatting rules.CLI Example:
salt '*' purefb.fs_create foo proto=CIFS salt '*' purefb.fs_create foo size=10T
Delete a share on a Pure Storage FlashBlade.
Will return False if filesystem doesn't exist or is already in a deleted state.
New in version 2019.2.0.
CLI Example:
salt '*' purefb.fs_delete foo eradicate=True
Eradicate a deleted filesystem on a Pure Storage FlashBlade.
Will return False is filesystem is not in a deleted state.
New in version 2019.2.0.
CLI Example:
salt '*' purefb.fs_eradicate foo
Resize an existing filesystem on a Pure Storage FlashBlade.
Will return False if new size is less than or equal to existing size.
New in version 2019.2.0.
CLI Example:
salt '*' purefb.fs_extend foo 10T
Update filesystem on a Pure Storage FlashBlade.
Allows for change of NFS export rules and enabling/disabled of snapshotting capability.
New in version 2019.2.0.
CLI Example:
salt '*' purefb.fs_nfs_update foo rules='10.234.112.23(ro), 10.234.112.24(rw)' snapshot=True
Create a filesystem snapshot on a Pure Storage FlashBlade.
Will return False if filesystem selected to snap does not exist.
New in version 2019.2.0.
CLI Example:
salt '*' purefb.snap_create foo salt '*' purefb.snap_create foo suffix=bar
Delete a filesystem snapshot on a Pure Storage FlashBlade.
Will return False if selected snapshot does not exist.
New in version 2019.2.0.
CLI Example:
salt '*' purefb.snap_delete foo suffix=snap eradicate=True
Eradicate a deleted filesystem snapshot on a Pure Storage FlashBlade.
Will return False if snapshot is not in a deleted state.
New in version 2019.2.0.
CLI Example:
salt '*' purefb.snap_eradicate foo suffix=snap
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.purefb.html