木偶无法启动tomcat模块
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了木偶无法启动tomcat模块相关的知识,希望对你有一定的参考价值。
我正在尝试创建模块puppet for install tomcat 8. Tomcat安装成功,用户和角色添加,但我有以下问题,当Tomcat启动...:
/Stage[main]/Main/Node[web_mzol]/Tomcat::Instance[tomcat8]/Tomcat::Config::Properties[/opt/tomcat-8.5 catalina.properties] / Concat [/opt/tomcat-8.5/conf /catalina.properties]/Concat_file[/opt/tomcat-8.5/conf/catalina.properties]:无法使用'eval_generate'生成其他资源:未定义的方法`join'代表“/ opt / apache-tomcat / conf / catalina。属性“:字符串
错误:无法启动服务[tomcat-tomcat8]:执行'su -s / bin / bash -c'CATALINA_HOME = / opt / apache-tomcat CATALINA_BASE = / opt / apache-tomcat / opt / apache-tomcat / bin / catalina.sh start'tomcat'返回127:bash:/opt/apache-tomcat/bin/catalina.sh:没有这样的文件或目录
正如我所见,木偶使用错误的值变量“/ opt / apache-tomcat”,但必须使用“/opt/tomcat-8.5”......或其他原因?
主要清单/etc/puppetlabs/code/environments/production/manifests/site.pp:
node 'web_mzol' {
package { 'nginx' :
ensure => installed,
} ->
service {'nginx':
ensure => running,
enable => true,
}
class { '::tomcat': }
class { '::java': }
tomcat::instance { 'tomcat8':
catalina_base => '/opt/tomcat-8.5',
source_url => 'https://www-us.apache.org/dist/tomcat/tomcat-8/v8.5.28/src/apache-tomcat-8.5.28-src.tar.gz',
}
-> tomcat::config::server::tomcat_users {
'tet-role-manager-script':
ensure => present,
catalina_base => '/opt/tomcat-8.5',
element => 'role',
element_name => 'manager-script';
'tet-user-mzol':
ensure => present,
catalina_base => '/opt/tomcat-8.5',
element => 'user',
element_name => 'mzol',
password => 'mzol',
roles => ['manager-script'];
}
-> tomcat::service { 'tomcat8':
}
}
node default {}
谢谢
我修好了它。
node 'web_mzol' {
package { 'nginx' :
ensure => installed,
} -> # Order of the execution, service will be started after the installation
service {'nginx': # Name of the service
ensure => running, # Start the apache service
enable => true, # Start on system boot
}
class { '::tomcat': }
class { '::java': }
tomcat::instance { 'tom':
catalina_home => '/opt/tomcat-8.5',
source_url => 'https://www-us.apache.org/dist/tomcat/tomcat-8/v8.5.28/bin/apache-tomcat-8.5.28.tar.gz',
catalina_base => '/opt/tomcat-8.5',
}
-> tomcat::config::server::tomcat_users {
'tet-role-manager-script':
ensure => present,
catalina_base => '/opt/tomcat-8.5',
element => 'role',
element_name => 'manager-script';
'tet-user-mzol':
ensure => present,
catalina_base => '/opt/tomcat-8.5',
element => 'user',
element_name => 'mzol',
password => 'mzol',
roles => ['manager-script'];
}
以上是关于木偶无法启动tomcat模块的主要内容,如果未能解决你的问题,请参考以下文章
从木偶视图重新加载部分车把将无法访问为父视图中的部分模板元素定义的 ui 对象
Python/Firefox 无头抓取脚本中的“无法解码木偶的响应”消息
如何使用模块化代码片段中的LeakCanary检测内存泄漏?