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

Run accessories on multiple hosts or roles #164

Merged
merged 2 commits into from
Mar 28, 2023
Merged

Run accessories on multiple hosts or roles #164

merged 2 commits into from
Mar 28, 2023

Conversation

djmb
Copy link
Collaborator

@djmb djmb commented Mar 28, 2023

Allow the hosts for accessories to be specified by host or role:

  # Single host
  mysql:
    host: 1.1.1.1
  # Multiple hosts
  redis:
    hosts:
      - 1.1.1.1
      - 1.1.1.2
  # By role
  monitoring:
    roles:
      - web
      - jobs

@djmb
Copy link
Collaborator Author

djmb commented Mar 28, 2023

Resolves #124

@dhh
Copy link
Member

dhh commented Mar 28, 2023

Awesome! I don't think we need to introduce daemon, though. Enough to keep this explicit with roles/hosts. Otherwise there's a new mental concept to understand, and the payoff is just a very small amount of typing.

djmb and others added 2 commits March 28, 2023 13:26
Allow the hosts for accessories to be specified by host or role, or on
all app hosts by setting `daemon: true`.

```
  # Single host
  mysql:
    host: 1.1.1.1
  # Multiple hosts
  redis:
    hosts:
      - 1.1.1.1
      - 1.1.1.2
  # By role
  monitoring:
    roles:
      - web
      - jobs
```
@dhh dhh changed the title Daemon/host/role accessories Run accessories on multiple hosts or roles Mar 28, 2023
@dhh dhh merged commit 7f17810 into basecamp:main Mar 28, 2023
@dhh dhh deleted the accessory-hosts-or-roles branch March 28, 2023 12:31
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.

2 participants