Correction - Puppet Agent is version 4.x of Puppet, which we haven't 
migrated to, so I can't use that package yet.

On Sunday, 24 April 2016 12:19:58 UTC+10, Amos Shapira wrote:
>
> Thanks.
>
> Since running Puppet is the ultimate goal, I'll try to go that way. They 
> even provide command-line installation instructions.
>
> On Saturday, 23 April 2016 03:28:29 UTC+10, David Lutterkort wrote:
>>
>> Hi Amos,
>>
>> ruby-augeas is certainly not abandoned, though there has been little 
>> activity on it. I am not sure what the clone at 
>> https://github.com/uib/ruby-augeas - this is the first time I've seen 
>> it. The official upstream of ruby-augeas is 
>> https://github.com/hercules-team/ruby-augeas; that's not helping you 
>> much, since it doesn't have support for building on OSX. I'll see if I can 
>> find somebody who'd like to open a PR there for OSX build support.
>>
>> As a quick fix, you could install the OSX puppet-agent 
>> <https://docs.puppet.com/puppet/latest/reference/install_osx.html> 
>> package - that has ruby-augeas (and all the other goodies that make up 
>> puppet-agent) in it.
>>
>> David
>>
>> On Thursday, April 21, 2016 at 9:28:46 PM UTC-7, Amos Shapira wrote:
>>>
>>> More updates found just after posting this (why do all the useful links 
>>> appear only after posting questions, despite digging for them for hours 
>>> before asking??):
>>>
>>> "Known Bugs" lists that ruby-augeas is broken (and another link mentions 
>>> that it haven't been touched since 2013 and might be abandoned):
>>>
>>>
>>> https://github.com/berndmweber/open-source-puppet-master/blob/master/modules/puppet/README.md
>>>
>>>
>>> On Friday, 22 April 2016 14:23:10 UTC+10, Amos Shapira wrote:
>>>>
>>>> Hello,
>>>>
>>>> I'm working on automating of OS X vmware build using Puppet.
>>>>
>>>> I use Packer to build the base image (based on excellent work done in 
>>>> https://github.com/timsutton/osx-vm-templates) and take the 
>>>> opportunity to pre-install Puppet, Homebrew and gems used by Puppet itself 
>>>> like hiera, hiera-eyaml, and augeas.
>>>>
>>>> The trouble is that although 'augeas' gets installed by Homebrew just 
>>>> fine, the 'ruby-augeas' gem fails with an error "extconf.rb:27:in 
>>>> `<main>': augeas-devel not installed (RuntimeError)":
>>>>
>>>> *# gem install --verbose --no-ri --no-rdoc ruby-augeas*
>>>> *HEAD https://rubygems.org/latest_specs.4.8.gz 
>>>> <https://rubygems.org/latest_specs.4.8.gz>*
>>>> *302 Moved Temporarily*
>>>> *HEAD https://rubygems.global.ssl.fastly.net/latest_specs.4.8.gz 
>>>> <https://rubygems.global.ssl.fastly.net/latest_specs.4.8.gz>*
>>>> *304 Not Modified*
>>>> *GET 
>>>> https://rubygems.org/quick/Marshal.4.8/ruby-augeas-0.5.0.gemspec.rz 
>>>> <https://rubygems.org/quick/Marshal.4.8/ruby-augeas-0.5.0.gemspec.rz>*
>>>> *302 Moved Temporarily*
>>>> *GET 
>>>> https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/ruby-augeas-0.5.0.gemspec.rz
>>>>  
>>>> <https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/ruby-augeas-0.5.0.gemspec.rz>*
>>>> *200 OK*
>>>> *Installing gem ruby-augeas-0.5.0*
>>>> *Downloading gem ruby-augeas-0.5.0.gem*
>>>> *GET https://rubygems.org/gems/ruby-augeas-0.5.0.gem 
>>>> <https://rubygems.org/gems/ruby-augeas-0.5.0.gem>*
>>>> *302 Moved Temporarily*
>>>> *GET https://rubygems.global.ssl.fastly.net/gems/ruby-augeas-0.5.0.gem 
>>>> <https://rubygems.global.ssl.fastly.net/gems/ruby-augeas-0.5.0.gem>*
>>>> *Fetching: ruby-augeas-0.5.0.gem (100%)*
>>>> *200 OK*
>>>> */Library/Ruby/Gems/2.0.0/gems/ruby-augeas-0.5.0/Rakefile*
>>>> */Library/Ruby/Gems/2.0.0/gems/ruby-augeas-0.5.0/COPYING*
>>>> */Library/Ruby/Gems/2.0.0/gems/ruby-augeas-0.5.0/README.rdoc*
>>>> */Library/Ruby/Gems/2.0.0/gems/ruby-augeas-0.5.0/NEWS*
>>>> */Library/Ruby/Gems/2.0.0/gems/ruby-augeas-0.5.0/ext/augeas/_augeas.c*
>>>> */Library/Ruby/Gems/2.0.0/gems/ruby-augeas-0.5.0/ext/augeas/_augeas.h*
>>>> */Library/Ruby/Gems/2.0.0/gems/ruby-augeas-0.5.0/lib/augeas.rb*
>>>> */Library/Ruby/Gems/2.0.0/gems/ruby-augeas-0.5.0/ext/augeas/extconf.rb*
>>>> */Library/Ruby/Gems/2.0.0/gems/ruby-augeas-0.5.0/tests/root/etc/group*
>>>> */Library/Ruby/Gems/2.0.0/gems/ruby-augeas-0.5.0/tests/root/etc/hosts*
>>>> */Library/Ruby/Gems/2.0.0/gems/ruby-augeas-0.5.0/tests/root/etc/inittab*
>>>>
>>>> */Library/Ruby/Gems/2.0.0/gems/ruby-augeas-0.5.0/tests/root/etc/ssh/sshd_config*
>>>> */Library/Ruby/Gems/2.0.0/gems/ruby-augeas-0.5.0/tests/tc_augeas.rb*
>>>> *Building native extensions.  This could take a while...*
>>>> */System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby 
>>>> extconf.rb*
>>>> **** extconf.rb failed ****
>>>> *Could not create Makefile due to some reason, probably lack of 
>>>> necessary*
>>>> *libraries and/or headers.  Check the mkmf.log file for more details. 
>>>>  You may*
>>>> *need configuration options.*
>>>>
>>>> *Provided configuration options:*
>>>> * --with-opt-dir*
>>>> * --without-opt-dir*
>>>> * --with-opt-include*
>>>> * --without-opt-include=${opt-dir}/include*
>>>> * --with-opt-lib*
>>>> * --without-opt-lib=${opt-dir}/lib*
>>>> * --with-make-prog*
>>>> * --without-make-prog*
>>>> * --srcdir=.*
>>>> * --curdir*
>>>> * 
>>>> --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby*
>>>> * --with-augeas-config*
>>>> * --without-augeas-config*
>>>> * --with-pkg-config*
>>>> * --without-pkg-config*
>>>> *extconf.rb:27:in `<main>': augeas-devel not installed (RuntimeError)*
>>>> *ERROR:  Error installing ruby-augeas:*
>>>> * ERROR: Failed to build gem native extension.*
>>>>
>>>> *    Building has failed. See above output for more information on the 
>>>> failure.*
>>>>
>>>> *Gem files will remain installed in 
>>>> /Library/Ruby/Gems/2.0.0/gems/ruby-augeas-0.5.0 for inspection.*
>>>> *Results logged to 
>>>> /Library/Ruby/Gems/2.0.0/gems/ruby-augeas-0.5.0/ext/augeas/gem_make.out*
>>>>
>>>> As much as I researched, I couldn't find any information about this 
>>>> error for OSX, only a few mentions about old Ubuntu (10.04) and RedHat. 
>>>> Does anyone know how to make it work?
>>>>
>>>> Thanks.
>>>>
>>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/cd886f2c-0f07-4061-aec5-b180a2f72e88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to