I have a chef recipe that goes to github and clones a repo. Unfortunately, I dont have git configured to use the certs and hence it has issues using https protocol with github.com.
My temp solution is to run the following and dont check for ssl.
git config --global http.sslVerify false
This works when I do it manually so I put it in a bash block :
bash 'SSLVerify=False' do
user 'root'
cwd '/home'
code <<-EOH
git config --global http.sslVerify false
echo "SSL Check Disabled for git"
EOH
end
This succeeds and gives me the echo, but as the chef recipe comes to github clone part it fails again. Is the scope or bash only for the code in it or globally ?
Aucun commentaire:
Enregistrer un commentaire