Other relevant data:
/Stage[main]/Foreman_proxy::Install/Package[foreman-proxy]/ensure: change from ‘purged’ to ‘present’ failed: Execution of ‘/bin/yum -d 0 -e 0 -y install foreman-proxy’ returned 1: Error: Package: foreman-proxy-1.19.1-1.el7.noarch (foreman)\n\u001b[0m\u001b[31m Requires: rubygem(rake) >= 0.8.3\n\u001b[0m\u001b[31m You could try using --skip-broken to work around the problem\n\u001b[0m\u001b[31m You could try running: rpm -Va --nofiles --nodigest\
I have seen existing build (Sept 18th) worked fine with the same code, have not changed anything from my end, anything need to be updated or added ? Let me know if you need more info.
Ok, I tried building AMI freshly and got the same problem:
/Stage[main]/Foreman_proxy::Install/Package[foreman-proxy]/ensure: change from ‘purged’ to ‘present’ failed: Execution of ‘/bin/yum -d 0 -e 0 -y install foreman-proxy’ returned 1: Error: Package: foreman-proxy-1.19.1-1.el7.noarch (foreman)\n\u001b[0m\u001b[31m Requires: rubygem(rake) >= 0.8.3\n\u001b[0m\u001b[31m You could try using --skip-broken to work around the problem\n\u001b[0m\u001b[31m You could try running: rpm -Va --nofiles --nodigest\n\u001b[0mPackage[puppet-agent-oauth] : 27/330%!(PACKER_COMMA) 8%%!(PACKER_COMMA) 1.0/s%!(PACKER_COMMA) elapsed: 00:01:04%!(PACKER_COMMA) ETA: 00:05:13\nPackage[tftp-server]
Also a following error:
/Stage[main]/Apache::Mod::Passenger/Apache::Mod[passenger]/Package[mod_passenger]/ensure: change from ‘purged’ to ‘present’ failed: Execution of ‘/bin/yum -d 0 -e 0 -y install mod_passenger’ returned 1: Error: Package: passenger-4.0.53-4.el7.x86_64 (epel)\n\u001b[0m\u001b[31m Requires: rubygem(rake)\n\u001b[0m\u001b[31m You could try using --skip-broken to work around the problem\n\u001b[0m\u001b[31m You could try running: rpm -Va --nofiles --nodigest\n\u001b[0mFile[passenger.conf]