puppetlabs-image_build
puppetlabs-image_build copied to clipboard
Error building images when in metadata file is used centos as parameter for "from" field
Hello,
Creating the metadata file to build images , if you use Centos as distribution, by example:
cmd: "/usr/sbin/apache2,-DFOREGROUND" expose: 80 image_name: puppetdocker/apachetest from: centos
The next error is obtained, the URL to obtain the rpm is incorrect. The #{@context[:os_version]} is "null" and because of this the URL is badly generated:
curl: (22) The requested URL returned error: 404 Not Found error: skipping https://yum.puppetlabs.com/puppet5/puppet5-release-el-.noarch.rpm - transfer failed
If you define the tag for your image, the error is solved. By example, next metadata solve the problem:
cmd: "/usr/sbin/apache2,-DFOREGROUND" expose: 80 image_name: puppetdocker/apachetest from: centos:7
My OS is Ubuntu 17.10 artful and I'm using the 0.7.0 for the puppetlabs-image_build