Ask Your Question
0

How to disable the puppet log warning messages (deprecated messages) which is coming from stdlib module in puppet version 4.6

asked 2018-09-18 02:31:05 -0600

canilkumar24 gravatar image

updated 2018-09-19 07:40:41 -0600

DarylW gravatar image

Hi team,

Getting the below puppet log warning messages on the linux and windows nodes in the entire environment. I do not want to appear the deprecated log warning messages on the nodes in the environment. How to disable these deprecated log warning messages? Using the puppet version 4.6.

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 ["/opt/manifests/site.pp", 16]:["/opt/modules/profile/manifests/base.pp", 28]
   (at opt/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation')

So request to please help me on, How to disable the puppet log warning messages (deprecated messages) which is coming from stdlib module . in puppet version 4.6

edit retag flag offensive close merge delete

Comments

Hi all, May I have the solution for above issue please.

canilkumar24 gravatar imagecanilkumar24 ( 2018-10-03 03:01:11 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-09-24 12:37:53 -0600

You can disable deprecation warnings via:

https://puppet.com/docs/puppet/4.6/co...

But the appropriate response is to resolve the warning:

https://forge.puppet.com/puppetlabs/s...

edit flag offensive delete link more

Comments

I have gone through the above mentioned links, but unable to follow the instructions as it is confusing. Can you please suggest me, in which module and in which file need to make the changes. As well let me know in which file I need to make the changes to make the deprecication warnings disabled.

canilkumar24 gravatar imagecanilkumar24 ( 2018-09-27 03:39:20 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-09-18 02:31:05 -0600

Seen: 201 times

Last updated: Sep 24