I try to do below steps:
- 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.
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.