Ask Your Question
1

up2date puppetlabs concat uses deprecated puppetlabs stdlib functions !

asked 2016-12-20 04:33:07 -0500

FranzCC gravatar image

updated 2016-12-20 09:54:18 -0500

DarylW gravatar image

Hi,
i really got angry to use the up2date puppetlabs certified concat module with an up2date puppetlabs certified stdlib module !
Do you test your modules ?
We use PE 2016.4.2
Concat Module Version: ├── puppetlabs-concat (v2.2.0)
Stdlib Version: ├── puppetlabs-stdlib (v4.14.0)

Enterprise also installs its own concat module:
├── puppetlabs-pe_concat (v1.1.2-7-g77ec55b)

When using the puppetlabe concat module, this warning will be shown:

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 :
   (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 :
   (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 :
   (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 :
   (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 :
   (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 :
   (at /etc/puppetlabs/code/environments/production/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation')

How can i get rid of that errormessage w/o tweaking the env on every node by setting:

STDLIB_LOG_DEPRECATIONS'] == 'false'

Best regards Franz

edit retag flag offensive close merge delete

Comments

You can always download old version from forge.puppetlabs.com .

Kai Burghardt gravatar imageKai Burghardt ( 2016-12-20 16:42:03 -0500 )edit

Why should i do that ? concat as well as stdlib are fully supported and available to download.

FranzCC gravatar imageFranzCC ( 2016-12-21 00:12:58 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2016-12-21 00:19:56 -0500

FranzCC gravatar image

updated 2017-01-02 00:47:14 -0500

My workaround until puppet fixes its own up2date modules ;-)

$puppet_defaults = @(END)
# Managed by puppet. Do not change anything here !!!
# You may specify parameters to the puppet client here
#PUPPET_EXTRA_OPTS=--waitforcert=500
STDLIB_LOG_DEPRECATIONS=false
END

file { '/etc/default/puppet':
        ensure  => file,
        mode  => '0644',
        content => inline_epp($puppet_defaults, {})
}

exec { 'restart-puppet-agent':
    command     => '/usr/sbin/service puppet restart',
    user        => 'root',
    refreshonly => true,
    subscribe   => File['/etc/default/puppet']
}
edit flag offensive delete link more

Comments

1

That stops it if you manually run puppet agent -t, but it won't stop them in the actual logs from your puppet run... you would have to add it to the appropriate /etc/{sysconfig,defaults}/puppet file to ensure it is set for your daemon

DarylW gravatar imageDarylW ( 2016-12-21 07:15:27 -0500 )edit
1

Thanks Daryl, fix works now !

FranzCC gravatar imageFranzCC ( 2017-01-02 00:47:49 -0500 )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

1 follower

Stats

Asked: 2016-12-20 04:33:07 -0500

Seen: 137 times

Last updated: Jan 02