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

Ability to create multiple groups and tasks #7

Open
bogdanov1609 opened this issue Oct 30, 2017 · 4 comments
Open

Ability to create multiple groups and tasks #7

bogdanov1609 opened this issue Oct 30, 2017 · 4 comments

Comments

@bogdanov1609
Copy link

Hey! Awesome project, thank you.
But what about support for multiple groups and tasks in that groups?

Our goal is to "stick" docker containers to datacenters, because of it in our case, we have one job, two groups - one per datacenter, and one task per that groups.

@ValFadeev
Copy link
Owner

Hi, thanks for checking it out!

I would like to be able to support more complex job structures, however, I could not think of a nice way of mapping those onto Rundeck UI. It does not seem to offer things like repeating panels, or elements that could be conditionally enabled (at least not in community edition).

A hacky way of achieving this would be to allow injecting arbitrary fragments of job definition in hcl/json. However, this would kind of destroy the purpose of the plugin.

I will think of it, being open to suggestions. In the meantime, would you consider the following workaround: create 2 separate jobs in Rundeck, one for each group/task and the third job referencing those 2 as workflow steps?

screen shot 2017-10-30 at 18 03 29

You could also encapsulate the common settings in a "base nomad job" and expose the variable parameters via options.

@ValFadeev
Copy link
Owner

On second thought, I will probably go the "hacky" way and implement a sub-plugin that will accept an arbitrarily complex job definition (in json). Those with simpler use cases could still use the driver-specific plugins, in return for early input validation.

@bogdanov1609
Copy link
Author

Hmm, I think in common cases we only need to change versions in already created jobs.
If we will have opportunity to submit json/hcl job and after that just change version via api or ui, it's going to be wonderful.

@ValFadeev
Copy link
Owner

@bogdanov1609 you can pretty much achieve that with the current plugin, as long as the fact that each task group will run within a separate job does not pose a big trouble.
See a working example here which you can import in a test project.
I am still planning to support arbitrary templates, after a bit of refactoring.

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