Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doubts in options #62

Open
muskhd opened this issue Feb 22, 2016 · 2 comments
Open

doubts in options #62

muskhd opened this issue Feb 22, 2016 · 2 comments

Comments

@muskhd
Copy link

muskhd commented Feb 22, 2016

Good morning, I'm in trouble.
I added the following options:
options => {
'PageSize' => A4,
'Duplex' => DuplexNoTumble,
'ColorModel' => Gray,
},

the result is not expected.

Notice: / Stage [main] / Main / Node [l020073] / Cups :: Printers test [printer3] / Printer [COR1787] / options: options {} changed to 'DuplexDuplexNoTumbleColorModelGrayPageSizeA4'

can you help me?

@ncsutmf
Copy link
Contributor

ncsutmf commented Jul 17, 2019

Hello, I know it's been a while. Not sure if the options were available when you first posted, but now these all have specific parameters and shouldn't be part of the options parameter.

Instead of something like this:

printer { 'myprinter':
  ensure  => present,
  options => {
    'PageSize'   => 'A4',
    'Duplex'     => 'DuplexNoTumble',
    'ColorModel' => 'Gray',
  },
}

try this:

printer { 'myprinter':
  ensure      => present,
  page_size   => 'A4',
  duplex      => 'DuplexNoTumble',
  color_model => 'Gray',
}

@mosen
Copy link
Owner

mosen commented Jul 18, 2019

Haha thanks @ncsutmf , 3 years later better than never

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants