puppetlabs / puppetlabs/puppetlabs-apache

Change type of custom fragment with any or tuple

Open
#2,490 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

community
Dominant language
Puppet
Stars
356
Forks
1.1k
Avg merge
3m
Merged PRs (30d)
1

Description

Use Case

Add proxyremote conf with noproxy in the cutom fragment
because this mode is not present in apache module

Describe the Solution You Would Like

Use an array to declare each row in the custom fragment instead of a string

Additional Context

if i add to my config, in the conf file apache, the data are not correctly indented if a use hiera
It's necessary to add \n and to escape double quotes to declare the entries like

    custom_fragment: "ProxyRemote \"*\"  \"https://srv1.cg59.fr:3000\"\n  
                          NoProxy \".intranet.example\" \"172.\" \"192\" \"localhost\" \"127.0.0.1\" \".another.domain\""

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating how custom_fragment is handled in the module and how it renders Apache configuration from Hiera. Verify the behavior with ProxyRemote and NoProxy entries represented as separate array rows, and consider the work done when those entries render with correct indentation without embedded newline or quote escaping.

Written by the indexing model from the issue text.

Assessment

Tech stack
apache
Domain
devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.