We need more information to debug issues on exec failure. This change
enables logouput => on_failure.
include apt::update
exec { "apt-builddep-${name}":
include apt::update
exec { "apt-builddep-${name}":
- command => "/usr/bin/apt-get -y --force-yes build-dep ${name}",
- notify => Exec['apt_update'],
+ command => "/usr/bin/apt-get -y --force-yes build-dep ${name}",
+ logoutput => 'on_failure',
+ notify => Exec['apt_update'],
}
# Need anchor to provide containment for dependencies.
}
# Need anchor to provide containment for dependencies.
default => "/usr/bin/dpkg -s ${name} | grep -q 'Version: ${version}'",
}
exec { "/usr/bin/aptitude -y -t ${release} install ${name}${version_string}":
default => "/usr/bin/dpkg -s ${name} | grep -q 'Version: ${version}'",
}
exec { "/usr/bin/aptitude -y -t ${release} install ${name}${version_string}":
- unless => $install_check,
+ unless => $install_check,
+ logoutput => 'on_failure',
'server' => "apt-key adv --keyserver '${key_server}' --recv-keys '${upkey}'",
}
exec { $digest:
'server' => "apt-key adv --keyserver '${key_server}' --recv-keys '${upkey}'",
}
exec { $digest:
- path => '/bin:/usr/bin',
- unless => "/usr/bin/apt-key list | /bin/grep '${upkey}'",
- before => Anchor["apt::key ${upkey} present"],
- command => $digest_command,
+ command => $digest_command,
+ path => '/bin:/usr/bin',
+ unless => "/usr/bin/apt-key list | /bin/grep '${upkey}'",
+ logoutput => 'on_failure',
+ before => Anchor["apt::key ${upkey} present"],
}
exec { "apt::key ${upkey} absent":
}
exec { "apt::key ${upkey} absent":
- path => '/bin:/usr/bin',
- onlyif => "apt-key list | grep '${upkey}'",
- command => "apt-key del '${upkey}'",
- user => 'root',
- group => 'root',
+ command => "apt-key del '${upkey}'",
+ path => '/bin:/usr/bin',
+ onlyif => "apt-key list | grep '${upkey}'",
+ user => 'root',
+ group => 'root',
+ logoutput => 'on_failure',
}
exec { "add-apt-repository-${name}":
}
exec { "add-apt-repository-${name}":
- command => "/usr/bin/add-apt-repository ${name}",
- creates => "${sources_list_d}/${sources_list_d_filename}",
- require => [ File[$sources_list_d],
- Package['python-software-properties'] ],
- notify => Exec['apt_update'],
+ command => "/usr/bin/add-apt-repository ${name}",
+ creates => "${sources_list_d}/${sources_list_d_filename}",
+ logoutput => 'on_failure',
+ require => [ File[$sources_list_d],
+ Package['python-software-properties'] ],
+ notify => Exec['apt_update'],
}
file { "${sources_list_d}/${sources_list_d_filename}":
}
file { "${sources_list_d}/${sources_list_d_filename}":
if ($required_packages != false) and ($ensure == 'present') {
exec { "Required packages: '${required_packages}' for ${name}":
command => "${provider} -y install ${required_packages}",
if ($required_packages != false) and ($ensure == 'present') {
exec { "Required packages: '${required_packages}' for ${name}":
command => "${provider} -y install ${required_packages}",
- subscribe => File["${name}.list"],
+ logoutput => 'on_failure',
+ subscribe => File["${name}.list"],
exec { 'apt_update':
command => "${apt::params::provider} update",
exec { 'apt_update':
command => "${apt::params::provider} update",
+ logoutput => 'on_failure',