💻 Software
Why does Puppet keep installing a package even if it is already installed?
Fresh5 days ago
Mar 15, 202610591 viewsConfidence Score0%
0%
Problem
I use the package attribute to ensure that given package is installed. However, even though the package is installed, tries to install it over again and of course exits with an exception ("X already installed"). It does not happen when the package name matches a service name. I use local RPM and an…
Error Output
file {"$tmp_dir/$php_pdo":
ensure => present,
source => "puppet:///files/services/$php_pdo"
}
package {"php_pdo":
require => File["$tmp_d…Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Why does Puppet keep installing a package even if it is already installed?
Low Risk
You refer to the package by the name "php_pdo", but Puppet sees the package as "php-pdo" (dash, not underscore). Every time it checks to see of php_pdo is installed, it finds out that it is not. Unfortunately it doesn't matter how many times you ins…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix