Skip to content

Commit 828a517

Browse files
authored
Merge pull request #531 from ComputeCanada/ceph_doc
Add documentation on CephFS and BindMount types
2 parents f64b5e7 + e409968 commit 828a517

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,40 @@ profile::ceph::client::shares:
319319
```
320320
</details>
321321

322+
#### Type `CephFS`
323+
324+
Defines a CephFS share configuration used by `profile::ceph::client::shares`.
325+
326+
| Field | Description | Type | Required |
327+
| :---------------------------- | :-------------------------------------------------------------- | :--------------------------- | :------- |
328+
| `share_name` | Ceph share name | String | Yes |
329+
| `access_key` | Ceph key for the user | String | Yes |
330+
| `export_path` | CephFS export path to mount | Stdlib::Unixpath | Yes |
331+
| `bind_mounts` | Optional list of bind mounts created from the mounted share | Array[BindMount] | No |
332+
| `binds_fcontext_equivalence` | Optional SELinux fcontext equivalence target for bind mounts | Stdlib::Unixpath | No |
333+
334+
```yaml
335+
profile::ceph::client::shares:
336+
home:
337+
share_name: "home"
338+
access_key: "AQB...=="
339+
export_path: "/volumes/home"
340+
bind_mounts:
341+
- src: "/projects"
342+
dst: "/srv/projects"
343+
type: "directory"
344+
```
345+
346+
#### Type `BindMount`
347+
348+
Defines a bind mount created from a subpath of the mounted CephFS share.
349+
350+
| Field | Description | Type | Required |
351+
| :---- | :-------------------------------------------------- | :------------------------- | :------- |
352+
| `src` | Source path within the mounted share | Stdlib::Unixpath | Yes |
353+
| `dst` | Destination path on the host | Stdlib::Unixpath | Yes |
354+
| `type`| Optional target type (`file` or `directory`) | Enum['file','directory'] | No |
355+
322356
## profile::ceph::client::install
323357

324358
This class only installs the Ceph packages.

0 commit comments

Comments
 (0)