ansible / proposals

Repository for sharing and tracking progress on enhancement proposals for Ansible.
Creative Commons Zero v1.0 Universal
92 stars 19 forks source link

Programmable/Advanced Surveys [Tower] #183

Closed ilyashusain closed 3 years ago

ilyashusain commented 3 years ago

Proposal:

Allow the user to create advanced surveys in Tower with an 'Advanced' option, that when run can facilitate the construction of complicated blocks of variables at run time. Right now, you can only use the survey for basic variables at runtime. The advanced survey should allow for:

And so on.

Something along these lines:

config:
  EU:
    DC:
      FR4:
        SC0102:
          - agent:
            vlan:
          - agent:
            vlan:
        SC0304:
      LD5:
        SC0102:
        SC0304:
  US:
    DC:
      LA2:
        SC0102:
        SC0304:
      NY1:   
        SC0102:
        SC0304:

This can be achieved by allowing the engineer to assign a survey question to a block of variable text that they specify when constructing the survey in the EDIT SURVEY option.

You could also allow a survey to pull file names from specific directories to auto-fill the available options. Hence why it should be programmable. The possibilities are endless.

Author: ilyashusain IRC: handle (if different)

Date: 2020-09-26

Motivation

This will be extremely useful to many organizations.

Problems

What problems exist that this proposal will solve?

Solution proposal

Dependencies (optional)

Explain any dependencies. This section is optional but could be helpful.

Testing (optional)

Does / should this require testing, and if so, how? Describe here. This section is optional but could be helpful. n/a.

Documentation (optional)

Does / should this require documentation? If so, describe here. This section is optional but could be helpful. n/a.

Anything else?

More attention needs to be directed towards the survey feature.

bcoca commented 3 years ago

This is for 'proposals' issue queue is for Ansible itself, not awx/tower, that has it's own location for enhancements/proposals

Also, there is already an RFE that covers this https://github.com/ansible/awx/issues/20