entercloudsuite.filesystem

Ansible Role: Filesystem

Build Status Galaxy

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.

  1. Run molecule create to create a Docker container on your local machine.
  2. Use molecule login to access the running container.
  3. Make changes to the role files as needed.
  4. Add any other required roles to the molecule/default/requirements.yml file.
  5. Modify the molecule/default/playbook.yml file.
  6. Write your tests in the molecule/default/tests folder using the goos verifier.
  7. When you’re ready, run molecule converge to execute the Ansible Playbook and molecule verify to run the tests.
    • Note: The converge step will check the syntax of the role first.
  8. 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