Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate running CI on CentOS #28

Open
louise-davies opened this issue Apr 23, 2020 · 1 comment
Open

Investigate running CI on CentOS #28

louise-davies opened this issue Apr 23, 2020 · 1 comment

Comments

@louise-davies
Copy link
Collaborator

Currently, our CI just runs on Ubuntu via TravisCI. Most other CI services provide the exact same offering. Anvil provides CI on CentOS VMs, but currently doesn't provide admin access on VMs which ansible requires. Another alternative is to use Docker, as most CI providers have provisions to set up Docker containers, but this then requires more work setting up the Docker container.

@MRichards99
Copy link
Contributor

Sadly, I don't think this is feasible with GitHub Actions for the time being. Currently, Actions only supports Ubuntu out of the box. I have tried a couple of workarounds to get Centos working.

There is a specific action on the marketplace that can run Ansible using Centos 7. I tried this and it has no way of specifying a vault password file and therefore won't pick up the vault (nor have a password to access it).

You can also run a Ubuntu Actions runner using a centos Docker image. I tried doing this but kept facing errors at every stage. I think the Playbook would have to be modified to cope with a Centos docker image running on a Ubuntu machine (there seems to be some limitations such as geerlingguy/ansible-role-mysql#264 which I was unable to solve).

This is a shame because having Centos 7 on CI would mean the playbook would be tested more thoroughly, but I'm wary about spending excessive time looking at this without specific approval. I'll keep the issue open as I haven't come to a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants