Chris Keschnat
Chris Keschnat

Reputation: 13

Default vhost settings in puppetlabs-apache

I'm trying to set default options for all vhosts. The documentation says "All of the SSL parameters for ::vhost will default to whatever is set in the base apache class" (https://forge.puppetlabs.com/puppetlabs/apache#ssl-parameters-for-apachevhost). However, this does not work:

class { '::apache':
    ssl_protocol => 'all -SSLv2 -SSLv3',
}

It throws "Error 400 on SERVER: Invalid parameter ssl_protocol on Class[Apache]"

What am I doing wrong?

Upvotes: 1

Views: 577

Answers (1)

ptierno
ptierno

Reputation: 10064

The ssl_protocol parameter is part of the Apache::Vhost defined type. Not part of the apache class.

You can set the defaults with the following:

 Apache::Vhost { ssl_protocol => 'all -SSLv2 -SSLv3' }

Hope this helps.

Upvotes: 2

Related Questions