Thursday, 2024-01-18

@jrosser:matrix.orgi have a use for something like "job.collections" which would be for a similar purpose as "job.roles"17:58
@jrosser:matrix.orgI 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-repo17:59
@jrosser:matrix.orgbut i don't think i can specify these roles to be available in my zuul jobs currently via job.roles18:00
@jim:acmegating.comjrosser: 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.orgi did dig in the code a bit and that seemed to only work when they were in the top level roles/ directory18:02
@jim:acmegating.comjrosser: yes that's documented in paragraph 5 of https://zuul-ci.org/docs/zuul/latest/config/job.html#attr-job.roles18:03
@jim:acmegating.com(i think a symlink would probably work)18:04
@jrosser:matrix.orgright so thats why i'm stuck - it is possible to structure multiple collections into a single repo, each with a roles/ dir18:04
@jrosser:matrix.orgapologies 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.comjrosser: 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/!