You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get the requirement file from master server, and save to /tmp/ directory
Create the virtualenv and install package with the requirement file which has been saved in /tmp directory.
But when I try to so, there is always an error appeared, it shows as below:
Error: Failed to apply catalog: Duplicate declaration: File[/tmp/requirement.txt] is already declared in file /etc/puppet/modules/general/manifests/init.pp:7; cannot redeclare at /etc/puppet/modules/python/manifests/requirements.pp:98
it means "path parameter" of file resource and "requirements parameter" of python::virtualenv cannot be same, but this is not make sense, please fix it.
The text was updated successfully, but these errors were encountered:
I'm glad this post is here because I was running into a similar problem. The post above seems like a non-intuitive way to use the module. Why does the python::requirements class need to be invoked along with python::virtualenv? It seems like both statements would accomplish populating a virtualenv independently or am I misunderstanding something?
I try to do below steps:
But when I try to so, there is always an error appeared, it shows as below:
Error: Failed to apply catalog: Duplicate declaration: File[/tmp/requirement.txt] is already declared in file /etc/puppet/modules/general/manifests/init.pp:7; cannot redeclare at /etc/puppet/modules/python/manifests/requirements.pp:98
it means "path parameter" of file resource and "requirements parameter" of python::virtualenv cannot be same, but this is not make sense, please fix it.
The text was updated successfully, but these errors were encountered: