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 create
to create a Docker container on your local machine. - Use
molecule login
to access the running container. - Make changes to the role files as needed.
- Add any other required roles to the
molecule/default/requirements.yml
file. - Modify the
molecule/default/playbook.yml
file. - Write your tests in the
molecule/default/tests
folder using the goos verifier. - When you’re ready, run
molecule converge
to execute the Ansible Playbook andmolecule verify
to 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.filesystem
Licenza
mit
Download
15.6k
Proprietario