| Puppet Version: 6.15.0 Puppet Server Version: 6.11.1 OS Name/Version: CentOS 8 Desired Behavior: Would like to manage multiple python environments with pip3 package provider Actual Behavior: Catalog fails if you try to manage multiple environments Here is a reproducer:
exec { 'python env1': |
command => "/bin/python3 -m venv --clear /opt/env1 && /opt/env1/bin/pip3 install --upgrade pip && /opt/env1/bin/pip3 install --upgrade setuptools", |
creates => "/opt/env1/bin/activate", |
} |
package { 'cfn-lint': |
ensure => latest, |
provider => 'pip3', |
command => '/opt/env1/bin/pip3', |
} |
exec { 'python env2': |
command => "/bin/python3 -m venv --clear /opt/env2 && /opt/env2/bin/pip3 install --upgrade pip && /opt/env2/bin/pip3 install --upgrade setuptools", |
creates => "/opt/env2/bin/activate", |
} |
package { 'puppetboard': |
ensure => latest, |
provider => 'pip3', |
command => '/opt/env2/bin/pip3', |
}
|
Error: Could not prefetch package provider 'pip3': Provider pip3 package command '/opt/env2/bin/pip3' does not exist on this host |
Error: Failed to apply catalog: Provider pip3 package command '/opt/env2/bin/pip3' does not exist on this host
|
|