entercloudsuite.filesystem
Ansible Role: Filesystem
This role sets up a partition, creates a filesystem, and mounts it.
Requirements
You need Ansible version 2.2 or higher to use this role.
Role Variables
For a list of variables, check this link: GitHub - AerisCloud
Filesystem Playbook
To use the default variables, run the following:
- hosts: all
roles:
- role: entercloudsuite.filesystem
disk_additional_disks:
- disk: /dev/vdb
fstype: xfs
mount_options: defaults
mount: /example
disable_periodic_fsck: false
Testing
You can test this role using Molecule.
- Run
molecule createto create a Docker container on your local machine. - Use
molecule loginto access the running container. - Make changes to the role files as needed.
- Add any other required roles to the
molecule/default/requirements.ymlfile. - Modify the
molecule/default/playbook.ymlfile. - Write your tests in the
molecule/default/testsfolder using the goos verifier. - When you’re ready, run
molecule convergeto execute the Ansible Playbook andmolecule verifyto run the tests.- Note: The converge step will check the syntax of the role first.
- To remove the Docker container, use the command
molecule destroy.
To run all these steps with one command, just use molecule test.
License
MIT
Informazioni sul progetto
Creating partition, filesystem and mounting it
Installa
ansible-galaxy install entercloudsuite.filesystemLicenza
mit
Download
15.7k
Proprietario
