puppet-python icon indicating copy to clipboard operation
puppet-python copied to clipboard

Use 'ensure_packages" to prevent duplicate packages

Open jurim76 opened this issue 8 years ago • 0 comments
trafficstars

For install class, always use "ensure_packages" function to prevent duplicate package error - "Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Package[python-dev] is already declared; "

Old if $pythondev { package { 'python-dev': ensure => $dev_ensure, name => $pythondev, } }

New if $pythondev { ensure_packages( 'python-dev', { ensure => $dev_ensure, name => $pythondev, } ) } etc

jurim76 avatar Sep 22 '17 08:09 jurim76