Fix a DPK bug that prevents non-ACM app engines from running. This manifest expects the puppetlabs-powershell modules to be installed.
$dpk_location = hiera('dpk_location') | |
case $::osfamily { | |
'windows': { | |
exec { 'fix-dpk-bug': | |
command => "(gc ${dpk_location}/puppet/production/modules/pt_config/lib/puppet/provider/psae.rb) | %{ \$_ -replace \"ae_program_name=`\"PTEM_CONFIG`\"\", \"ae_program_name=resource[:program_id]\" } | set-content ${dpk_location}/puppet/production/modules/pt_config/lib/puppet/provider/psae.rb", | |
provider => powershell, | |
} | |
} | |
'RedHat', 'linux': { | |
exec { 'fix-dpk-bug': | |
command => "sed -i 's/ae_program_name=\"PTEM_CONFIG\"/ae_program_name=resource[:program_id]/' \ | |
${dpk_location}/puppet/production/modules/pt_config/lib/puppet/provider/psae.rb", | |
path => '/usr/bin', | |
} | |
exec { 'fix-connect-pwd-bug': | |
command => "sed -i 's/resource[:db_connect_pwd]/:db_connect_pwd/' \ | |
${dpk_location}/puppet/production/modules/pt_config/lib/puppet/provider/psae.rb", | |
path => '/usr/bin', | |
} | |
# exec { 'fix-connect-pwd-bug2': | |
# command => "sed -i 's/#{db_connect_pwd}/#{@db_hash[key_db_connect_pwd]}/' \ | |
# ${dpk_location}/puppet/production/modules/pt_config/lib/puppet/provider/psae.rb", | |
# path => '/usr/bin', | |
# } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment