Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OI #1

Open
wants to merge 182 commits into
base: master
Choose a base branch
from
Open

OI #1

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
182 commits
Select commit Hold shift + click to select a range
ca1535d
Add xfs_growfs for xfs systemfile type.
Sep 23, 2016
1a25117
Merge pull request #1 from olo-dw/xfs_growfs
mrlesmithjr Sep 23, 2016
99366fa
Replace system-storage-manager with lvm2 in centos
rohitkothari Sep 30, 2016
3577d1e
Merge pull request #3 from rohitkothari/patch-1
mrlesmithjr Sep 30, 2016
a82877c
First commit of CHANGELOG
mrlesmithjr Oct 2, 2016
3ad9652
Changes to adjust to removal of bare vars in Ansible 2.2
zoobert Nov 17, 2016
7749d0c
Fixed issue with idempotency of lvol module. See ansible-module-extra…
zoobert Nov 18, 2016
172e6e3
Merge pull request #6 from zoobert/bug-fixes
mrlesmithjr Nov 18, 2016
f2d06d0
added support for btrfs
StefanHeimberg Apr 5, 2017
9844b5f
Merge pull request #7 from StefanHeimberg/feature/btrfs_support
mrlesmithjr Apr 5, 2017
0d255cb
Fixes issue #8
mrlesmithjr May 5, 2017
26ed7d8
Merge pull request #9 from mrlesmithjr/fixes/issue#8
mrlesmithjr May 5, 2017
386cc28
Addresses issue #10
mrlesmithjr Jun 11, 2017
075acb3
Merge pull request #11 from mrlesmithjr/enhancement/#10
mrlesmithjr Jun 11, 2017
66368de
Add opts and mopts support
davidcaste Dec 17, 2017
51b79c5
Merge pull request #13 from davidcaste/feat/add-opts-mopts
mrlesmithjr Mar 24, 2018
a0c7847
Support not formatting volumes.
oneswig Oct 31, 2018
4a58cb3
Update tasks/manage_lvm.yml
markgoddard Oct 31, 2018
563aa1e
Fix indentation
markgoddard Oct 31, 2018
118ec79
Merge pull request #17 from stackhpc/no-filesystem
mrlesmithjr Nov 1, 2018
5603c5f
Added Travis testing and hooks for galaxy
mrlesmithjr Dec 5, 2018
9f4afa7
Fixing Travis testing and yamllint issues
mrlesmithjr Dec 5, 2018
b3ef85d
Added skip codes for ansible-lint
mrlesmithjr Dec 5, 2018
25dc548
Merge pull request #18 from mrlesmithjr/fix-travis-testing
mrlesmithjr Dec 5, 2018
183087e
Resolves #21
mrlesmithjr Apr 2, 2019
bd86607
Merge pull request #22 from mrlesmithjr/issue#21
mrlesmithjr Apr 3, 2019
8957630
Adding SWAP FileSystem Exception
faisalnizam Mar 26, 2019
0f428a0
FIX LINT FOR BUILD
faisalnizam Mar 26, 2019
9788ee5
issue #23: extra parenthesis
mikap83 Apr 8, 2019
092546c
Merge pull request #24 from mikap83/patch-1
mrlesmithjr Apr 8, 2019
b15ecea
Update debian.yml
emper0r Jun 26, 2019
fc49e1d
Merge pull request #25 from emper0r/patch-1
mrlesmithjr Jun 27, 2019
d8b3a4e
bug: Resize XFS parts is not working
Oct 14, 2019
fe86056
Merge pull request #27 from smutel/bug-resize-xfs
mrlesmithjr Nov 18, 2019
ea91092
molecule test and idempotence
Tcharl Apr 15, 2020
ba5d929
use dots instead of carets
Tcharl Apr 15, 2020
17e8ec1
configured molecule and fix xfs on centos
Tcharl Apr 15, 2020
96fa78d
remove deprecated machines
Tcharl Apr 15, 2020
47f8dae
github action lint
Tcharl Apr 15, 2020
12c4dad
Merge pull request #1 from OsgiliathEnterprise/id2
Tcharl Apr 15, 2020
1c3818e
mistake on remove volume
Tcharl Apr 15, 2020
c3fea6e
Merge pull request #2 from OsgiliathEnterprise/id2
Tcharl Apr 15, 2020
f81937e
makes xfs mountpoint repeatable
Tcharl Apr 15, 2020
b955a6f
remove unwanted newline
Tcharl Apr 15, 2020
1a64831
Merge pull request #3 from OsgiliathEnterprise/id2
Tcharl Apr 15, 2020
dc1ad5a
Merge pull request #1 from Tcharl/id2
Tcharl Apr 15, 2020
050f8a5
typo in check
Tcharl Apr 15, 2020
6c13d12
Merge pull request #2 from Tcharl/id2
Tcharl Apr 15, 2020
2f63eab
code smells
Tcharl Apr 17, 2020
8666645
Merge pull request #4 from Tcharl/id2
Tcharl Apr 17, 2020
dadb9f2
remove unwanted files
Tcharl Apr 17, 2020
f1a9284
Merge pull request #5 from Tcharl/id2
Tcharl Apr 17, 2020
d3256a3
Merge pull request #3 from Tcharl/id2
Tcharl Apr 17, 2020
4267de6
Merge pull request #32 from OsgiliathEnterprise/id2
mrlesmithjr Apr 19, 2020
7e2a076
Added Python requirements for testing, etc.
mrlesmithjr Apr 19, 2020
c17a76f
Merge pull request #34 from mrlesmithjr/issue-33
mrlesmithjr Apr 19, 2020
7fd5a8e
Only doing a Molecule lint at this time
mrlesmithjr Apr 19, 2020
45315cf
Merge pull request #36 from mrlesmithjr/issue-35
mrlesmithjr Apr 19, 2020
4a1177e
use xfs_info on mountpoint instead of lvm
Tcharl Apr 21, 2020
db21878
Merge pull request #4 from Tcharl/id2
Tcharl Apr 21, 2020
7d3e90f
Merge pull request #40 from Tcharl/id2
mrlesmithjr Apr 22, 2020
325c2d6
install xfs
Tcharl Apr 23, 2020
4697b37
Merge pull request #8 from Tcharl/master
Tcharl Apr 23, 2020
883055c
lint
Tcharl Apr 23, 2020
816d44a
Merge pull request #9 from Tcharl/id2
Tcharl Apr 23, 2020
1e997a3
Merge pull request #5 from Tcharl/id2
Tcharl Apr 23, 2020
c6a7034
remove unused molecule env property
Tcharl Apr 24, 2020
eda5440
Merge pull request #10 from Tcharl/id2
Tcharl Apr 24, 2020
5267237
Merge pull request #41 from OsgiliathEnterprise/master
mrlesmithjr Apr 26, 2020
89360e3
Trying to fix the subelements lookup for a single element
mrlesmithjr Apr 27, 2020
881d5d7
Fixing syntax issue for wantlist
mrlesmithjr Apr 27, 2020
9eca9e3
Merge pull request #43 from mrlesmithjr/issue-42
mrlesmithjr Apr 27, 2020
e423ebd
Fix original issue
mrlesmithjr Apr 27, 2020
b7c3cf9
Merge pull request #44 from mrlesmithjr/issue-42
mrlesmithjr Apr 27, 2020
643c7b6
Updated Galaxy meta info
mrlesmithjr Apr 19, 2020
a6b07da
Added example playbook
mrlesmithjr Apr 19, 2020
94be28c
Updated repo info
mrlesmithjr Apr 19, 2020
52c0270
Updated Molecule Vagrant boxes for testing
mrlesmithjr Apr 27, 2020
ec0737d
Cleaned up distro specific tasks
mrlesmithjr Apr 19, 2020
c9a9e16
Cleaned up conditionals logic
mrlesmithjr Apr 19, 2020
9f37fa3
Cleaned up tasks
mrlesmithjr Apr 19, 2020
f2df804
Merge pull request #11 from OsgiliathEnterprise/id2
Tcharl May 11, 2020
b731c20
rename manage_lvm.yml due to recursive parsing error
Tcharl May 11, 2020
78205e5
Merge pull request #12 from Tcharl/id2
Tcharl May 11, 2020
976ff31
avoid error when lv not defined
Tcharl May 11, 2020
59ffcfa
avoid error when lv not defined
Tcharl May 11, 2020
b7cef8e
avoid error when lv not defined
Tcharl May 11, 2020
0621cad
avoid error when lv not defined
Tcharl May 11, 2020
c40f9b7
testing singl lv and only vg
Tcharl May 11, 2020
62fc5a5
testing singl lv and only vg
Tcharl May 11, 2020
69e25ef
improve tests
Tcharl May 11, 2020
6ee7279
improve tests
Tcharl May 11, 2020
94582de
use symbolic links instead of replicating files
Tcharl May 11, 2020
79f4787
Merge pull request #13 from Tcharl/master
Tcharl May 11, 2020
9ead2c9
Merge pull request #38 from mrlesmithjr/issue-37
mrlesmithjr May 14, 2020
15b2b7b
rebased mrjsmith
Tcharl May 14, 2020
96fd3b2
rebase done
Tcharl May 14, 2020
9c04be9
Merge pull request #14 from OsgiliathEnterprise/rebased
Tcharl May 14, 2020
ed0eb14
xfs resize
Tcharl Jun 7, 2020
b288695
lint
Tcharl Jun 7, 2020
88489df
Merge pull request #45 from OsgiliathEnterprise/master
mrlesmithjr Jun 8, 2020
f1a5463
Merge pull request #48 from Tcharl/rebased
mrlesmithjr Jun 8, 2020
34e4f08
* New: support mitigation for aws ec2 nvme random device name assignment
Roxyrob Mar 16, 2021
f87c42a
* Fix: remove too many blank lines (molecule)
Roxyrob Mar 16, 2021
535b410
* Fix: follow best practice for pipe in shell command
Roxyrob Mar 16, 2021
5c3e601
* Fix: lint
Roxyrob Mar 17, 2021
19e56ac
* Fix: improve centos7/8 recognize scsi disk resize without reboot
Roxyrob Mar 17, 2021
1d57a46
* Fix: pvresize waiting for new collection lvg native support
Roxyrob Mar 17, 2021
e4bc8a9
* Fix: lint
Roxyrob Mar 17, 2021
2492c96
* Fix: allow automatic pvresize also for ansible ersion 2.10 or above…
Roxyrob Mar 17, 2021
48e3be3
* Refactor: task comment review
Roxyrob Mar 17, 2021
cb792e5
* Refactor: aws code in its own tasks file to mitigate concerns about…
Roxyrob Mar 18, 2021
1bb5606
* Doc: set subfile task comments
Roxyrob Mar 19, 2021
773ce28
Merge pull request #57 from Roxyrob/issue-51-nvme
mrlesmithjr Apr 18, 2021
506da47
Create stale.yml
mrlesmithjr Apr 23, 2021
fddf980
Closes Add Probot configs for new apps #63
mrlesmithjr Apr 24, 2021
098bd79
Merge pull request #64 from mrlesmithjr/issue-63-Add_Probot_configs_f…
mrlesmithjr Apr 24, 2021
73b6bce
Use ansible_facts to reference facts
markgoddard May 13, 2021
73db3c7
Merge pull request #68 from stackhpc/ansible-facts
mrlesmithjr Jul 26, 2021
9730043
Fix Galaxy meta info
mrlesmithjr Nov 22, 2021
9446ef2
Fix Galaxy meta info
mrlesmithjr Nov 22, 2021
ac014a1
Fix Python version
mrlesmithjr Nov 22, 2021
3b00335
Merge pull request #72 from mrlesmithjr/mrlesmithjr/issue71_Fix-Galax…
mrlesmithjr Nov 22, 2021
558cd74
Bump ansible from 2.9.7 to 4.2.0
dependabot[bot] Nov 22, 2021
2d020f2
Add Ansible Galaxy release workflow
mrlesmithjr Nov 22, 2021
3ea52cd
Merge pull request #76 from mrlesmithjr:mrlesmithjr/issue75_Add-Ansib…
mrlesmithjr Nov 22, 2021
fae4332
Merge pull request #69 from mrlesmithjr/dependabot/pip/ansible-4.2.0
mrlesmithjr Nov 22, 2021
cb3a75c
CentOS: Optimise package installs
cityofships Nov 16, 2021
59ca2aa
Pythonr reqs exported after #69
mrlesmithjr Nov 22, 2021
71bc56d
Merge pull request #70 from cityofships/optimize
mrlesmithjr Nov 22, 2021
0bfd390
centos: Skip SCSI tasks on NVMe only hosts
mnasiadka Nov 22, 2021
263c8d2
Merge pull request #73 from mnasiadka/mnasiadka/nvme_only
mrlesmithjr Jan 4, 2022
71a3930
Fix syntax error on tasks/centos.yml
Jan 13, 2022
1f966d2
Merge pull request #81 from christian7007/master
mrlesmithjr Jan 13, 2022
6e74c97
enh: Add variable rescan_scsi_command
smutel Apr 11, 2022
376f2ce
Merge pull request #86 from smutel/FixIssue85
mrlesmithjr Apr 26, 2022
84bfdf5
skip resizing swap filesystem
msielicki May 27, 2022
e9ff7e3
fix for debian testing / sid
msielicki May 27, 2022
9e69c74
Merge pull request #91 from msielicki/fix_for_debian_testing
mrlesmithjr May 30, 2022
ca90344
Merge pull request #89 from msielicki/master
mrlesmithjr May 30, 2022
b5bf2d2
Pass through opts to community.general.filesystem when creating a fil…
Aethylred Aug 4, 2022
a28791c
Change ansible_distribution usage to ansible_facts
mnasiadka Oct 13, 2022
ea2e60f
Merge pull request #96 from mnasiadka/ansible_facts_distribution
mrlesmithjr Oct 19, 2022
483ed18
Bump gitpython from 3.1.24 to 3.1.30
dependabot[bot] Apr 16, 2023
6e4f217
Bump requests from 2.26.0 to 2.31.0
dependabot[bot] May 23, 2023
aa66814
Merge pull request #101 from mrlesmithjr/dependabot/pip/requests-2.31.0
mrlesmithjr May 26, 2023
8dc044f
Merge pull request #100 from mrlesmithjr/dependabot/pip/gitpython-3.1.30
mrlesmithjr May 26, 2023
12346fa
Update README.md
mrlesmithjr May 29, 2023
74e7ca5
Pass through opts to community.general.filesystem when creating a fil…
Aethylred Aug 4, 2022
d6dd518
Merge branch 'fsopts' of github.com:Aethylred/ansible-manage-lvm into…
Aethylred May 30, 2023
47c9807
Bump cryptography from 36.0.0 to 41.0.0
dependabot[bot] Jun 2, 2023
c020c6e
Merge pull request #103 from mrlesmithjr/dependabot/pip/cryptography-…
mrlesmithjr Jun 4, 2023
55b1745
Merge branch 'fsopts' of github.com:Aethylred/ansible-manage-lvm into…
mrlesmithjr Jun 15, 2023
a623248
Fixing Molecule lint test
mrlesmithjr Jun 15, 2023
84ba07b
Merge branch 'Aethylred-fsopts'
mrlesmithjr Jun 15, 2023
1b7e7e6
Removed Travis testing and old changelog
mrlesmithjr Jun 15, 2023
de05072
Updated Python requirements
mrlesmithjr Jun 15, 2023
e35a250
Added pre-commit config
mrlesmithjr Jun 15, 2023
51b7015
Updated Python requirements
mrlesmithjr Jun 15, 2023
d27a380
Fixed linting issues
mrlesmithjr Jun 15, 2023
f901fe4
Removed molecule lint as it doesn't exist anymore
mrlesmithjr Jun 15, 2023
3f3a7c7
Fixed linting issues with templates
mrlesmithjr Jun 15, 2023
220de2d
Fixed linting issues found by black
mrlesmithjr Jun 15, 2023
11056e2
Merge pull request #104 from mrlesmithjr/refactoring
mrlesmithjr Jun 15, 2023
4fbcf1c
Bump cryptography from 41.0.1 to 41.0.6
dependabot[bot] Nov 28, 2023
8c3bca3
Merge pull request #113 from mrlesmithjr/dependabot/pip/cryptography-…
mrlesmithjr Dec 1, 2023
1d0fa70
Bump ansible from 6.6.0 to 8.5.0
dependabot[bot] Dec 29, 2023
564d3d1
Merge pull request #114 from mrlesmithjr/dependabot/pip/ansible-8.5.0
mrlesmithjr Dec 31, 2023
b41ffc5
Bump jinja2 from 3.1.2 to 3.1.3
dependabot[bot] Jan 11, 2024
683c617
fix commuity.general module names
jcox10 Jan 15, 2024
4219da5
Merge pull request #117 from jcox10/fix-module-names
mrlesmithjr Jan 16, 2024
3ac9669
Merge pull request #115 from mrlesmithjr/dependabot/pip/jinja2-3.1.3
mrlesmithjr Jan 16, 2024
91f8cfc
Add pvresize option
genaumann Jan 16, 2024
ee1e3d0
Merge pull request #118 from genaumann/pvresize_from_module
mrlesmithjr Jan 17, 2024
49edca9
Bump cryptography from 41.0.6 to 42.0.0
dependabot[bot] Feb 6, 2024
42cc915
Bump ansible-core from 2.15.8 to 2.15.9
dependabot[bot] Feb 6, 2024
60e0885
Merge pull request #119 from mrlesmithjr/dependabot/pip/cryptography-…
mrlesmithjr Feb 7, 2024
c018449
Merge pull request #120 from mrlesmithjr/dependabot/pip/ansible-core-…
mrlesmithjr Feb 7, 2024
9404a78
Bump cryptography from 42.0.0 to 42.0.2
dependabot[bot] Feb 17, 2024
433b7ca
Merge pull request #121 from mrlesmithjr/dependabot/pip/cryptography-…
mrlesmithjr Feb 17, 2024
5540f7f
Remove symlinks for molecule tests
MoteHue May 21, 2024
26246c7
Merge pull request #128 from stackhpc/remove-symlinks
mrlesmithjr Jul 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
skip_list:
- name[casing]
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
exclude = .venv/
max-line-length = 88
14 changes: 14 additions & 0 deletions .github/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Configuration for request-info - https://github.com/behaviorbot/request-info

