File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 113113 $timestamp = chomp(generate (' /bin/date' , ' +%Y%d%m_%H:%M:%S' ))
114114
115115 exec { ' mv files out of $environmentpath' :
116- command => " mkdir /etc/puppetlabs/env_back_${timestamp} ;
116+ command => " mkdir /etc/puppetlabs/env_back_${timestamp} ;
117117 mv ${::settings::codedir} /environments/* /etc/puppetlabs/env_back_${timestamp} /;
118118 rm /opt/puppetlabs/facter/facts.d/code_manager_mv_old_code.txt;
119119 TOKEN=`/opt/puppetlabs/puppet/bin/ruby -e \" require 'json'; puts JSON.parse(File.read('${token_filename} '))['token']\" `;
120120 /opt/puppetlabs/puppet/bin/curl -k -X POST -H 'Content-Type: application/json' \" https://${::trusted['certname']}:8170/code-manager/v1/deploys?token=\$ TOKEN\" -d '{\" environments\" : [\" ${::environment} \" ], \" wait\" : true}';
121121 /opt/puppetlabs/puppet/bin/curl -k -X POST -H 'Content-Type: application/json' \" https://${::trusted['certname']}:8170/code-manager/v1/deploys?token=\$ TOKEN\" -d '{\" deploy-all\" : true, \" wait\" : true}';
122122 sleep 15" ,
123- path => $::path ,
124- logoutput => true ,
125- require => Exec[" Generate Token for ${code_manager_service_user} " ],
123+ path => $::path ,
124+ logoutput => true ,
125+ require => Exec[" Generate Token for ${code_manager_service_user} " ],
126126 }
127127 }
128128
You can’t perform that action at this time.
0 commit comments