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

Allow use with multiple server Trellis #30

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

Conversation

dalepgrant
Copy link

Overview

Using this role as-is on a Trellis setup with multiple servers is not possible because it fails when no license key is set. This PR will only run install tasks if a license key is set, but allow provisioning to complete if it isn't.

Use case

We're using Trellis with multiple servers, set up under host_vars e.g.

trellis
    └── host_vars/ 
        ├── server1/ 
        └── server2/ 
            ├── wordpress_sites.yml/
            └── vault.yml/  

In a simplified example, we want to use New Relic on server 2 but NOT server 1. By allowing a false value to be set (or defaulting to it), the New Relic install tasks can be skipped for servers we don't want to install it on.

Feedback welcome and thanks for making this role available in the first place!

@dalepgrant
Copy link
Author

@tangrufus Happy New Year! Just politely bumping this to see if it's something worth merging in. Happy to make changes if necessary.

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.

None yet

1 participant