031ba51726
This change adds basic tests when creating a mount unit file. This test will ensure system-mount is functional with a local mounts, NFS mounts, and swap mounts. Change-Id: I00dbf7f6ff3b687e622b29808197dbd7427d24fe Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
18 lines
420 B
Django/Jinja
18 lines
420 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
[Unit]
|
|
Description=Auto mount for {{ item.where | default(item.what) }}
|
|
|
|
[{{ (item.type == 'swap') | ternary('Swap', 'Mount') }}]
|
|
What={{ item.what }}
|
|
{% if item.type == 'swap' %}
|
|
Priority={{ item.priority | default(0) }}
|
|
{% else %}
|
|
Where={{ item.where }}
|
|
Type={{ item.type }}
|
|
{% endif %}
|
|
Options={{ item.options | default(systemd_default_mount_options) }}
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|