@jrosser:matrix.org | i have a use for something like "job.collections" which would be for a similar purpose as "job.roles" | 17:58 |
---|---|---|
@jrosser:matrix.org | I am putting more and more roles into collections, and also now multiple collections into a single repo which is working out better than previously having one-role-per-repo | 17:59 |
@jrosser:matrix.org | but i don't think i can specify these roles to be available in my zuul jobs currently via job.roles | 18:00 |
@jim:acmegating.com | jrosser: it's correct that there is no direct support in zuul for collections (though just for clarity, zuul does support having multiple roles in a repo; eg zuul-jobs is constructed that way). | 18:01 |
@jrosser:matrix.org | i did dig in the code a bit and that seemed to only work when they were in the top level roles/ directory | 18:02 |
@jim:acmegating.com | jrosser: yes that's documented in paragraph 5 of https://zuul-ci.org/docs/zuul/latest/config/job.html#attr-job.roles | 18:03 |
@jim:acmegating.com | (i think a symlink would probably work) | 18:04 |
@jrosser:matrix.org | right so thats why i'm stuck - it is possible to structure multiple collections into a single repo, each with a roles/ dir | 18:04 |
@jrosser:matrix.org | apologies i have to go to eat now, but example syntax of this in an ansible-galaxy requirements file is `https://opendev.org/openstack/my_repo#/my_collection` | 18:09 |
@jim:acmegating.com | jrosser: if you want to try to get something working quickly, you can try a bunch of symlinks into a roles/ directory (no guarantees there; that's not a documented or tested behavior). if you're interested in enhancing zuul to support collections, you're welcome to contribute that. i also offer commercial zuul support and development services which support my work on the project; i'd be happy to discuss that offline. | 18:09 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!