datastax / zdm-proxy-automation

An Ansible-based automation suite to deploy and manage the Zero Downtime Migration Proxy
https://docs.datastax.com/en/astra-serverless/docs/migrate/introduction.html
Apache License 2.0
60 stars 5 forks source link

Make Ansible automation OS-independent #36

Open sync-by-unito[bot] opened 1 year ago

sync-by-unito[bot] commented 1 year ago

The Ansible playbooks currently assume that the OS belongs to the Debian family and explicitly refer to the apt-get package manager. There are also some hardcoded paths referring to the ubuntu home dir and the tasks to install Docker on the proxy hosts are specific to the Ubuntu requirements.

This limits the possibility of using the automation in case where a different OS is required.

We should make the automation independent of the specific OS being used. This is common practice for Ansible automation scripts and there are mechanisms to help achieve this relatively easily.

┆Issue is synchronized with this Jira New Feature by Unito ┆Components: Automation ┆Fix Versions: cloudgate-automation-v1.1.0,artemis-future ┆Priority: Critical

sync-by-unito[bot] commented 1 year ago

➤ Jeff DiNoto commented:

This issue was discussed recently in grooming, some notes from that conversation:

The end-goal is certainly generic support, but that may not be totally necessary depending on the customer use-cases.

We should keep in mind that this automation is a helper function, it’s not the core software element. If it has requirements (OS based), that is reasonable.

Goals for this issue:

sync-by-unito[bot] commented 1 year ago

➤ Jeff DiNoto commented:

It’s unclear if this is necessary for Artemis or not – I went ahead and added the label anyways so that it can be discussed further. I asked recently about it and the answer was that we don’t know what the customers will need or not in this realm.

sync-by-unito[bot] commented 1 year ago

➤ Joao Reis commented:

Alice Lottini can we close this ticket after the containerization/zdm-util or not yet?

sync-by-unito[bot] commented 1 year ago

➤ Alice Lottini commented:

Not yet I’m afraid - the ZDM Utility removes the OS dependency for the control host, but the playbooks still expect Ubuntu on the proxy hosts. I know that there are ways to make Ansible select the appropriate package manager for the OS of the hosts it manages, but this is also about the right dependencies and the portability of the Docker module in particular.