Ask Your Question
0

current activerecords breaks puppet with storeconfigs

asked 2015-02-02 20:17:08 -0500

squisher gravatar image

updated 2015-02-03 15:50:19 -0500

ramindk gravatar image

Hi, I'm running puppet 3.7.2 (debian jessie) and want to use storeconfigs in the old activerecords style. I know it's deprecated, but it seems that currently it is also broken:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `verify_active_connections!' for ActiveRecord::Base:Class

And yes, that method doesn't exist anymore as far as I can tell. I'm using activerecords 4.1.8. What are my options?

Thanks, ~David

edit retag flag offensive close merge delete

Comments

Thanks for the pointer. But first of all, it's not so easy to downgrade that, and 3.7.2 is a pretty up-to-date version of puppet. So that suggets to me that storeconfigs with activerecord is basically dead code, and not just deprecated. I wish there was some better documentation for all of this!

squisher gravatar imagesquisher ( 2015-02-03 16:27:28 -0500 )edit

It's incredibly easy to downgrade activerecord. Remove it and sudo gem install activerecord -v3.2.?? and for docs, https://docs.puppetlabs.com/puppet/3.7/reference/deprecated_api.html

ramindk gravatar imageramindk ( 2015-02-04 12:23:28 -0500 )edit

Also the better solution is Puppetdb. I would start with it rather than try to get activerecord to work.

ramindk gravatar imageramindk ( 2015-02-04 12:24:19 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-02-09 00:50:18 -0500

joshc gravatar image

Puppet uses bundler to express its gem dependencies. From https://github.com/puppetlabs/puppet/... , you can see we have a pessimistic pin on active_record 3.2, so anything in the 3.x series should work, but 4.x will not.

edit flag offensive delete link more

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: 2015-02-02 20:17:08 -0500

Seen: 235 times

Last updated: Feb 09 '15