Mounting. the files

asked 2017-11-29 04:22:16 -0600

mulwa gravatar image

updated 2017-11-29 04:46:38 -0600

stivesso gravatar image

Hey. thanks a lot for your help, I have successfully done everything apart from mounting, kindly help me how I can do it. regards.

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',
  workers_file => 'conf.d/workers.properties',
  mount_file   => 'conf.d/uriworkermap.properties',
  shm_file     => 'run/jk.shm',
  shm_size     => '50M',
  workers_file_content => {
    worker_lists   => ['tomcat8', 'instance1', 'instance2', 'instance3', 'instance4', 'instance5'],
    worker_mantain => '60',
    some_name      => {
      comment          => 'Optional comment',
      type             => 'ajp13',
socket_keepalive => 'true',
    },
    other_name     => {
    comment          => 'I just like comments',
    type             => 'ajp12',
    socket_keepalive => 'false',
    },
}

}


class {'tomcat':
 service_ensure => 'running',
 service_enable => true
}


tomcat::instance { 'instance1':
 server_control_port => 8005,
 http_port           => 8080,
 ajp_connector       => 8009,
}

tomcat::instance { 'instance2':
 server_control_port => 8105,
 http_port           => 8081,
 ajp_connector       => 8109,
 manage_firewall     => true,
}

tomcat::instance { 'instance3':
 server_control_port => 8205,
 http_port           => 8082,
 ajp_connector       => 8209,

}
tomcat::instance { 'instance4':
 server_control_port => 8305,
 http_port           => 8083,
 ajp_connector       => 8309,

}

tomcat::instance { 'instance5':
 server_control_port => 8405,
 http_port           => 8084,
 ajp_connector       => 8409,

}
edit retag flag offensive close merge delete

Comments

i want to mount the contents of /workers.properties and going by the documentation, I'm not understanding this part Should be parameterized as: $mount_file_content = { worker_1 => { uri_list => ['/context_1/', '/context_1/*'], comment => 'Worker 1', }, worker_2 => { uri_list =

mulwa gravatar imagemulwa ( 2017-11-29 06:22:11 -0600 )edit