Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Sat6: Missing hiera symlink #37

Open
jhutar opened this issue Nov 3, 2016 · 0 comments
Open

Sat6: Missing hiera symlink #37

jhutar opened this issue Nov 3, 2016 · 0 comments

Comments

@jhutar
Copy link
Collaborator

jhutar commented Nov 3, 2016

https://github.com/boogiespook/sat6_healthCheck/blob/master/sat6_healthCheck.sh#L90-L107

function check_hiera_symlink {
  if [ $(rpm -q hiera | wc -l) -gt 0 ]
    then 
    echo -e "hiera has been installed"
    if [ ! -L /etc/puppet/hiera.yaml ]
      then 
      printWarning "Missing hiera symlink from /etc/hiera.yaml -> /etc/puppet/hiera.yaml"
      echo -n "Would you like me to create it ? [y|N]:"
      read yesno
      if [ ${yesno} == 'y' ]
      then
      ln -s /etc/hiera.yaml /etc/puppet/hiera.yaml 
      fi 
    else
      printOK "Hiera symlink exists"
    fi
  fi  
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant