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.