package { 'supervisor-rpm-that-is-old':
|
name => 'supervisor',
|
ensure => 'absent'
|
}
|
|
package { 'supervisor-from-pypi-that-is-new':
|
name => 'supervisor',
|
ensure => 'present',
|
provider => 'pip'
|
}
|
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Package[supervisor] is already declared [
|
[trimmed]
|
Because Puppet appears to be using $name rather than $title to determine whether a resource has already been declared, it makes it impossible to do rather obvious operations without resorting to Exec.