aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-05-27 10:00:01 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-05-27 10:00:01 -0300
commit77226079874216a22563cff089fcc4b2211bf30d (patch)
tree59c525125fb53ba97d7dab1bf731106f2371675c /lib
parent62ebbcf86b038fd01891a154c203f58ad434d89e (diff)
downloadhydra-77226079874216a22563cff089fcc4b2211bf30d.tar.gz
hydra-77226079874216a22563cff089fcc4b2211bf30d.tar.bz2
Ansible support at init and newnode
Diffstat (limited to 'lib')
-rw-r--r--lib/hydra/misc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/hydra/misc b/lib/hydra/misc
index 77c2988..2c5789b 100644
--- a/lib/hydra/misc
+++ b/lib/hydra/misc
@@ -176,6 +176,7 @@ function hydra_hiera_query {
local param="$2"
# Build basic query command
+ # There might be weird hiera errors, so that's why we're doing a "2> /dev/null" redirection
hiera="hiera --config $HYDRA_FOLDER/puppet/hiera.yaml"
hiera_params="settings::confdir=$HYDRA_FOLDER/puppet ::clientcert=$node"
role="`$hiera nodo::role $hiera_params 2> /dev/null`"