# *Required* Comment to reply with
requestInfoReplyComment: >
We would appreciate it if you could provide us with more info about this issue/pr!

# *OPTIONAL* default titles to check against for lack of descriptiveness
# MUST BE ALL LOWERCASE
requestInfoDefaultTitles:
- update readme.md
- updates

# *OPTIONAL* Label to be added to Issues and Pull Requests with insufficient information given
requestInfoLabelToAdd: needs-more-info
32 changes: 32 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name-template: "v$RESOLVED_VERSION 🌈"
tag-template: "v$RESOLVED_VERSION"
categories:
- title: "🚀 Features"
labels:
- "feature"
- "enhancement"
- title: "🐛 Bug Fixes"
labels:
- "fix"
- "bugfix"
- "bug"
- title: "🧰 Maintenance"
label: "chore"
- title: "🧺 Miscellaneous" #Everything except ABAP
label: "misc"
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- "major"
minor:
labels:
- "minor"
patch:
labels:
- "patch"
default: patch
template: |
## Changes
$CHANGES
10 changes: 10 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# These settings are synced to GitHub by https://probot.github.io/apps/settings/

repository:
# See https://developer.github.com/v3/repos/#edit for all available settings.

# The name of the repository. Changing this will rename the repository
name: ansible-manage-lvm

# A short description of the repository that will show up on GitHub
description: Ansible role to manage LVM Groups/Logical Volumes
17 changes: 17 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
41 changes: 41 additions & 0 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: Molecule
on:
push:
branches-ignore:
- main
- master
pull_request:
branches:
- develop
- main
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 4
matrix:
python-version: [3.9]

steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
- name: Check linting with pre-commit
run: pre-commit run --all-files
17 changes: 17 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main
- master

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34 changes: 34 additions & 0 deletions .github/workflows/release-galaxy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Ansible Galaxy
on:
push:
branches:
- main
- master
release:
types:
- published

jobs:
galaxy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
- name: Trigger a new import on Galaxy.
run: ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea
**/__pycache__
.venv/
32 changes: 32 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: no-commit-to-branch
args: [--branch, develop, --branch, master, --branch, main]
- id: trailing-whitespace
- repo: https://github.com/ansible-community/ansible-lint
rev: v6.17.1
hooks:
- id: ansible-lint
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/adrienverge/yamllint
rev: v1.32.0
hooks:
- id: yamllint
36 changes: 36 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
# Based on ansible-lint config
extends: default

ignore: |
.venv/

rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
colons:
max-spaces-after: -1
level: error
commas:
max-spaces-after: -1
level: error
comments: disable
comments-indentation: disable
document-start: disable
empty-lines:
max: 3
level: error
hyphens:
level: error
indentation: disable
key-duplicates: enable
line-length: disable
new-line-at-end-of-file: disable
new-lines:
type: unix
trailing-spaces: disable
truthy: disable
107 changes: 27 additions & 80 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,89 +1,36 @@
Role Name
=========

