Unsere OpsWork Chef-Skripts zum Hochfahren einer EC2-Instanz funktionieren nicht mehr.Nokogiri/Fog nicht auf AWS installieren OpsWorks Chef 11
Meine Interpretation der Protokolldatei, Auszug unten, ist, dass Route53 versucht, Nebel zu verwenden, aber Nebel kann nicht installiert werden, da Nokogiri Ruby 2.1.0 oder höher benötigt.
Nach einigen Google-Suchen finde ich, dass die Version von Ruby an die OpsWork-Version gebunden ist und wir Chef 11 verwenden, ist Ruby 2.0.
Was ich nicht verstehe, ist, dass wir alle eine festgelegte Version auf Nokogirl
gem_package "nokogiri" do
action :install
version "1.5.11"
end
den Chef-Skripte, wo im letzten Jahr ausgeführt wird, so dass ich etwas in Nokogiri oder Nebel verändert zu erraten. Jede Hilfe wäre willkommen.
From log...
[2017-01-30T09:29:48+10:00] INFO: Processing package[autoconf] action nothing (build-essential::_debian line 108)
[2017-01-30T09:29:48+10:00] INFO: Processing package[binutils-doc] action nothing (build-essential::_debian line 108)
[2017-01-30T09:29:48+10:00] INFO: Processing package[bison] action nothing (build-essential::_debian line 108)
[2017-01-30T09:29:48+10:00] INFO: Processing package[build-essential] action nothing (build-essential::_debian line 108)
[2017-01-30T09:29:48+10:00] INFO: Processing package[flex] action nothing (build-essential::_debian line 108)
[2017-01-30T09:29:48+10:00] INFO: Processing package[gettext] action nothing (build-essential::_debian line 108)
[2017-01-30T09:29:48+10:00] INFO: Processing package[ncurses-dev] action nothing (build-essential::_debian line 108)
[2017-01-30T09:29:48+10:00] INFO: Processing package[libxml2-dev] action nothing (route53::default line 23)
[2017-01-30T09:29:48+10:00] INFO: Processing package[libxslt1-dev] action nothing (route53::default line 28)
[2017-01-30T09:29:48+10:00] INFO: Processing chef_gem[fog] action install (route53::default line 44)
[2017-01-30T09:29:48+10:00] INFO: Installing chef-gem fog = 1.20
ERROR: Error installing fog:
nokogiri requires Ruby version >= 2.1.0.
[2017-01-30T09:29:55+10:00] INFO:
[2017-01-30T09:29:55+10:00] INFO: Processing route53_record[fresno.servers.digitaldealer.com.au] action create (digitaldealer::adddns line 4)
================================================================================
Error executing action `create` on resource 'route53_record[fresno.servers.digitaldealer.com.au]'
================================================================================
LoadError
---------
cannot load such file -- fog/aws/dns
Cookbook Trace:
---------------
/var/lib/aws/opsworks/cache.stage2/cookbooks/route53/providers/record.rb:3:in `require'
/var/lib/aws/opsworks/cache.stage2/cookbooks/route53/providers/record.rb:3:in `block in class_from_file'
Großartig, das hat funktioniert, Sie sind ein Lebensretter. –