Ask Your Question
0

apache::mod usage

asked 2015-02-20 12:56:36 -0500

skc gravatar image

updated 2015-02-23 13:11:49 -0500

GregLarkin gravatar image

Hi I am trying to over write apache::mod::mime::mime_types_config ( and a few others in a similar way ) from https://forge.puppetlabs.com/puppetla...

by doing the following :

class profile::webserver::httpd {
  class { '::apache':
    default_mods => false,
  }

  class { '::apache::mod::mime':
    mime_types_config => $mime_content
  }
}

And the following error comes up:

Error: Duplicate declaration: Class[Apache::Mod::Mime] is already declared; cannot redeclare at /path/to/file/httpd.pp

Can some one point me to a correct way of doing this ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-02-23 12:57:18 -0500

rnelson0 gravatar image

As apache::mod::mime is included in multiple places, your best bet is to use automatic parameter lookups and set $apache::mod::mime::mimetypesconfig in hiera. See here for the parameters to apache::mod::mime

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-02-20 12:56:36 -0500

Seen: 485 times

Last updated: Feb 23 '15