Puppet安装Apache Tomcat

时间:2015-01-06 13:29:05

标签: tomcat puppet

我正在尝试通过Puppet安装Apache Tomcat。

我正在使用模块https://forge.puppetlabs.com/puppetlabs/tomcat并按照那里给出的说明进行操作

我的木偶代码是

node 'xx' {

   include configuretomcat
   include tomcat
   include epel

 }  

class { 'tomcat':
  install_from_source => false,
}
class { 'epel': }


class configuretomcat {

  tomcat::instance{ 'default':
  package_name        => 'tomcat',
  catalina_base => '/opt/apache-tomcat/tomcat',
  }

  tomcat::service { 'default':
  use_jsvc     => false,
  use_init     => true,
  service_name => 'tomcat',
  }

}

但是,Tomcat安装没有在webapps中部署应用程序。即没有ROOT或经理申请。我做错了吗?

epel课程为https://forge.puppetlabs.com/stahnma/epel

0 个答案:

没有答案