Add a production and development CLI#143
Conversation
| OBSAH_NAME=rop | ||
| OBSAH_DATA=src | ||
| OBSAH_INVENTORY=./inventories/ | ||
| export OBSAH_NAME OBSAH_DATA OBSAH_INVENTORY |
There was a problem hiding this comment.
We'll need to disable extra vars and add to this list, I opened theforeman/obsah#76 to do so.
58c6280 to
c88af8d
Compare
ekohl
left a comment
There was a problem hiding this comment.
I'm trying to wrap my head around what we all have.
- (semi-)transformation of our Ansible data into a collection for production
- Rewrite of development/testing tooling into a collection
- Add wrapper scripts
Did I get that right?
| uses: ansible/ansible-lint@main | ||
| with: | ||
| requirements_file: requirements.yml | ||
| requirements_file: ../requirements.yml |
There was a problem hiding this comment.
I was wondering if we should move requirements.yml into src instead so I looked up how a collection is structured. https://docs.ansible.com/ansible/latest/dev_guide/developing_collections_structure.html tells me we should have a galaxy.yml in the same directory as roles and playbooks.
We can ignore it for now but where I'd like to head to is that we can point obsah at a collection and it can just do the right thing.
I think the "semi" is correct, as this keeps that option available without explicitly defining one yet. And as you note, the development parts are also taking the same shape now. Turning our development and testing actions into a developer focused CLI using wrapper scripts. |
779a9b2 to
a23a5fa
Compare
|
The same test keeps failing, but doesn't fail for me locally: Looks like due to network issue, maybe I broke the etc_hosts setup? |
a23a5fa to
4499671
Compare
4499671 to
4f2b5f2
Compare
evgeni
left a comment
There was a problem hiding this comment.
I am sure we can find enough things to improve, but let's get the current state in and iterate later.
c81573f to
19f7f3e
Compare
Signed-off-by: Eric D. Helms <ericdhelms@gmail.com>
19f7f3e to
234f264
Compare
This is an alternative to #131 where I use the method of a simple bash script outlined by #131 (comment).
I have also used this method to create the idea of a "development CLI" instead of bash scripts to show how we can encapsulate the development tasks into a similar CLI style for developers. This is also a way we could onboard additional CLIs in production if we wanted to have separate commands rather than actions.
This only adds
./forge start-vmsbut if we like the idea, I will adjust the other scripts also.This aims for the following layout:
src- production codedevelopment- development and testing toolsdocs- documentationtests- directory for tests and fixtures