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

Feature: support of workflow job template #84

Open
Sispheor opened this issue Jul 24, 2021 · 6 comments
Open

Feature: support of workflow job template #84

Sispheor opened this issue Jul 24, 2021 · 6 comments
Labels
feature New feature request

Comments

@Sispheor
Copy link
Contributor

So far Squest only support job templates.
It would be interesting to support as well workflows.

@Sispheor Sispheor assigned Sispheor and unassigned Sispheor Aug 1, 2021
@a-belhadj a-belhadj added the feature New feature request label Aug 12, 2021
@bofrot
Copy link

bofrot commented Dec 22, 2021

Any change on this issue ?

@Sispheor
Copy link
Contributor Author

Not yet scheduled. But still in our TODO.

@giulianoquites
Copy link

I used a playbook that makes a call to the AWX api and with that it ran WorkFlow!

  • name: AAP API
    hosts: localhost
    gather_facts: false

    vars:
    aap_user: USER
    aap_pass: PASS
    aap_host: aapcontrol001.lnx.example.local
    template_nun: 21

    tasks:

    • name: Get the token AAP
      uri:
      url: "https://{{ aap_host }}/api/v2/users/1/personal_tokens/"
      method: POST
      validate_certs: false
      return_content: true
      user: "{{ aap_user }}"
      password: "{{ aap_pass }}"
      force_basic_auth: true
      status_code: 201
      register: response

    • name: Use the token
      uri:
      url: "https://{{ aap_host }}/api/v2/workflow_job_templates/{{ template_nun | urlencode }}/launch/"
      method: POST
      validate_certs: false
      return_content: true
      status_code: 201
      headers:
      Authorization: "Bearer {{ response['json']['token'] }}"
      Content-Type: "application/json"
      register: launch

Too complex add workflow in squesh?

@Sispheor
Copy link
Contributor Author

Not a priority on our side. We are working on a V2 that refactor a lot of thing.

@giulianoquites
Copy link

Is v2 development public? We can help?

@Sispheor
Copy link
Contributor Author

Here we need a user story. What do we want to manage at Squest level?
The first survey, like we already do with job templates. And then what about approval nodes?
We leave them to Tower/AWX? We catch them and expose into Squest?
As Squest already manage its own approval workflow system, it would a feature duplicate.

Note that it's already possible to create a job template that will trigger a workflow if the idea is to execute multiple job template at once.

@Sispheor Sispheor reopened this Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

4 participants