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

Custom client types #439

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tvesely
Copy link

@tvesely tvesely commented Jan 23, 2025

As part of the ansible inventory 'escape hatch' from aerolab, we have been manually overriding the 'ClientType' label to use for ansible roles.

This commit turns the 'ClientType' escape hatch into a first class citizen by allowing 'none' type clusters to have a '--type-override' that labels the cluster with a 'custom' role.

After deploying a cluster with the 'custom' role, the aerolab inventory ansible command will add the instances in that cluster to that host group.

{
  "_meta": {
    "hostvars": {
      "172.17.0.3": {
        "aerolab_cluster": "franz",
        "ansible_host": "172.17.0.3",
        "ansible_user": "root",
        "instance_id": "4eded405d881",
        "node_name": "testclient-1"
      }
    }
  },
  "kafka": {
    "hosts": [
      "172.17.0.3"
    ]
  }
}

As part of the ansible inventory 'escape hatch' from aerolab, we have been
manually overriding the 'ClientType' label to use for ansible roles.

This commit turns the 'ClientType' escape hatch into a first class citizen by
allowing 'none' type clusters to have a '--type-override' that labels the
cluster with a 'custom' role.

After deploying a cluster with the 'custom' role, the `aerolab inventory
ansible` command will add the instances in that cluster to that host group.

```json
{
  "_meta": {
    "hostvars": {
      "172.17.0.3": {
        "aerolab_cluster": "franz",
        "ansible_host": "172.17.0.3",
        "ansible_user": "root",
        "instance_id": "4eded405d881",
        "node_name": "testclient-1"
      }
    }
  },
  "kafka": {
    "hosts": [
      "172.17.0.3"
    ]
  }
}
```
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

Successfully merging this pull request may close these issues.

1 participant