Skip to content
Snippets Groups Projects
Commit a3157c74 authored by František Dvořák's avatar František Dvořák
Browse files

Specify timeout in puppet to prevent hanging

parent 2a4922d1
No related branches found
No related tags found
No related merge requests found
Pipeline #608 passed
...@@ -94,6 +94,7 @@ packages: ...@@ -94,6 +94,7 @@ packages:
puppet: puppet:
conf: conf:
agent: agent:
http_read_timeout: 30
server: ${local.master_fqdn} server: ${local.master_fqdn}
write_files: write_files:
......
...@@ -18,6 +18,7 @@ systemctl enable puppet-master ...@@ -18,6 +18,7 @@ systemctl enable puppet-master
service puppet-master restart service puppet-master restart
puppet config set server `hostname -f` puppet config set server `hostname -f`
puppet config set --section agent http_read_timeout 30
puppet agent --test 2>&1 | tee stage1.log puppet agent --test 2>&1 | tee stage1.log
if test $? = 0 -o $? = 2; then if test $? = 0 -o $? = 2; then
sed -i "s/^\\(\$hdfs_deployed\\s*=\\s*\\).*/\\1true/" /etc/puppet/code/environments/production/manifests/site.pp sed -i "s/^\\(\$hdfs_deployed\\s*=\\s*\\).*/\\1true/" /etc/puppet/code/environments/production/manifests/site.pp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment