replace aptitude with apt in apt::force
false => "/usr/bin/dpkg -s ${name} | grep -q 'Status: install'",
default => "/usr/bin/dpkg -s ${name} | grep -q 'Version: ${version}'",
}
- exec { "/usr/bin/aptitude -y -t ${release} install ${name}${version_string}":
+ exec { "/usr/bin/apt-get -y -t ${release} install ${name}${version_string}":
unless => $install_check,
logoutput => 'on_failure',
timeout => $timeout,
end
let :exec_title do
- base_exec = "/usr/bin/aptitude -y -t #{param_hash[:release]} install #{title}"
+ base_exec = "/usr/bin/apt-get -y -t #{param_hash[:release]} install #{title}"
base_exec + (params[:version] ? "=#{params[:version]}" : "")
end
it { should contain_exec(exec_title).with_unless(unless_query) }