puppetlabs-postgresql and puppetlabs-mysql fail with similar (same?) error

240 views
Skip to first unread message

Peter Berghold

unread,
Aug 9, 2015, 6:51:45 PM8/9/15
to puppet-users
I'll focus on the mysql module first.   I assigned the ::mysql::server class to one of my hosts expecting mysql server to get loaded and this happened instead:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Unknown function pick at /etc/puppet/environments/production/modules/mysql/manifests/server/config.pp:22 on node 

earlier in the day with a different host I saw the same function get called out for the puppetlabs-postgresql module as not being found.  

Here is the affected line in the msyql;:server::config class.  

  $logbin = pick($options['mysqld']['log-bin'], $options['mysqld']['log_bin'], false)

where was this function supposed to have come from?

Matthew Hyclak

unread,
Aug 9, 2015, 8:20:49 PM8/9/15
to puppet...@googlegroups.com
It comes from puppetlabs-stdlib. puppet module should have installed it as a dependency, but if you're installing the modules by hand (like with r10k) you'll have to check all of the dependencies and make sure they're also installed.

For example, puppetlabs-mysql also requires nanliu-staging in addition to stdlib: https://forge.puppetlabs.com/puppetlabs/mysql/dependencies

Matt

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAArvnv2xKZ8V-h17ann_rNPG1mEzqMhOs5mZ0NUbgfdFjaeCaA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages