Mount Example

asked 2017-11-30 07:58:15 -0600

mulwa gravatar image

just have a look at this, is it the correct way of mounting the worker.properties file? kindly assistnode "puppetagent" { include tomcat include apache include apache::mod::jk }

apache::vhost { 'tomcat.dddke.net': port => '80', docroot => '/var/www/html',

}

apache::vhost { 'tomcat1.dddke.net': port => '80', docroot => '/var/www/html',

}

apache::vhost { 'tomcat2.dddke.net': port => '80', docroot => '/var/www/html',

}

apache::vhost { 'tomcat3.dddke.net': port => '80', docroot => '/var/www/html',

}

apache::vhost { 'tomcat4.dddke.net': port => '80', docroot => '/var/www/html',

} class { '::apache::mod::jk': ip => '34.227.150.91', workersfile => 'conf.d/workers.properties', mountfile =>'conf.d/uriworkermap.properties', shmfile => 'run/jk.shm', shmsize => '50M', workersfilecontent => { workerlists => ['tomcat8', 'instance1', 'instance2', 'instance3' ,'instance4', 'instance5'], workermantain => '60', somename => { comment => 'Optional comment', type => 'ajp13', socketkeepalive => 'true', }, othername => { comment => 'I just like comments', type => 'ajp12', socketkeepalive => 'false', }, }

mountfilecontent => { worker1 => { urilist => ['/context1/', '/context1/'], comment => 'Worker 1', }, worker_2 => { uri_list => ['/context_2/', '/context_2/'], comment => 'Worker 2', },

worker3 => { urilist => ['/context3/', '/context3/*'], comment => 'Worker 3', },

worker4 => { urilist => ['/context4/', '/context4/*'], comment => 'Worker 4', },

worker5 => { urilist => ['/context5/', '/context5/*'], comment => 'Worker 5', }, }

edit retag flag offensive close merge delete

Comments

Can you please format your question, so that your code is readable?

luksi1 gravatar imageluksi1 ( 2017-12-04 12:48:55 -0600 )edit