Open karras opened 6 years ago
:hot_pepper: you said the most pros and cons already.
Pros:
Cons:
I think we should go for a multi repo setup but need to set some boundaries first.
Name scheme for the repository?
We should prefix the roles properly otherwise people might run into issues when every role is simply called nginx
or similar. Example: ansible-adfinis-nginx or adfinis-ansible-nginx
How will tests be defined?
Galaxy creates a tests
directory by default. I think we should follow that approach and have a test playbook and inventory file stored in each role repository. I'm not sure yet how to handle generic tests like linting, having to update 100 repos is not that great.
How will the roles be versioned? I guess we'll have to use git tags, AFAIK galaxy only supports those.
How would you use the roles? Probably using a requirements.yml file to include all necessary roles in specific versions.
How will the roles in galaxy be updated automatically? https://docs.ansible.com/ansible/latest/galaxy.html#travis-integrations
ansible-nginx
will suffice, we don't have forked roles in this organization. On Ansible Galaxy, I think we should name them adfinis-nginx
.tests
subdirectory is common sense and widely used, so we shouldn't do that another way. Ansible Lint shouldn't change in any way, each repository will be checked in Travis CI with Ansible Lint, that's not a big deal.I'd drop the "adfinis-" prefix as well but I'd also use "ansible-role-" as prefix so it possible to do things like "ansible-module-" or similar things at a later stage.
Sounds good to me. Meaning the naming scheme will look like this:
GitHub:
Galaxy:
Related #48
On Galaxy each role is named by account
.role
. Do we name our roles like adfinis-$ROLE
or do we name our roles like $ROLE
.
I propose that we name our roles just $ROLE
, because then the whole name will be adfinis-sygroup.$ROLE
, e.g. adfinis-sygroup.nginx
.
Sounds fine to me. On GitHub:
* ansible-role-nginx
* ansible-module-ucs
On Galaxy:
* nginx (adfinis-sygroup.nginx)
* mysql (adfinis-sygroup.mysql)
As discussed already we should consider moving to a multi repo setup and then publish all roles on ansible-galaxy.
Pros:
Cons:
HEAD
)@hairmare / @keachi please post your views as well, especially procs and cons...
Props to @hairmare for making this a hot topic! :hot_pepper: