chef-ruby-lvm-attrib 0.3.13 → 0.3.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/.editorconfig +19 -0
  3. data/.envrc +1 -0
  4. data/.gitattributes +1 -0
  5. data/.github/CODEOWNERS +1 -5
  6. data/.gitignore +47 -7
  7. data/.markdownlint-cli2.yaml +5 -0
  8. data/.overcommit.yml +24 -0
  9. data/.yamllint +15 -0
  10. data/CHANGELOG.md +22 -22
  11. data/CODE_OF_CONDUCT.md +3 -1
  12. data/CONTRIBUTING.md +4 -1
  13. data/LICENSE +201 -0
  14. data/README.md +2 -18
  15. data/TESTING.md +3 -0
  16. data/VERSION +1 -1
  17. data/chef-ruby-lvm-attrib.gemspec +4 -4
  18. data/chefignore +115 -0
  19. data/kitchen.dokken.yml +113 -0
  20. data/kitchen.exec.yml +7 -0
  21. data/kitchen.global.yml +38 -0
  22. data/lib/lvm/attributes/2.03.17(2)/lvs.yaml +384 -0
  23. data/lib/lvm/attributes/2.03.17(2)/lvsseg.yaml +214 -0
  24. data/lib/lvm/attributes/2.03.17(2)/pvs.yaml +121 -0
  25. data/lib/lvm/attributes/2.03.17(2)/pvsseg.yaml +16 -0
  26. data/lib/lvm/attributes/2.03.17(2)/vgs.yaml +144 -0
  27. data/lib/lvm/attributes/2.03.22(2)/lvs.yaml +384 -0
  28. data/lib/lvm/attributes/2.03.22(2)/lvsseg.yaml +214 -0
  29. data/lib/lvm/attributes/2.03.22(2)/pvs.yaml +121 -0
  30. data/lib/lvm/attributes/2.03.22(2)/pvsseg.yaml +16 -0
  31. data/lib/lvm/attributes/2.03.22(2)/vgs.yaml +144 -0
  32. data/lib/lvm/attributes.rb +1 -2
  33. data/lib/lvm/version.rb +5 -0
  34. data/renovate.json +14 -2
  35. metadata +29 -12
  36. data/.github/ISSUE_TEMPLATE/BUG_TEMPLATE.md +0 -29
  37. data/.github/ISSUE_TEMPLATE/DESIGN_PROPOSAL.md +0 -40
  38. data/.github/ISSUE_TEMPLATE/ENHANCEMENT_REQUEST_TEMPLATE.md +0 -17
  39. data/.github/ISSUE_TEMPLATE/SUPPORT_QUESTION.md +0 -12
  40. data/.github/PULL_REQUEST_TEMPLATE.md +0 -15
  41. data/.github/dependabot.yml +0 -9
@@ -0,0 +1,113 @@
1
+ driver:
2
+ name: dokken
3
+ privileged: true
4
+ chef_version: <%= ENV['CHEF_VERSION'] || 'current' %>
5
+
6
+ transport: { name: dokken }
7
+ provisioner: { name: dokken }
8
+
9
+ platforms:
10
+ - name: almalinux-8
11
+ driver:
12
+ image: dokken/almalinux-8
13
+ pid_one_command: /usr/lib/systemd/systemd
14
+
15
+ - name: almalinux-9
16
+ driver:
17
+ image: dokken/almalinux-9
18
+ pid_one_command: /usr/lib/systemd/systemd
19
+
20
+ - name: amazonlinux-2023
21
+ driver:
22
+ image: dokken/amazonlinux-2023
23
+ pid_one_command: /usr/lib/systemd/systemd
24
+
25
+ - name: centos-7
26
+ driver:
27
+ image: dokken/centos-7
28
+ pid_one_command: /usr/lib/systemd/systemd
29
+
30
+ - name: centos-stream-8
31
+ driver:
32
+ image: dokken/centos-stream-8
33
+ pid_one_command: /usr/lib/systemd/systemd
34
+
35
+ - name: centos-stream-9
36
+ driver:
37
+ image: dokken/centos-stream-9
38
+ pid_one_command: /usr/lib/systemd/systemd
39
+
40
+ - name: debian-9
41
+ driver:
42
+ image: dokken/debian-9
43
+ pid_one_command: /bin/systemd
44
+
45
+ - name: debian-10
46
+ driver:
47
+ image: dokken/debian-10
48
+ pid_one_command: /bin/systemd
49
+
50
+ - name: debian-11
51
+ driver:
52
+ image: dokken/debian-11
53
+ pid_one_command: /bin/systemd
54
+
55
+ - name: debian-12
56
+ driver:
57
+ image: dokken/debian-12
58
+ pid_one_command: /bin/systemd
59
+
60
+ - name: fedora-latest
61
+ driver:
62
+ image: dokken/fedora-latest
63
+ pid_one_command: /usr/lib/systemd/systemd
64
+
65
+ - name: opensuse-leap-15
66
+ driver:
67
+ image: dokken/opensuse-leap-15
68
+ pid_one_command: /usr/lib/systemd/systemd
69
+
70
+ - name: oraclelinux-7
71
+ driver:
72
+ image: dokken/oraclelinux-7
73
+ pid_one_command: /usr/lib/systemd/systemd
74
+
75
+ - name: oraclelinux-8
76
+ driver:
77
+ image: dokken/oraclelinux-8
78
+ pid_one_command: /usr/lib/systemd/systemd
79
+
80
+ - name: oraclelinux-9
81
+ driver:
82
+ image: dokken/oraclelinux-9
83
+ pid_one_command: /usr/lib/systemd/systemd
84
+
85
+ - name: rockylinux-8
86
+ driver:
87
+ image: dokken/rockylinux-8
88
+ pid_one_command: /usr/lib/systemd/systemd
89
+
90
+ - name: rockylinux-9
91
+ driver:
92
+ image: dokken/rockylinux-9
93
+ pid_one_command: /usr/lib/systemd/systemd
94
+
95
+ - name: ubuntu-18.04
96
+ driver:
97
+ image: dokken/ubuntu-18.04
98
+ pid_one_command: /bin/systemd
99
+
100
+ - name: ubuntu-20.04
101
+ driver:
102
+ image: dokken/ubuntu-20.04
103
+ pid_one_command: /bin/systemd
104
+
105
+ - name: ubuntu-22.04
106
+ driver:
107
+ image: dokken/ubuntu-22.04
108
+ pid_one_command: /bin/systemd
109
+
110
+ - name: ubuntu-23.04
111
+ driver:
112
+ image: dokken/ubuntu-23.04
113
+ pid_one_command: /bin/systemd
data/kitchen.exec.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ driver: { name: exec }
3
+ transport: { name: exec }
4
+
5
+ platforms:
6
+ - name: macos-latest
7
+ - name: windows-latest
@@ -0,0 +1,38 @@
1
+ ---
2
+ provisioner:
3
+ name: chef_infra
4
+ product_name: chef
5
+ product_version: <%= ENV['CHEF_VERSION'] || 'latest' %>
6
+ channel: stable
7
+ install_strategy: once
8
+ chef_license: accept
9
+ enforce_idempotency: <%= ENV['ENFORCE_IDEMPOTENCY'] || true %>
10
+ multiple_converge: <%= ENV['MULTIPLE_CONVERGE'] || 2 %>
11
+ deprecations_as_errors: true
12
+ log_level: <%= ENV['CHEF_LOG_LEVEL'] || 'auto' %>
13
+
14
+ verifier:
15
+ name: inspec
16
+
17
+ platforms:
18
+ - name: almalinux-8
19
+ - name: almalinux-9
20
+ - name: amazonlinux-2023
21
+ - name: centos-7
22
+ - name: centos-stream-8
23
+ - name: centos-stream-9
24
+ - name: debian-9
25
+ - name: debian-10
26
+ - name: debian-11
27
+ - name: debian-12
28
+ - name: fedora-latest
29
+ - name: opensuse-leap-15
30
+ - name: oraclelinux-7
31
+ - name: oraclelinux-8
32
+ - name: oraclelinux-9
33
+ - name: rockylinux-8
34
+ - name: rockylinux-9
35
+ - name: ubuntu-18.04
36
+ - name: ubuntu-20.04
37
+ - name: ubuntu-22.04
38
+ - name: ubuntu-23.04
@@ -0,0 +1,384 @@
1
+ # These are column to object attribute mappings
2
+ # generated by ./bin/generate_field_data based on
3
+ # lvm2/lib/report/columns.h
4
+ ---
5
+ - :method: cache_dirty_blocks
6
+ :column: cache_dirty_blocks
7
+ :type_hint: Integer
8
+ :description: Dirty cache blocks.
9
+ - :method: cache_read_hits
10
+ :column: cache_read_hits
11
+ :type_hint: Integer
12
+ :description: Cache read hits.
13
+ - :method: cache_read_misses
14
+ :column: cache_read_misses
15
+ :type_hint: Integer
16
+ :description: Cache read misses.
17
+ - :method: cache_total_blocks
18
+ :column: cache_total_blocks
19
+ :type_hint: Integer
20
+ :description: Total cache blocks.
21
+ - :method: cache_used_blocks
22
+ :column: cache_used_blocks
23
+ :type_hint: Integer
24
+ :description: Used cache blocks.
25
+ - :method: cache_write_hits
26
+ :column: cache_write_hits
27
+ :type_hint: Integer
28
+ :description: Cache write hits.
29
+ - :method: cache_write_misses
30
+ :column: cache_write_misses
31
+ :type_hint: Integer
32
+ :description: Cache write misses.
33
+ - :method: convert_lv
34
+ :column: convert_lv
35
+ :type_hint: String
36
+ :description: For lvconvert
37
+ - :method: convert_lv_uuid
38
+ :column: convert_lv_uuid
39
+ :type_hint: String
40
+ :description: For lvconvert
41
+ - :method: copy_percent
42
+ :column: copy_percent
43
+ :type_hint: String
44
+ :description: For Cache
45
+ - :method: data_lv
46
+ :column: data_lv
47
+ :type_hint: String
48
+ :description: For cache/thin/vdo pools
49
+ - :method: data_lv_uuid
50
+ :column: data_lv_uuid
51
+ :type_hint: String
52
+ :description: For cache/thin/vdo pools
53
+ - :method: data_percent
54
+ :column: data_percent
55
+ :type_hint: String
56
+ :description: For snapshot
57
+ - :method: integritymismatches
58
+ :column: integritymismatches
59
+ :type_hint: Integer
60
+ :description: The number of integrity mismatches.
61
+ - :method: kernel_cache_policy
62
+ :column: kernel_cache_policy
63
+ :type_hint: String
64
+ :description: Cache policy used in kernel.
65
+ - :method: kernel_cache_settings
66
+ :column: kernel_cache_settings
67
+ :type_hint: String
68
+ :description: Cache settings/parameters as set in kernel
69
+ - :method: kernel_discards
70
+ :column: kernel_discards
71
+ :type_hint: String
72
+ :description: For thin pools
73
+ - :method: kernel_metadata_format
74
+ :column: kernel_metadata_format
75
+ :type_hint: Integer
76
+ :description: Cache metadata format used in kernel.
77
+ - :method: active
78
+ :column: lv_active
79
+ :type_hint: String
80
+ :description: Active state of the LV.
81
+ - :method: active_exclusively
82
+ :column: lv_active_exclusively
83
+ :type_hint: String
84
+ :description: Set if the LV is active exclusively.
85
+ - :method: active_locally
86
+ :column: lv_active_locally
87
+ :type_hint: String
88
+ :description: Set if the LV is active locally.
89
+ - :method: active_remotely
90
+ :column: lv_active_remotely
91
+ :type_hint: String
92
+ :description: Set if the LV is active remotely.
93
+ - :method: allocation_locked
94
+ :column: lv_allocation_locked
95
+ :type_hint: String
96
+ :description: Set if LV is locked against allocation changes.
97
+ - :method: allocation_policy
98
+ :column: lv_allocation_policy
99
+ :type_hint: String
100
+ :description: LV allocation policy.
101
+ - :method: ancestors
102
+ :column: lv_ancestors
103
+ :type_hint: String
104
+ :description: LV ancestors ignoring any stored history of the ancestry chain.
105
+ - :method: attr
106
+ :column: lv_attr
107
+ :type_hint: String
108
+ :description: Various attributes - see man page.
109
+ - :method: autoactivation
110
+ :column: lv_autoactivation
111
+ :type_hint: String
112
+ :description: Set if LV autoactivation is enabled.
113
+ - :method: check_needed
114
+ :column: lv_check_needed
115
+ :type_hint: String
116
+ :description: For thin pools and cache volumes
117
+ - :method: converting
118
+ :column: lv_converting
119
+ :type_hint: String
120
+ :description: Set if LV is being converted.
121
+ - :method: descendants
122
+ :column: lv_descendants
123
+ :type_hint: String
124
+ :description: LV descendants ignoring any stored history of the ancestry chain.
125
+ - :method: dm_path
126
+ :column: lv_dm_path
127
+ :type_hint: String
128
+ :description: Internal device-mapper pathname for LV (in /dev/mapper directory).
129
+ - :method: fixed_minor
130
+ :column: lv_fixed_minor
131
+ :type_hint: String
132
+ :description: Set if LV has fixed minor number assigned.
133
+ - :method: full_ancestors
134
+ :column: lv_full_ancestors
135
+ :type_hint: String
136
+ :description: LV ancestors including stored history of the ancestry chain.
137
+ - :method: full_descendants
138
+ :column: lv_full_descendants
139
+ :type_hint: String
140
+ :description: LV descendants including stored history of the ancestry chain.
141
+ - :method: full_name
142
+ :column: lv_full_name
143
+ :type_hint: String
144
+ :description: Full name of LV including its VG
145
+ - :method: health_status
146
+ :column: lv_health_status
147
+ :type_hint: String
148
+ :description: LV health status.
149
+ - :method: historical
150
+ :column: lv_historical
151
+ :type_hint: String
152
+ :description: Set if the LV is historical.
153
+ - :method: host
154
+ :column: lv_host
155
+ :type_hint: String
156
+ :description: Creation host of the LV
157
+ - :method: image_synced
158
+ :column: lv_image_synced
159
+ :type_hint: String
160
+ :description: Set if mirror/RAID image is synchronized.
161
+ - :method: initial_image_sync
162
+ :column: lv_initial_image_sync
163
+ :type_hint: String
164
+ :description: Set if mirror/RAID images underwent initial resynchronization.
165
+ - :method: layout
166
+ :column: lv_layout
167
+ :type_hint: String
168
+ :description: LV layout.
169
+ - :method: lockargs
170
+ :column: lv_lockargs
171
+ :type_hint: String
172
+ :description: Lock args of the LV used by lvmlockd.
173
+ - :method: major
174
+ :column: lv_major
175
+ :type_hint: String
176
+ :description: Persistent major number or -1 if not persistent.
177
+ - :method: merge_failed
178
+ :column: lv_merge_failed
179
+ :type_hint: String
180
+ :description: Set if snapshot merge failed.
181
+ - :method: merging
182
+ :column: lv_merging
183
+ :type_hint: String
184
+ :description: Set if snapshot LV is being merged to origin.
185
+ - :method: metadata_size
186
+ :column: lv_metadata_size
187
+ :type_hint: Integer
188
+ :description: For thin and cache pools
189
+ - :method: minor
190
+ :column: lv_minor
191
+ :type_hint: String
192
+ :description: Persistent minor number or -1 if not persistent.
193
+ - :method: modules
194
+ :column: lv_modules
195
+ :type_hint: String
196
+ :description: Kernel device-mapper modules required for this LV.
197
+ - :method: name
198
+ :column: lv_name
199
+ :type_hint: String
200
+ :description: Name. LVs created for internal use are enclosed in brackets.
201
+ - :method: parent
202
+ :column: lv_parent
203
+ :type_hint: String
204
+ :description: For LVs that are components of another LV
205
+ - :method: path
206
+ :column: lv_path
207
+ :type_hint: String
208
+ :description: Full pathname for LV. Blank for internal LVs.
209
+ - :method: profile
210
+ :column: lv_profile
211
+ :type_hint: String
212
+ :description: Configuration profile attached to this LV.
213
+ - :method: read_ahead
214
+ :column: lv_read_ahead
215
+ :type_hint: String
216
+ :description: Read ahead setting in current units.
217
+ - :method: role
218
+ :column: lv_role
219
+ :type_hint: String
220
+ :description: LV role.
221
+ - :method: size
222
+ :column: lv_size
223
+ :type_hint: Integer
224
+ :description: Size of LV in current units.
225
+ - :method: skip_activation
226
+ :column: lv_skip_activation
227
+ :type_hint: String
228
+ :description: Set if LV is skipped on activation.
229
+ - :method: snapshot_invalid
230
+ :column: lv_snapshot_invalid
231
+ :type_hint: String
232
+ :description: Set if snapshot LV is invalid.
233
+ - :method: tags
234
+ :column: lv_tags
235
+ :type_hint: String
236
+ :description: Tags
237
+ - :method: time
238
+ :column: lv_time
239
+ :type_hint: String
240
+ :description: Creation time of the LV
241
+ - :method: time_removed
242
+ :column: lv_time_removed
243
+ :type_hint: String
244
+ :description: Removal time of the LV
245
+ - :method: uuid
246
+ :column: lv_uuid
247
+ :type_hint: String
248
+ :description: Unique identifier.
249
+ - :method: when_full
250
+ :column: lv_when_full
251
+ :type_hint: String
252
+ :description: For thin pools
253
+ - :method: metadata_lv
254
+ :column: metadata_lv
255
+ :type_hint: String
256
+ :description: For cache/thin pools
257
+ - :method: metadata_lv_uuid
258
+ :column: metadata_lv_uuid
259
+ :type_hint: String
260
+ :description: For cache/thin pools
261
+ - :method: metadata_percent
262
+ :column: metadata_percent
263
+ :type_hint: String
264
+ :description: For cache and thin pools
265
+ - :method: mirror_log
266
+ :column: mirror_log
267
+ :type_hint: String
268
+ :description: For mirrors
269
+ - :method: mirror_log_uuid
270
+ :column: mirror_log_uuid
271
+ :type_hint: String
272
+ :description: For mirrors
273
+ - :method: move_pv
274
+ :column: move_pv
275
+ :type_hint: String
276
+ :description: For pvmove
277
+ - :method: move_pv_uuid
278
+ :column: move_pv_uuid
279
+ :type_hint: String
280
+ :description: For pvmove
281
+ - :method: origin
282
+ :column: origin
283
+ :type_hint: String
284
+ :description: For snapshots and thins
285
+ - :method: origin_size
286
+ :column: origin_size
287
+ :type_hint: Integer
288
+ :description: For snapshots
289
+ - :method: origin_uuid
290
+ :column: origin_uuid
291
+ :type_hint: String
292
+ :description: For snapshots and thins
293
+ - :method: pool_lv
294
+ :column: pool_lv
295
+ :type_hint: String
296
+ :description: For cache/thin/vdo volumes
297
+ - :method: pool_lv_uuid
298
+ :column: pool_lv_uuid
299
+ :type_hint: String
300
+ :description: For cache/thin/vdo volumes
301
+ - :method: raid_max_recovery_rate
302
+ :column: raid_max_recovery_rate
303
+ :type_hint: Integer
304
+ :description: For RAID1
305
+ - :method: raid_min_recovery_rate
306
+ :column: raid_min_recovery_rate
307
+ :type_hint: Integer
308
+ :description: For RAID1
309
+ - :method: raid_mismatch_count
310
+ :column: raid_mismatch_count
311
+ :type_hint: Integer
312
+ :description: For RAID
313
+ - :method: raid_sync_action
314
+ :column: raid_sync_action
315
+ :type_hint: String
316
+ :description: For RAID
317
+ - :method: raid_write_behind
318
+ :column: raid_write_behind
319
+ :type_hint: Integer
320
+ :description: For RAID1
321
+ - :method: raidintegrityblocksize
322
+ :column: raidintegrityblocksize
323
+ :type_hint: Integer
324
+ :description: The integrity block size
325
+ - :method: raidintegritymode
326
+ :column: raidintegritymode
327
+ :type_hint: String
328
+ :description: The integrity mode
329
+ - :method: seg_count
330
+ :column: seg_count
331
+ :type_hint: Integer
332
+ :description: Number of segments in LV.
333
+ - :method: snap_percent
334
+ :column: snap_percent
335
+ :type_hint: String
336
+ :description: For snapshots
337
+ - :method: sync_percent
338
+ :column: sync_percent
339
+ :type_hint: String
340
+ :description: For Cache
341
+ - :method: vdo_compression_state
342
+ :column: vdo_compression_state
343
+ :type_hint: String
344
+ :description: For vdo pools
345
+ - :method: vdo_index_state
346
+ :column: vdo_index_state
347
+ :type_hint: String
348
+ :description: For vdo pools
349
+ - :method: vdo_operating_mode
350
+ :column: vdo_operating_mode
351
+ :type_hint: String
352
+ :description: For vdo pools
353
+ - :method: vdo_saving_percent
354
+ :column: vdo_saving_percent
355
+ :type_hint: Integer
356
+ :description: For vdo pools
357
+ - :method: vdo_used_size
358
+ :column: vdo_used_size
359
+ :type_hint: Integer
360
+ :description: For vdo pools
361
+ - :method: vg_uuid
362
+ :column: vg_uuid
363
+ :type_hint: String
364
+ :description: For VolumeGroup to LogicalVolume relationship.
365
+ - :method: writecache_block_size
366
+ :column: writecache_block_size
367
+ :type_hint: Integer
368
+ :description: The writecache block size
369
+ - :method: writecache_error
370
+ :column: writecache_error
371
+ :type_hint: Integer
372
+ :description: Total writecache errors.
373
+ - :method: writecache_free_blocks
374
+ :column: writecache_free_blocks
375
+ :type_hint: Integer
376
+ :description: Total writecache free blocks.
377
+ - :method: writecache_total_blocks
378
+ :column: writecache_total_blocks
379
+ :type_hint: Integer
380
+ :description: Total writecache blocks.
381
+ - :method: writecache_writeback_blocks
382
+ :column: writecache_writeback_blocks
383
+ :type_hint: Integer
384
+ :description: Total writecache writeback blocks.