Ask Your Question
0

module example42/php

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

mandm_zoom gravatar image

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

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?

http://forge.puppetlabs.com/example42/php

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

Comments

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

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

1 Answer

Sort by ยป oldest newest most voted
1

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

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

Stats

Asked: 2013-09-13 16:52:56 -0500

Seen: 1,528 times

Last updated: Sep 14 '13