Ask Your Question

Puppet and Augeas - private method `open' called for Augeas:Class

asked 2015-09-01 12:54:14 -0600

hraban gravatar image

I have a Vagrant box provisioned by Puppet. Ruby 2.0.0 is installed with RVM, Puppet is installed trough Gem. I get

==> default: Error: /Stage[main]/Main/Augeas[php.ini]: Could not evaluate: private method `open' called for Augeas:Class

When this (simplified version of my) manifest is run

package { 'php56w' :
  ensure => 'present',
  require => Yumrepo['webtatic'],

package { 'augeas':
    ensure   => 'installed',
    provider => 'gem',
    require => Package['augeas-devel'],

package { 'augeas-devel':
    ensure   => 'installed',

package { 'ruby-augeas':
    ensure   => 'installed',
    provider => 'gem',
    require => [

augeas { "php.ini":
  notify  => Service[httpd],
  require => [
  context => "/files/etc/php.ini/Date",
  changes => [
    "set date.timezone Europe/London",

I tried to use augtool to manually make this change in on the host and it worked flawlessly. Can you please help me narrow down this problem?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-09-08 02:18:57 -0600

domcleal gravatar image

You have the wrong "augeas" gem installed. Augeas is a C library and the gem interfaces between it and Ruby.

ruby-augeas is the correct one, the one maintained upstream and the one that Puppet relies on.

It sounds like you have augeas installed, which is an incompatible fork and will give that error.

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


Asked: 2015-09-01 12:54:14 -0600

Seen: 741 times

Last updated: Sep 08 '15