Hello, 
Trying to create manifest with package resource for debian package and want 
to use insstallation option --force-confnew. 
The manifest is :
package { 'my_package_name':
                name => 'my_package_name',
                ensure => present,
                install_options => ['-o Dpkg::Options::="--force-confnew"'],
            }

When run this module on the client get an error :
Error: Execution of '/usr/bin/apt-get -q -y -o 
DPkg::Options::=--force-confold "-o Dpkg::Options::=\"--force-confnew\"" 
install my_package_name' returned 100: E: Invalid operation "-o 
Dpkg::Options::=\"--force-confnew\""
Error: /Stage[main]/Vnc/Package[my_package_name]/ensure: change from 
'purged' to 'present' failed: Execution of '/usr/bin/apt-get -q -y -o 
DPkg::Options::=--force-confold "-o Dpkg::Options::=\"--force-confnew\"" 
install my_package_name' returned 100: E: Invalid operation "-o 
Dpkg::Options::=\"--force-confnew\"" (corrective)

If exactly the same command I run from terminal of the client -  it is 
working properly and the package successfully installed.

Thank you. 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/7e9202bc-be8d-4dd8-ad35-786561686e65%40googlegroups.com.

Reply via email to