Ask Your Question

module example42/php

asked 2013-09-13 16:52:56 -0600

mandm_zoom gravatar image

updated 2013-09-14 21:41:37 -0600

golja gravatar image

can we manage ini files from this module? i have been trying php::ini but i could not get it to work?

i just want to edit a few entries in my php.ini files to customize it to my needs

edit retag flag offensive close merge delete


Please post your code as well as the output when you apply the manifests.

GregLarkin gravatar imageGregLarkin ( 2013-09-13 23:58:14 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-09-14 21:41:06 -0600

golja gravatar image

There are few ways how to do it:

  • Use custom sources for main config file
  • Use custom source directory for the whole configuration dir
  • Use custom template for main config file. Note that template and source arguments are alternative.
  • Automatically include a custom subclass

Pick the easier options for you. For more information have a look at USAGE - Overrides and Customizations in the Module documentation.

One quick example from the original documentation:

class { 'php':
  source => [ "puppet:///modules/lab42/php/php.conf-${hostname}" , "puppet:///modules/lab42/php/php.conf" ],
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: 2013-09-13 16:52:56 -0600

Seen: 2,143 times

Last updated: Sep 14 '13