sensu / uchiwa-chef

Other
33 stars 40 forks source link

yum repo doesn't work on Amazon Linux #71

Open jfacevedo opened 4 years ago

jfacevedo commented 4 years ago

https://github.com/sensu/uchiwa-chef/blob/aca9e3256d0276a8bc7805bb4d40d07be03b5766/recipes/repo.rb#L41

When the repo is going to be configured on Amazon Linux AMI, it fails because the $releasever variable is set as "latest" so the repo URL tries to create as "http://repositories.sensuapp.org/yum/latest/..." and latest doesn't exist. In addition, if you try to lock the AMI to a specific version, $releasever changes to the AMI release date. Eg. "2018.02" and that link also doesn't work.