Add reference to self
This commit is contained in:
parent
1ce82c89cc
commit
c5e5279f0e
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
me="$(hostname -s)"
|
||||
cat /etc/hiera/data/common.yaml | yq -r '.multinode_mapping| to_entries |map({name: .key} + .value)| map(select(.server == "'"${me}"'")) |.[] |.name' |
|
||||
grep -E "$(cat /etc/hiera/data/common.yaml | yq -r '.singlenodes[]' | sed -e 's/^- //' -e 's/$/|/' | tr -d '\n' | sed 's/|$//')"
|
||||
|
|
Loading…
Reference in a new issue