Skip to content

Commit

Permalink
fix(pillardata): clustered=>shared; fix yamllint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmcloughlin committed Sep 22, 2019
1 parent efff68c commit 137070c
Show file tree
Hide file tree
Showing 11 changed files with 104 additions and 151 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ Split volume group(s) into two::
devices:
- /dev/sdf
options:
clustered: n
shared: n
maxphysicalvolumes: 0
maxlogicalvolumes: 0

Expand Down Expand Up @@ -313,7 +313,7 @@ Create volume group(s)::
- /dev/sdb
- /dev/sdc
options:
clustered: n
shared: n
maxlogicalvolumes: 0
maxphysicalvolumes: 0
physicalextentsize: 1024
Expand Down
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
};
10 changes: 5 additions & 5 deletions lvm/defaults.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# vim: sts=2 ts=2 sw= et ai
#
---
lvm:
pkgs:
- lvm2
Expand All @@ -26,11 +27,10 @@ lvm:
vendor: kernel
format:
div: "="
ucl: False
json: False
ucl: false
json: false
vg:
enable_export: False
enable_cfgrestore: False
enable_export: false
enable_cfgrestore: false
pv: {}
lv: {}

14 changes: 4 additions & 10 deletions lvm/map.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
{%- import_yaml tplroot ~ "/defaults.yaml" as default_settings %}
{%- import_yaml tplroot ~ "/osfamilymap.yaml" as osfamilymap %}
{%- import_yaml tplroot ~ "/osmap.yaml" as osmap %}
{%- import_yaml tplroot ~ "/oscodename.yaml" as oscodename %}
{%- import_yaml tplroot ~ "/osfingermap.yaml" as osfingermap %}


{#- Retrieve the config dict only once #}
{%- set _config = salt['config.get'](tplroot, default={}) %}

Expand All @@ -24,15 +22,11 @@
osmap,
grain='os',
merge=salt['grains.filter_by'](
oscodename,
grain='oscodename',
osfingermap,
grain='osfinger',
merge=salt['grains.filter_by'](
osfingermap,
grain='osfinger',
merge=salt['grains.filter_by'](
_config,
default='lookup'
)
_config,
default='lookup'
)
)
)
Expand Down
37 changes: 0 additions & 37 deletions lvm/oscodename.yaml

This file was deleted.

7 changes: 4 additions & 3 deletions lvm/osfamilymap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
# osfamilymap: {}
---
Debian:
#modules:
# dm_thin_pool
# modules:
# dm_thin_pool
pkgs:
- lvm2
- thin-provisioning-tools
Expand All @@ -22,7 +22,6 @@ RedHat:
- lvm2
- cryptsetup
- device-mapper-persistent-data
- thin-provisioning-tools
profiles:
default:
thin-generic: {}
Expand All @@ -33,13 +32,15 @@ RedHat:

Arch:
pkgs:
- lvm2
- thin-provisioning-tools

OpenBSD:
rootgroup: wheel

Suse:
pkgs:
- lvm2
- thin-provisioning-tools

Gentoo: {}
Expand Down
4 changes: 2 additions & 2 deletions lvm/osfingermap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ CentOS-6:

CentOS-7:
pkgs:
- device-mapper-persistent-data #aka thin-provisioning-tools
- device-mapper-persistent-data # was thin-provisioning-tools

CentOS-8:
pkgs:
- device-mapper-persistent-data #aka thin-provisioning-tools
- device-mapper-persistent-data # was thin-provisioning-tools
6 changes: 4 additions & 2 deletions lvm/osmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
# os_family: RedHat
Fedora:
pkgs:
- device-mapper-persistent-data #aka thin-provisioning-tools
- lvm2
- device-mapper-persistent-data # was thin-provisioning-tools

# os_family: RedHat
Amazon:
pkgs:
- device-mapper-persistent-data #aka thin-provisioning-tools
- lvm2
- device-mapper-persistent-data # was thin-provisioning-tools
Loading

0 comments on commit 137070c

Please sign in to comment.