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
- Contents supported by the storage, not all storage
44
-
types support all content types.
49
+
- Contents supported by the storage, not all storage types support all content types.
45
50
nodes:
46
51
required: false
47
52
type: list
53
+
elements: str
48
54
description:
49
55
- List of cluster node names where this storage is usable.
56
+
shared:
57
+
required: false
58
+
type: bool
59
+
description:
60
+
- Indicate that this is a single storage with the same contents on all nodes (or all listed in the O(nodes) option).
61
+
- It will not make the contents of a local storage automatically accessible to other nodes, it just marks an already shared storage as such!
50
62
path:
51
63
required: false
64
+
type: str
52
65
description:
53
66
- File system path.
54
67
pool:
55
68
required: false
69
+
type: str
56
70
description:
57
71
- Ceph/ZFS pool name.
58
72
monhost:
59
73
required: false
60
74
type: list
75
+
elements: str
61
76
description:
62
77
- Monitor addresses of the ceph cluster.
63
78
username:
64
79
required: false
80
+
type: str
65
81
description:
66
82
- User name (RBD) who access to ceph cluster.
67
83
krbd:
68
84
required: false
69
-
default: 0
85
+
type: bool
86
+
default: false
70
87
description:
71
88
- Always access rbd through krbd kernel module.
72
89
maxfiles:
73
90
required: false
91
+
type: int
74
92
default: 0
75
93
description:
76
94
- Maximal number of backup files per VM. 0 for unlimited.
95
+
- Deprecated, use O(prune_backups) instead. Replace either by C(keep-last) or, in case C(maxfiles) was C(0) for unlimited retention, by C(keep-all).
96
+
prune_backups:
97
+
required: false
98
+
type: list
99
+
elements: dict
100
+
description:
101
+
- Specifies how to prune backups.
102
+
- The retention options are processed in the order given. Each option only covers backups within its time period. The next option does not take care of already covered backups. It will only consider older backups.
103
+
suboptions:
104
+
option:
105
+
required: true
106
+
choices:
107
+
- keep-all
108
+
- keep-last
109
+
- keep-hourly
110
+
- keep-daily
111
+
- keep-weekly
112
+
- keep-monthly
113
+
- keep-yearly
114
+
description:
115
+
- The retention option to use.
116
+
- "C(keep-all): Keep all backups. This option is mutually exclusive with the other options."
117
+
- "C(keep-last): Keep the last n backups."
118
+
- "C(keep-hourly): Keep backups for the last n hours. If there is more than one backup for a single hour, only the latest is kept."
119
+
- "C(keep-daily): Keep backups for the last n days. If there is more than one backup for a single day, only the latest is kept."
120
+
- "C(keep-weekly): Keep backups for the last n weeks. If there is more than one backup for a single week, only the latest is kept. Weeks start on Monday and end on Sunday. The software uses the ISO week date-system and handles weeks at the end of the year correctly."
121
+
- "C(keep-monthly): Keep backups for the last n months. If there is more than one backup for a single month, only the latest is kept."
122
+
- "C(keep-yearly): Keep backups for the last n years. If there is more than one backup for a single year, only the latest is kept."
123
+
value:
124
+
required: true
125
+
description:
126
+
- The number of backups to keep.
127
+
- For C(keep-all) option, this value must be a C(bool). For all other options, this value must be an C(int).
77
128
export:
78
129
required: false
130
+
type: str
79
131
description:
80
132
- NFS export path
81
133
server:
82
134
required: false
135
+
type: str
83
136
description:
84
137
- Server IP or DNS name.
85
138
options:
86
139
required: false
140
+
type: str
87
141
description:
88
142
- NFS mount options.
89
143
vgname:
90
144
required: false
145
+
type: str
91
146
description:
92
147
- LVM volume group name. This must point to an existing volume group.
93
148
thinpool:
94
149
required: false
150
+
type: str
95
151
description:
96
152
- The name of the LVM thin pool.
97
153
sparse:
98
154
required: false
155
+
type: bool
99
156
description:
100
157
- Use ZFS thin-provisioning.
101
158
is_mountpoint:
102
159
required: false
160
+
type: bool
103
161
description:
104
162
- Specifies whether or not the given path is an externally managed
105
163
mountpoint.
106
164
namespace:
107
165
required: false
166
+
type: str
108
167
description:
109
168
- Specifies the Namespace that should be used on PBS
110
169
share:
111
170
required: false
171
+
type: str
112
172
description:
113
-
- Specifies the CIFS-Share to use
173
+
- Specifies the CIFS share to use
114
174
subdir:
115
175
required: false
116
-
- specifies the folder in the share dir to use for proxmox
117
-
(useful to seperate proxmox content from other content)
176
+
type: str
177
+
description:
178
+
- Specifies the folder in the share dir to use for proxmox (useful to separate proxmox content from other content)
118
179
domain:
119
180
required: false
120
-
- Specifies Realm to use for NTLM/LDAPS Authentification if using
121
-
an AD-Enabled share
181
+
type: str
182
+
description:
183
+
- Specifies Realm to use for NTLM/LDAPS authentication if using an AD-enabled share
122
184
123
185
author:
124
186
- Fabien Brachere (@fbrachere)
@@ -131,7 +193,9 @@
131
193
type: dir
132
194
path: /mydir
133
195
content: [ "images", "iso", "backup" ]
134
-
maxfiles: 3
196
+
prune_backups:
197
+
- option: keep-all
198
+
value: 1
135
199
- name: Create an RBD storage type
136
200
proxmox_storage:
137
201
name: ceph1
@@ -170,7 +234,7 @@
170
234
name: cephfs1
171
235
type: cephfs
172
236
content: [ "snippets", "vztmpl", "iso" ]
173
-
nodes: [ "proxmox1", "proxmox2"]
237
+
nodes: [ "proxmox1", "proxmox2"]
174
238
monhost:
175
239
- 10.0.0.1
176
240
- 10.0.0.2
@@ -228,6 +292,7 @@ def __init__(self, module):
228
292
self.disable=module.params['disable']
229
293
self.content=module.params['content']
230
294
self.nodes=module.params['nodes']
295
+
self.shared=module.params['shared']
231
296
self.type=module.params['type']
232
297
# Remaining PVE API arguments (depending on type) past this point
0 commit comments