Ansible role to manage systemd mount points
Go to file
huang.zhiping d46f7db2a7 switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I9db2a35aa0173ff5ec07c7164610f5abfa4a913d
Story: #2002586
Task: #24319
2018-08-21 13:21:42 +00:00
defaults Add basic tests 2018-03-23 18:12:18 -05:00
doc Follow the new PTI for document build 2018-07-02 08:39:44 +01: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 Bionic testing 2018-05-14 20:42:46 +02:00
releasenotes Update reno for stable/rocky 2018-08-10 16:44:11 +00:00
tasks Change mount states to ensure uptime 2018-03-30 14:47:13 -05:00
templates Change mount states to ensure uptime 2018-03-30 14:47:13 -05:00
tests Fix usage of "|" for tests 2018-07-12 17:01:17 +02:00
vars Change mount states to ensure uptime 2018-03-30 14:47:13 -05:00
zuul.d switch documentation job to new PTI 2018-08-21 13:21:42 +00:00
.gitignore Updated from OpenStack Ansible Tests 2018-03-28 09:23:25 +00:00
.gitreview Fix gitreview repo name 2018-03-19 14:47:31 -05:00
CONTRIBUTING.rst Initial Commit 2018-03-13 02:06:48 -05:00
LICENSE 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
Vagrantfile Updated from OpenStack Ansible Tests 2018-06-06 00:46:43 +00:00
ansible-role-requirements.yaml Initial Commit 2018-03-13 02:06:48 -05:00
bindep.txt Add base role tests 2018-03-19 23:00:29 -05:00
manual-test.rc Initial Commit 2018-03-13 02:06:48 -05:00
run_tests.sh Updated from OpenStack Ansible Tests 2018-04-30 05:18:25 +00:00
setup.cfg Add base role tests 2018-03-19 23:00:29 -05:00
setup.py Initial Commit 2018-03-13 02:06:48 -05:00
test-requirements.txt Follow the new PTI for document build 2018-07-02 08:39:44 +01:00
tox.ini Use the TESTING_BRANCH env var for constraints 2018-08-16 15:10:22 +01:00

README.md

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