Ask Your Question
0

ordening create_ini_settings

asked 2016-07-15 05:54:18 -0500

lgbff gravatar image

updated 2016-07-15 08:47:05 -0500

Hi,

i must execute createinisettings after package install. Here is the manifest:

package { $tomcat_packages: ensure => 'installed' }
$tomcat_defaults_file = { 'path' => '/etc/default/tomcat7' }
$tomcat_defaults_settings = { '' => {
     'JAVA_HOME'                  =>  '/usr/lib/jvm/default-java',
     'JAVA_OPTS'                  => '"-Djava.awt.headless=true -Xms768M -Xmx1768m -XX:MaxPermSize=768m -XX:+UseConcMarkSweepGC"',
     'TOMCAT7_SECURITY'           => 'yes',
     'LOGFILE_DAYS'               => '7',
     }
}

And

create_ini_settings($tomcat_defaults_settings, $tomcat_defaults_file)

Puppet will customize the file befor exist ;-(

I can't find require option on ini_settings.

thx Karsten

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-07-15 13:08:46 -0500

lupin gravatar image

updated 2016-07-15 13:10:12 -0500

You can add a metaparameter as option to create_resource function. e.g rename the $tomcat_defaults_file to $tomcat_defaults_option.

$tomcat_defaults_option = { 'path' => '/etc/default/tomcat7', require => Package[$packages_tomcat]' }
edit flag offensive delete link more
0

answered 2016-07-18 00:27:31 -0500

lgbff gravatar image

thx, for the hint.

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

Stats

Asked: 2016-07-15 05:54:18 -0500

Seen: 81 times

Last updated: Jul 18 '16