filesystem
Ansible Role: Filesystem
Creating partition, filesystem and mounting it
Requirements
This role requires Ansible 2.2 or higher.
Role Variables
Refer to https://github.com/AerisCloud/ansible-disk
Filesystem Playbook
Run with default vars:
- hosts: all
roles:
- role: entercloudsuite.filesystem
disk_additional_disks:
- disk: /dev/vdb
fstype: xfs
mount_options: defaults
mount: /example
disable_periodic_fsck: false
Testing
Tests are performed using Molecule.
- Run
molecule create
to start the target Docker container on your local engine. - Use
molecule login
to log in to the running container. - Edit the role files.
- Add other required roles (external) in the molecule/default/requirements.yml file.
- Edit the molecule/default/playbook.yml.
- Define infra tests under the molecule/default/tests folder using the goos verifier.
- When ready, use
molecule converge
to run the Ansible Playbook andmolecule verify
to execute the test suite.
Note that the converge process starts performing a syntax check of the role.
Destroy the Docker container with the commandmolecule destroy
.
To run all the steps with just one command, run molecule test
.
License
MIT
Install
ansible-galaxy install entercloudsuite/ansible-filesystem
License
mit
Downloads
15588
Owner