scylladb / scylla-ansible-roles

Ansible roles for deploying and managing Scylla, Scylla-Manager and Scylla-Monitoring
44 stars 38 forks source link

[Scylla Role]: use a wiser logic for auto-detection repo URLs #290

Closed vladzcloudius closed 1 year ago

vladzcloudius commented 1 year ago

HEAD: ffddada746aca4e01d3b9f0cac642ff2754fcfda

Description Scylla repo helper URLs have a rather straight forward name structure:

E.g. for Ubuntu it's

http://downloads.scylladb.com/deb/ubuntu/scylla-<major>.<minor>.list

for an OSS 5.1
http://downloads.scylladb.com/deb/ubuntu/scylla-5.1.list

for Ent 2022.2:
http://downloads.scylladb.com/deb/ubuntu/scylla-2022.2.list

However Role's API requires an explicit specifying of the above URL specification on the one hand but we do support specifying a scylla_version: latest on another.

And these two facts together mean that we have to keep on updating the default value of that URL which is not very productive.

Instead we could calculate a default scylla_repos/scylla_deb_repos/scylla_rpm_repos to be according to a formula similar to the one above.