2017-03-04 25 views
2

在Centos 7中使用Puppet v4.9.2,嘗試安裝java和tomcat。當我運行應用命令。它給出了警告信息。木偶使用'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 

感謝 鍶

+0

您正在使用哪個版本的tomcat/stdlib模塊? – jaxxstorm

+0

@Frap這是我有的版本。 「name」:「puppetlabs-tomcat」, 「version」:「1.6.1」, 「name」:「puppetlabs-stdlib」, 「version」:「4.15.0」, – sfgroups

+0

https:// docs。 puppet.com/puppet/4.9/hiera_intro.html#whats-the-deal-with-hiera-5 –

回答

相關問題