Skip to content

Commit 03955c0

Browse files
committed
Fix versions, READMEs
1 parent 5501e0d commit 03955c0

File tree

8 files changed

+20
-38
lines changed

8 files changed

+20
-38
lines changed

plugins/modules/cephadm_crush_rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
---
3232
module: cephadm_crush_rule
3333
short_description: Manage Ceph Crush Replicated/Erasure Rule
34-
version_added: "1.6.0"
34+
version_added: "1.4.0"
3535
description:
3636
- Manage Ceph Crush rule(s) creation, deletion and updates.
3737
options:

plugins/modules/cephadm_ec_profile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
3434
short_description: Manage Ceph Erasure Code profile
3535
36-
version_added: "1.6.0"
36+
version_added: "1.4.0"
3737
3838
description:
3939
- Manage Ceph Erasure Code profile
@@ -56,12 +56,12 @@
5656
k:
5757
description:
5858
- Number of data-chunks the object will be split in
59-
required: true
59+
required: false
6060
m:
6161
description:
6262
- Compute coding chunks for each object and store them on different
6363
OSDs.
64-
required: true
64+
required: false
6565
crush_root:
6666
description:
6767
- The name of the crush bucket used for the first step of the CRUSH

plugins/modules/cephadm_key.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
3636
author: Sebastien Han <[email protected]>
3737
Michal Nasiadka <[email protected]>
38-
version_added: "1.6.0"
38+
version_added: "1.4.0"
3939
short_description: Manage Cephx key(s)
4040
4141
description:
@@ -125,7 +125,7 @@
125125
126126
- name: info cephx key
127127
ceph_key:
128-
name: "my_key""
128+
name: "my_key"
129129
state: info
130130
131131
- name: info cephx admin key (plain)
@@ -221,14 +221,13 @@ def create_key(module, result, name, secret, caps, import_key, dest): # noqa: E
221221
if not secret:
222222
secret = generate_secret()
223223

224-
args = ['get-or-create', name]
225-
args.extend(generate_caps(None, caps))
226-
args.extend(['-o', dest])
227-
228224
cmd_list.append(generate_ceph_authtool_cmd(
229225
name, secret, caps, dest))
230226

231227
if import_key:
228+
args = ['get-or-create', name]
229+
args.extend(generate_caps(None, caps))
230+
args.extend(['-o', dest])
232231
cmd_list.append(generate_ceph_cmd(sub_cmd=['auth'],
233232
args=args))
234233

plugins/modules/cephadm_pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
author: Guillaume Abrioux <[email protected]>
3232
Michal Nasiadka <[email protected]>
3333
short_description: Manage Ceph Pools
34-
version_added: "1.6.0"
34+
version_added: "1.4.0"
3535
description:
3636
- Manage Ceph pool(s) creation, deletion and updates.
3737
options:

roles/ec_profiles/README.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# keys
1+
# ec_profiles
22

3-
This role creates/deletes Ceph keys (cephx).
3+
This role creates/deletes Ceph EC profiles.
44

55
## Prerequisites
66

@@ -13,27 +13,15 @@ This role creates/deletes Ceph keys (cephx).
1313

1414
This role assumes the existence of the following groups:
1515

16-
* `ceph`
1716
* `mons`
18-
* `mgrs`
19-
* `osds`
20-
21-
Optional groups (those services will be deployed when group exists)::
22-
23-
* `rgws`
24-
25-
All Ceph hosts must be in the `ceph` group.
2617

2718
## Role variables
2819

29-
* `cephadm_keys`: A list of pools to define
20+
* `cephadm_ec_profiles`: A list of pools to define
3021
Example:
3122
```
32-
cephadm_keys:
33-
- name: client.user1
34-
- name: client.user2
35-
state: absent
23+
cephadm_ec_profiles:
3624
```
3725

38-
Check the `cephadm_key` module docs for supported key options.
26+
Check the `cephadm_ec_profile` module docs for supported key options.
3927

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cephadm_crush_rules: []
1+
cephadm_ec_profiles: []

roles/keys/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ This role assumes the existence of the following groups:
1515

1616
* `mons`
1717

18-
All Ceph hosts must be in the `ceph` group.
19-
2018
## Role variables
2119

2220
* `cephadm_keys`: A list of keys to define

roles/pools/README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,7 @@ This role creates/deletes Ceph pools.
1313

1414
This role assumes the existence of the following groups:
1515

16-
* `ceph`
1716
* `mons`
18-
* `mgrs`
19-
* `osds`
20-
21-
Optional groups (those services will be deployed when group exists)::
22-
23-
* `rgws`
2417

2518
All Ceph hosts must be in the `ceph` group.
2619

@@ -31,7 +24,11 @@ All Ceph hosts must be in the `ceph` group.
3124
```
3225
cephadm_pools:
3326
- name: pool1
27+
size: 3
28+
application: rbd
3429
- name: pool2
30+
size: 2
31+
application: rbd
3532
state: absent
3633
```
3734

0 commit comments

Comments
 (0)