theforeman / foreman-ansible-modules

Ansible modules for interacting with the Foreman API and various plugin APIs such as Katello
GNU General Public License v3.0
148 stars 165 forks source link

How to manage parameters #367

Closed Fodoj closed 5 years ago

Fodoj commented 5 years ago

Parameters are nested within many resource types: https://theforeman.org/plugins/katello/3.4/api/apidoc/v2/parameters/create.html.

What would be the way forward to manage them with this module? As part of "parameters" field of parent resource or as a completely separate entity?

This:

foreman_parameter:
  hostgroup: "HG"
  name: "my_param"
  value: "123"

Or this:

foreman_hostgroup:
  name: "HG"
  parameters:
    - name: "my_param"
      value: "123"

?

mdellweg commented 5 years ago

See #357 to see my suggestion.