Ask Your Question

Print hiera config to multiple lines in config file managed by puppet

asked 2014-01-22 16:51:46 -0600

mikebell gravatar image

updated 2014-01-25 11:12:21 -0600

doc75 gravatar image

In my yaml file I have multiple values that need to be printed out into an ini file managed by another php module. I can grab the values through hiera and output them to the ini file but it's in the wrong format. Each item in the yaml file has to be separated by a line, how do I achieve this?

Here is my yaml file:

    - display_errors = On
    - error_reporting = -1
    - date.timezone = "Europe/London"
    - sendmail_path = "/usr/bin/env /usr/local/bin/catchmail"
    - xdebug.default_enable = 1
    - xdebug.remote_autostart = 0
    - xdebug.remote_connect_back = 1
    - xdebug.remote_enable = 1
    - xdebug.remote_handler = "dbgp ...
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-01-25 10:58:54 -0600

Ancillas gravatar image

I don't know if you're using a forge php module, or your own custom code, but this seems like a use case for a template. Loop through phpini and write the value at the current index, followed by a new line.

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: 2014-01-22 16:51:46 -0600

Seen: 699 times

Last updated: Jan 25 '14