Skip to content

Pin accessories to tags #1547

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

Merged
merged 8 commits into from
May 12, 2025
Merged

Pin accessories to tags #1547

merged 8 commits into from
May 12, 2025

Conversation

dhh
Copy link
Member

@dhh dhh commented May 9, 2025

Allow accessories to specify which hosts they'll run on by using tags.

Example:

servers:
  web:
    hosts:
      - fizzy-app-101: writer
      - fizzy-app-102: reader

accessories:
  beamer-primary:
    <<: *beamer-accessory
    service: beamer-primary
    cmd: beamer primary --remove-after=1h --dir=/storage
    tag: writer

  beamer-replica:
    <<: *beamer-accessory
    service: beamer-replica
    cmd: beamer replica --primary=http://fizzy-app-101:5000/ --dir=/storage
    tag: reader

@dhh dhh requested a review from djmb May 9, 2025 19:12
@dhh
Copy link
Member Author

dhh commented May 9, 2025

cc @kevinmcconnell

@dhh
Copy link
Member Author

dhh commented May 9, 2025

Added that you can either specify a singular tag or an array of tags, like host and hosts. We should follow up to do the same for roles by adding a singular role.

@djmb djmb merged commit 4187ee2 into main May 12, 2025
11 checks passed
@djmb djmb deleted the pin-accessories-to-tags branch May 12, 2025 07:48
@krzysztoff1 krzysztoff1 mentioned this pull request May 12, 2025
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