gpt4 book ai didi

tomcat - 如何修复 Tomcat list 的 Augeas 依赖性?

转载 作者:行者123 更新时间:2023-11-28 22:41:52 25 4
gpt4 key购买 nike

我有以下 puppet list ,它假设在端口 8983 上安装和运行 Tomcat:

# tomcat.pp
package { [ "tomcat7", "tomcat7-admin" ]: ensure => present }
package { [ "augeas-tools", "libaugeas-dev", "libaugeas-ruby" ]: ensure => installed }

class { 'java': }
class { 'tomcat': install_from_source => false }

tomcat::config::server { 'tomcat7':
catalina_base => '/etc/tomcat7/Catalina',
port => '8983',
require => [ Package["libaugeas-ruby"] ]
}->
tomcat::service { 'default':
use_jsvc => false,
use_init => true,
service_name => 'tomcat7',
}

我已经安装了所有依赖项,例如:

sudo apt-get install puppet augeas-tools libaugeas-dev libaugeas-ruby
sudo puppet module install puppetlabs/tomcat

这是我的 puppet 和 augeas 包:

$ puppet --version
2.7.23

$ dpkg -l | grep augeas
ii augeas-lenses 0.10.0-1
ii augeas-tools 0.10.0-1
ii libaugeas-dev 0.10.0-1
ii libaugeas-ruby 0.4.1-1.1
ii libaugeas-ruby1.8 0.4.1-1.1
ii libaugeas-ruby1.9.1 0.4.1-1.1
ii libaugeas0 0.10.0-1

但是当我运行我的 list 时,它说我没有安装 Augeas:

$ sudo puppet apply -v tomcat-test.pp 
Server configurations require Augeas >= 1.0.0 at /etc/puppet/modules/tomcat/manifests/config/server.pp:28 on node debian-wheezy

我读过 Using Puppet with Augeas并且 augtool 工具工作正常。

如何修复损坏的依赖项?还是我需要重新启动任何东西?

最佳答案

此 list 要求 Augeas >= 1.0.0,而您有 0.10.0。

您需要升级您的 Augeas 包才能使用它。

如果您使用的是 Ubuntu,请参阅 the Augeas PPA

在 Debian 上,您可以检查 Camptocamp's repository .

关于tomcat - 如何修复 Tomcat list 的 Augeas 依赖性?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29357849/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com