Skip to content

Instantly share code, notes, and snippets.

--- /opt/stack/lib/python2.6/site-packages/stack/commands/load/storage/partition/imp_load_default.py 2016-08-03 16:00:01.141946623 -0700
+++ /opt/stack/lib/python2.6/site-packages/stack/commands/load/storage/partition/imp_load_default.py.new 2016-08-03 15:59:40.271227621 -0700
@@ -196,7 +196,7 @@
type_dict[type_key] = device_arr
# Regexp to match Hard disk labels
- hd_label_regexp = '([shv]d[a-z]+)|(md[0-9]+)'
+ hd_label_regexp = '(x?[shv]d[a-z]+)|(md[0-9]+)'
hd_regexp = re.compile(hd_label_regexp)
@bsanders
bsanders / gist:5b147a1344cb204f900b
Created November 24, 2015 00:48
psuedo-ansible
# I have all my hosts' public keys in a local directory ./keys/hosts/*pub
# I want to use the known_hosts module to add these to 'server'
# I'd prefer to just add the key to that local dir, and ansible just glob it up automatically
- hosts: server
vars:
# this is the part I'd like to do automatically;
# just loop over everything in "keys/hosts/" without explicitly repeating each file
ssh_pub_keys:
- name: host1