Role to manage LVM Groups/Logical Volumes. Can be used to create, extend or resize LVM Groups and volumes.

Requirements
------------

Devices/disks to be part of the LVM setup must be identified prior to using this role. Ensure that you select the correct devices/disks.
##### To only create an LVM VG w/out creating LVM LVOLS...define lvname w/ var as None as in the below example.

Role Variables
--------------

````
---
# defaults file for ansible-manage-lvm
lvm_groups:
- vgname: ubuntu-vg
disks: /dev/sda5,/dev/sdc,/dev/sdd #for multiple disks...../dev/sdb,/dev/sdc
create: true #defines if VG should exist or be removed....true or false
lvnames:
- lvname: swap_1
size: 5g #define size of lvol...100%FREE, 10g, 1024 (megabytes by default)
create: true #defines if lvol should exist or be removed...true or false
filesystem: swap #defines filesystem to format lvol as
mount: false #defines if filesystem should be mounted
mntp: [] #defines mountpoint for lvol
- lvname: root
size: 40g #define size of lvol...100%FREE, 10g, 1024 (megabytes by default)
create: true #defines if lvol should exist or be removed...true or false
filesystem: ext4 #defines filesystem to format lvol as
mount: true
mntp: / #defines mountpoint for lvol
- vgname: test-vg
disks: /dev/sdb #for multiple disks...../dev/sdb,/dev/sdc
create: true #defines if VG should exist or be removed....true or false
lvnames:
- lvname: test_1
size: 5g #define size of lvol...100%FREE, 10g, 1024 (megabytes by default)
create: true #defines if lvol should exist or be removed...true or false
filesystem: ext4 #defines filesystem to format lvol as
mount: true #defines if filesystem should be mounted
mntp: /mnt/test_1 #defines mountpoint for lvol
- lvname: test_2
size: 10g #define size of lvol...100%FREE, 10g, 1024 (megabytes by default)
create: true #defines if lvol should exist or be removed...true or false
filesystem: ext4 #defines filesystem to format lvol as
mount: true
mntp: /mnt/test_2 #defines mountpoint for lvol
# - vgname: cinder-volumes
# disks: /dev/cciss/c0d1 #for multiple disks...../dev/sdb,/dev/sdc
# create: true #defines if VG should exist or be removed....true or false
# lvnames:
# - None #set to None to only create LVM VG w/out creating LVM LVOLS...
manage_lvm: false #defines if LVM will be managed by role....default is false to ensure nothing is changed by accident.
````

Dependencies
------------
# ansible-manage-lvm

Ansible role to manage LVM Groups/Logical Volumes.

> NOTE: Can be used to create, extend or resize LVM Groups and volumes.

## Requirements

Devices/disks to be members of the LVM setup **must be** identified prior to
using this role.

## Role Variables

[defaults/main.yml](defaults/main.yml)

## Dependencies

None

Example Playbook
----------------
## Example Playbook

#### Galaxy
-----------
- hosts: servers
roles:
- mrlesmithjr.manage-lvm
#### GitHub
-----------
- hosts: servers
roles:
- ansible-manage-lvm
[playbook.yml](playbook.yml)

License
-------
## License

BSD
MIT

Author Information
------------------
## Author Information

Larry Smith Jr.
- @mrlesmithjr
- http://everythingshouldbevirtual.com
- mrlesmithjr [at] gmail.com

- [@mrlesmithjr](https://twitter.com/mrlesmithjr)
- [[email protected]](mailto:[email protected])
- [http://everythingshouldbevirtual.com](http://everythingshouldbevirtual.com)

<a href="https://www.buymeacoffee.com/mrlesmithjr" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
Loading