Skip to content

add Hash $vhosts_defaults to apache::vhosts class? #2325

Open
@janit42

Description

@janit42

Use Case

In our environment we have a some per-vhosts-settings which are identical in multiple vhosts. Therefore it would be great to be able to set defaults for multiple vhosts through the apache::vhosts class.

Describe the Solution You Would Like

add a parameter to the apache::vhosts class, that would be passed to the create_resources function:

Hash $vhosts_defaults = {},

Describe Alternatives You've Considered

Alternatively it would be possible to use resource defaults, but we have a Hiera-heavy setup on some nodes, where we just define the apache::vhosts::vhosts in Hiera and include the apache::vhosts class to make sure these get picked up and that would work more smoothly with a $vhosts_defaults parameter.

Additional Context

If there was nothing against implementing such a defaults Hash in principle, I'd try to create a pull request.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions