Skip to content

Commit

Permalink
Update metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Din Music <[email protected]>
  • Loading branch information
MusicDin committed Dec 9, 2024
1 parent 485dfa9 commit 276bb1b
Show file tree
Hide file tree
Showing 2 changed files with 236 additions and 0 deletions.
115 changes: 115 additions & 0 deletions doc/metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5899,6 +5899,121 @@ Specify either a cron expression (`<minute> <hour> <dom> <month> <dow>`), a comm
```

<!-- config group storage-powerflex-volume-conf end -->
<!-- config group storage-pure-pool-conf start -->
```{config:option} pure.api.token storage-pure-pool-conf
:shortdesc: "API token for PureStorage gateway authentication"
:type: "string"

```

```{config:option} pure.array.address storage-pure-pool-conf
:defaultdesc: "the IP address of the network interface for the selected service mode."
:shortdesc: "The IP address of the PureStorage FlashArray network interface that provides the service specified in pure.mode."
:type: "string"

```

```{config:option} pure.gateway storage-pure-pool-conf
:shortdesc: "Address of the PureStorage gateway"
:type: "string"

```

```{config:option} pure.gateway.verify storage-pure-pool-conf
:defaultdesc: "`true`"
:shortdesc: "Whether to verify the PureStorage gateway's certificate"
:type: "bool"

```

```{config:option} pure.mode storage-pure-pool-conf
:defaultdesc: "the discovered mode"
:shortdesc: "How volumes are mapped to the local server"
:type: "string"
The mode to use to map PureStorage volumes to the local server.
Currently, only `iscsi` is supported.
```

```{config:option} volume.size storage-pure-pool-conf
:defaultdesc: "`10GiB`"
:shortdesc: "Size/quota of the storage volume"
:type: "string"
Default PureStorage volume size rounded to 512B. The minimum size is 1MiB.
```

<!-- config group storage-pure-pool-conf end -->
<!-- config group storage-pure-volume-conf start -->
```{config:option} block.filesystem storage-pure-volume-conf
:condition: "block-based volume with content type `filesystem`"
:defaultdesc: "same as `volume.block.filesystem`"
:shortdesc: "File system of the storage volume"
:type: "string"
Valid options are: `btrfs`, `ext4`, `xfs`
If not set, `ext4` is assumed.
```

```{config:option} block.mount_options storage-pure-volume-conf
:condition: "block-based volume with content type `filesystem`"
:defaultdesc: "same as `volume.block.mount_options`"
:shortdesc: "Mount options for block-backed file system volumes"
:type: "string"

```

```{config:option} size storage-pure-volume-conf
:defaultdesc: "same as `volume.size`"
:shortdesc: "Size/quota of the storage volume"
:type: "string"
Default PureStorage volume size rounded to 512B. The minimum size is 1MiB.
```

```{config:option} snapshots.expiry storage-pure-volume-conf
:condition: "custom volume"
:defaultdesc: "same as `volume.snapshots.expiry`"
:scope: "global"
:shortdesc: "When snapshots are to be deleted"
:type: "string"
Specify an expression like `1M 2H 3d 4w 5m 6y`.
```

```{config:option} snapshots.pattern storage-pure-volume-conf
:condition: "custom volume"
:defaultdesc: "same as `volume.snapshots.pattern` or `snap%d`"
:scope: "global"
:shortdesc: "Template for the snapshot name"
:type: "string"
You can specify a naming template that is used for scheduled snapshots and unnamed snapshots.

The `snapshots.pattern` option takes a Pongo2 template string to format the snapshot name.

To add a time stamp to the snapshot name, use the Pongo2 context variable `creation_date`.
Make sure to format the date in your template string to avoid forbidden characters in the snapshot name.
For example, set `snapshots.pattern` to `{{ creation_date|date:'2006-01-02_15-04-05' }}` to name the snapshots after their time of creation, down to the precision of a second.

Another way to avoid name collisions is to use the placeholder `%d` in the pattern.
For the first snapshot, the placeholder is replaced with `0`.
For subsequent snapshots, the existing snapshot names are taken into account to find the highest number at the placeholder's position.
This number is then incremented by one for the new name.
```

```{config:option} snapshots.schedule storage-pure-volume-conf
:condition: "custom volume"
:defaultdesc: "same as `snapshots.schedule`"
:scope: "global"
:shortdesc: "Schedule for automatic volume snapshots"
:type: "string"
Specify either a cron expression (`<minute> <hour> <dom> <month> <dow>`), a comma-separated list of schedule aliases (`@hourly`, `@daily`, `@midnight`, `@weekly`, `@monthly`, `@annually`, `@yearly`), or leave empty to disable automatic snapshots (the default).
```

```{config:option} volatile.uuid storage-pure-volume-conf
:defaultdesc: "random UUID"
:scope: "global"
:shortdesc: "The volume's UUID"
:type: "string"

```

<!-- config group storage-pure-volume-conf end -->
<!-- config group storage-zfs-bucket-conf start -->
```{config:option} size storage-zfs-bucket-conf
:condition: "appropriate driver"
Expand Down
121 changes: 121 additions & 0 deletions lxd/metadata/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -6584,6 +6584,127 @@
]
}
},
"storage-pure": {
"pool-conf": {
"keys": [
{
"pure.api.token": {
"longdesc": "",
"shortdesc": "API token for PureStorage gateway authentication",
"type": "string"
}
},
{
"pure.array.address": {
"defaultdesc": "the IP address of the network interface for the selected service mode.",
"longdesc": "",
"shortdesc": "The IP address of the PureStorage FlashArray network interface that provides the service specified in pure.mode.",
"type": "string"
}
},
{
"pure.gateway": {
"longdesc": "",
"shortdesc": "Address of the PureStorage gateway",
"type": "string"
}
},
{
"pure.gateway.verify": {
"defaultdesc": "`true`",
"longdesc": "",
"shortdesc": "Whether to verify the PureStorage gateway's certificate",
"type": "bool"
}
},
{
"pure.mode": {
"defaultdesc": "the discovered mode",
"longdesc": "The mode to use to map PureStorage volumes to the local server.\nCurrently, only `iscsi` is supported.",
"shortdesc": "How volumes are mapped to the local server",
"type": "string"
}
},
{
"volume.size": {
"defaultdesc": "`10GiB`",
"longdesc": "Default PureStorage volume size rounded to 512B. The minimum size is 1MiB.",
"shortdesc": "Size/quota of the storage volume",
"type": "string"
}
}
]
},
"volume-conf": {
"keys": [
{
"block.filesystem": {
"condition": "block-based volume with content type `filesystem`",
"defaultdesc": "same as `volume.block.filesystem`",
"longdesc": "Valid options are: `btrfs`, `ext4`, `xfs`\nIf not set, `ext4` is assumed.",
"shortdesc": "File system of the storage volume",
"type": "string"
}
},
{
"block.mount_options": {
"condition": "block-based volume with content type `filesystem`",
"defaultdesc": "same as `volume.block.mount_options`",
"longdesc": "",
"shortdesc": "Mount options for block-backed file system volumes",
"type": "string"
}
},
{
"size": {
"defaultdesc": "same as `volume.size`",
"longdesc": "Default PureStorage volume size rounded to 512B. The minimum size is 1MiB.",
"shortdesc": "Size/quota of the storage volume",
"type": "string"
}
},
{
"snapshots.expiry": {
"condition": "custom volume",
"defaultdesc": "same as `volume.snapshots.expiry`",
"longdesc": "Specify an expression like `1M 2H 3d 4w 5m 6y`.",
"scope": "global",
"shortdesc": "When snapshots are to be deleted",
"type": "string"
}
},
{
"snapshots.pattern": {
"condition": "custom volume",
"defaultdesc": "same as `volume.snapshots.pattern` or `snap%d`",
"longdesc": "You can specify a naming template that is used for scheduled snapshots and unnamed snapshots.\n\nThe `snapshots.pattern` option takes a Pongo2 template string to format the snapshot name.\n\nTo add a time stamp to the snapshot name, use the Pongo2 context variable `creation_date`.\nMake sure to format the date in your template string to avoid forbidden characters in the snapshot name.\nFor example, set `snapshots.pattern` to `{{ creation_date|date:'2006-01-02_15-04-05' }}` to name the snapshots after their time of creation, down to the precision of a second.\n\nAnother way to avoid name collisions is to use the placeholder `%d` in the pattern.\nFor the first snapshot, the placeholder is replaced with `0`.\nFor subsequent snapshots, the existing snapshot names are taken into account to find the highest number at the placeholder's position.\nThis number is then incremented by one for the new name.",
"scope": "global",
"shortdesc": "Template for the snapshot name",
"type": "string"
}
},
{
"snapshots.schedule": {
"condition": "custom volume",
"defaultdesc": "same as `snapshots.schedule`",
"longdesc": "Specify either a cron expression (`\u003cminute\u003e \u003chour\u003e \u003cdom\u003e \u003cmonth\u003e \u003cdow\u003e`), a comma-separated list of schedule aliases (`@hourly`, `@daily`, `@midnight`, `@weekly`, `@monthly`, `@annually`, `@yearly`), or leave empty to disable automatic snapshots (the default).",
"scope": "global",
"shortdesc": "Schedule for automatic volume snapshots",
"type": "string"
}
},
{
"volatile.uuid": {
"defaultdesc": "random UUID",
"longdesc": "",
"scope": "global",
"shortdesc": "The volume's UUID",
"type": "string"
}
}
]
}
},
"storage-zfs": {
"bucket-conf": {
"keys": [
Expand Down

0 comments on commit 276bb1b

Please sign in to comment.