Ansible role to manage systemd mount points
Go to file
Andreas Jaeger bedf5758b1 use newer openstackdocstheme and reno versions
The sync from https://review.opendev.org/733244 updated to
openstackdocstheme 2.2.1 and reno 3.1.0 versions.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I63feca3be7a797b2c2af8e650b938aef0f1cd782
2020-06-03 18:57:16 +02:00
defaults Add basic tests 2018-03-23 18:12:18 -05:00
doc use newer openstackdocstheme and reno versions 2020-06-03 18:57:16 +02:00
examples Initial Commit 2018-03-13 02:06:48 -05:00
handlers Initial Commit 2018-03-13 02:06:48 -05:00
html-docs Initial Commit 2018-03-13 02:06:48 -05:00
meta Add integrated coverage 2019-05-21 16:44:40 +02:00
releasenotes use newer openstackdocstheme and reno versions 2020-06-03 18:57:16 +02:00
tasks Add mount state rescue block 2018-10-22 19:43:39 +00:00
templates Ensure mounts are able to be network aware 2019-01-04 20:06:45 +00:00
tests debian: add support 2019-04-23 08:58:33 +01:00
vars Change mount states to ensure uptime 2018-03-30 14:47:13 -05:00
zuul.d Missing document start "---" 2020-03-26 09:31:11 +08:00
.gitignore Updated from OpenStack Ansible Tests 2019-08-20 03:07:45 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:34:04 +00:00
ansible-role-requirements.yaml Update to opendev 2019-04-24 01:10:14 +00:00
bindep.txt Updated from OpenStack Ansible Tests 2020-05-22 07:12:26 +00:00
CONTRIBUTING.rst [ussuri][goal] Update contributor documentation 2020-05-13 00:07:02 +03:00
LICENSE Initial Commit 2018-03-13 02:06:48 -05:00
manual-test.rc Initial Commit 2018-03-13 02:06:48 -05:00
README.md Add release note link in README 2018-06-29 14:47:06 +08:00
run_tests.sh Updated from OpenStack Ansible Tests 2019-07-18 22:21:28 +00:00
setup.cfg Cleanup py27 support 2020-04-25 15:47:33 +02:00
setup.py Cleanup py27 support 2020-04-25 15:47:33 +02:00
tox.ini Cleanup py27 support 2020-04-25 15:47:33 +02:00
Vagrantfile Updated from OpenStack Ansible Tests 2019-07-20 09:42:45 +00:00

Ansible systemd_mount

This Ansible role configures systemd mount files.

This role requires the openstack-ansible-plugins repository to be available on your local system. The Ansible galaxy resolver will not retrieve this role for you. To get the plugins role in place clone the plugins repository before running this role.

# git clone https://github.com/openstack/openstack-ansible-plugins /etc/ansible/roles/plugins

You can also use the ansible-galaxy command on the ansible-role-requirements.yml file.

# ansible-galaxy install -r ansible-role-requirements.yml

Release notes for the project can be found at: https://docs.openstack.org/releasenotes/ansible-role-systemd_mount


Example playbook

See the "defaults.yml" file for a full list of all available options.

- name: Create a systemd mount file for Mount1 and 2
  hosts: localhost
  become: true
  roles:
    - role: "systemd_mount"
      systemd_mounts:
        - what: '/var/lib/machines.raw'
          where: '/var/lib/machines'
          type: 'btrfs'
          options: 'loop'
          unit:
            ConditionPathExists:
              - '/var/lib/machines.raw'
          state: 'started'
          enabled: true
        - config_overrides: {}
          what: "10.1.10.1:/srv/nfs"
          where: "/var/lib/glance/images"
          type: "nfs"
          options: "_netdev,auto"
          unit:
            After:
              - network.target