Skip to content

Instantly share code, notes, and snippets.

@major
Created August 24, 2016 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save major/f79336acc3b8a1597ca3474860fc52ed to your computer and use it in GitHub Desktop.
Save major/f79336acc3b8a1597ca3474860fc52ed to your computer and use it in GitHub Desktop.
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