2
Puppet v4.9.2のCentos 7では、javaとtomcatをインストールしようとしています。私がapplyコマンドを実行するとき。それは警告メッセージを出します。パペット 'hiera.yaml'バージョン3の使用は推奨されていません。バージョン5に変換する必要があります
警告メッセージの解決に役立つ情報はありますか?
node 'webserver' {
class { 'java' :
distribution => 'jdk',
package => 'java-1.8.0-openjdk-devel'
}
tomcat::install { '/opt/tomcat9':
source_url => 'http://apache.osuosl.org/tomcat/tomcat-9/v9.0.0.M17/bin/apache-tomcat-9.0.0.M17.tar.gz',
}
tomcat::instance { 'tomcat9-1':
catalina_home => '/opt/tomcat9',
catalina_base => '/opt/tomcat9/1',
}
}
メッセージ
Warning: /etc/puppetlabs/puppet/hiera.yaml: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5
(in /etc/puppetlabs/puppet/hiera.yaml)
Warning: This method is deprecated, please use the stdlib validate_legacy function, with Pattern[]. There is further documentation for validate_legacy function in the README. at ["/etc/puppetlabs/code/environments/production/modules/java/manifests/init.pp", 54]:
(at /etc/puppetlabs/code/environments/production/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation')
Warning: This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Bool. There is further documentation for validate_legacy function in the README. at ["/etc/puppetlabs/code/environments/production/modules/tomcat/manifests/init.pp", 40]:["/etc/puppetlabs/code/environments/production/modules/tomcat/manifests/install.pp", 20]
(at /etc/puppetlabs/code/environments/production/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation')
Warning: This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Absolute_Path. There is further documentation for validate_legacy function in the README. at ["/etc/puppetlabs/code/environments/production/modules/concat/manifests/init.pp", 70]:
(at /etc/puppetlabs/code/environments/production/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation')
Warning: This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::String. There is further documentation for validate_legacy function in the README. at ["/etc/puppetlabs/code/environments/production/modules/concat/manifests/init.pp", 71]:
(at /etc/puppetlabs/code/environments/production/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation')
Warning: This method is deprecated, please use match expressions with Stdlib::Compat::String instead. They are described at https://docs.puppet.com/puppet/latest/reference/lang_data_type.html#match-expressions. at ["/etc/puppetlabs/code/environments/production/modules/concat/manifests/init.pp", 72]:
(at /etc/puppetlabs/code/environments/production/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation')
Warning: This method is deprecated, please use match expressions with Stdlib::Compat::Bool instead. They are described at https://docs.puppet.com/puppet/latest/reference/lang_data_type.html#match-expressions. at ["/etc/puppetlabs/code/environments/production/modules/concat/manifests/init.pp", 82]:
(at /etc/puppetlabs/code/environments/production/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation')
Notice: Compiled catalog for webserver in environment production in 0.66 seconds
おかげ のSr
どのバージョンのtomcat/stdlibモジュールを使用していますか? – jaxxstorm
@Frapこれは私が持っているバージョンです。 "name": "puppetlabs-tomcat"、 "version": "1.6.1"、 "名前": "puppetlabs-stdlib"、 "version": "4.15.0"、 – sfgroups
https:// docs。 puppet.com/puppet/4.9/hiera_intro.html#whats-the-deal-with-hiera-5 –