About | FAQ | Help
Ask Your Question

how to define php_flags in hiera

asked 2015-06-29 08:32:40 -0500

SimonH gravatar image

I've tried setting them as a hash, but the flag values are not being recognised:

        flag: on

sees 'log_errors' appearing in the vhost, but with a flag value of off. I've tried using values of 'on', true but none of them seem to give me a value of 'on' in the vhost.

I suspect I'm just using the wrong data structure so can anyone point out where I'm going wrong?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-06-30 05:24:46 -0500

SimonH gravatar image

updated 2015-09-01 08:24:29 -0500

After some testing, I found the hiera structure below is the appropriate one -

            log_errors: "on"

assuming you're using something like

$vhosts = hiera_hash('apache::vhosts')
create_resources(apache::vhost, $vhosts,$default_setup)
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


Asked: 2015-06-29 08:32:40 -0500

Seen: 174 times

Last updated: Sep 01 '15