Skip to content

Instantly share code, notes, and snippets.

@major

major/template.diff

Created Aug 24, 2016
Embed
What would you like to do?
root@hydrogen:~# diff -u /etc/ansible/roles/os_cinder/templates/lvm.conf.j2 /etc/ansible/roles/openstack_hosts/templates/lvm.conf.j2
--- /etc/ansible/roles/os_cinder/templates/lvm.conf.j2 2016-07-20 11:49:55.000000000 -0500
+++ /etc/ansible/roles/openstack_hosts/templates/lvm.conf.j2 2016-07-08 11:09:55.000000000 -0500
@@ -19,10 +19,12 @@
{% if used_lvm_devices.append('"r/.*/"') %}{% endif %}
{% endif %}
+{% set use_udev = 1 %}
+
devices {
dir = "/dev"
scan = [ "/dev" ]
- obtain_device_list_from_udev = 1
+ obtain_device_list_from_udev = {{ use_udev }}
preferred_names = [ ]
filter = [ {{ used_lvm_devices|join(', ') }} ]
cache_dir = "/run/lvm"
@@ -90,8 +92,8 @@
}
activation {
checks = 0
- udev_sync = 1
- udev_rules = 1
+ udev_sync = {{ use_udev }}
+ udev_rules = {{ use_udev }}
verify_udev_operations = 0
retry_deactivation = 1
missing_stripe_filler = "error"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment