water-hole / ansible-operator

POC Code for the operator backed by ansible
48 stars 29 forks source link

improvements to config file #20

Closed mhrivnak closed 6 years ago

mhrivnak commented 6 years ago

These improvements to /opt/ansible/config.yaml were suggested in a meeting this week. Here is how the format currently looks:

- name: Database
  version: v1alpha1
  group: app.example.com
  kind: Database
  path: /opt/ansible/roles/busybox/playbook.yaml

path currently only can reference a playbook. Since we want to support running either a playbook or a role directly, the path key will be replaced by playbook and role keys. They will be mutually exclusive.

The name key was deemed to not be valuable, so it should be removed.