Mounting the File contents.

asked 2017-11-30 05:16:48 -0600

mulwa gravatar image

Hey, how do i file the file contents? i am not understanding this part,

mountfilecontent

Each directive has the format <uri> = <worker name="">. This maps as a hash of hashes, where the outer hash specifies workers, and each inner hash contains two items: uri_list - an array with URIs to be mapped to the worker - and comment - an optional string with a comment for the worker. For example, the mount file below:

1 2 3 4 5 6 7 8

Worker 1

/context1/ = worker1 /context1/* = worker1

Worker 2

/ = worker2 /context2/ = worker2 /context2/* = worker_2 Should be parameterized as:

1 2 3 4 5 6 7 8 9 10 $mountfilecontent = { worker1 => { urilist => ['/context1/', '/context1/'], comment => 'Worker 1', }, worker_2 => { uri_list => ['/context_2/', '/context_2/'], comment => 'Worker 2', }, }, node "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',

} file { '/usr/lib/apache2/modules/mod_jk.so': ensure => 'file', }

file { '/etc/apache2/mods-enabled/load': ensure => 'directory', } 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', }, }

}

i want to mount tomcat8, instance1, instance2, instance3, instance4 and instance5 as shown above in the file... your help will be greatly appreciated. regards.

edit retag flag offensive close merge delete

Comments

Are you talking about a bind mount: mount -o bind /path/to/some/file /some/preExisting/fileAsMountpoint ?

Kai Burghardt gravatar imageKai Burghardt ( 2017-12-11 12:41:47 -0600 )edit