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

Remote deployment #144

Merged
merged 7 commits into from Sep 3, 2022
Merged

Remote deployment #144

merged 7 commits into from Sep 3, 2022

Conversation

Szubie
Copy link
Collaborator

@Szubie Szubie commented Aug 26, 2022

Enables users to specify the remote to deploy to using the unit name. The first section of the unit named preceding the colon ":" will be taken as the remote name. If no remote is specified the default bravetools local remote will be used.

For example, the following Bravefile snippet will deploy a unit called "example" at the "test" remote:

service:
    name: test:example
    ...

Also included in this is a way to specify which LXD profile to deploy the unit using, since we can no longer assume the local profile will exist on remotes. This profile can be specified in the Bravefile Service section or using a CLI flag brave deploy --profile [name]. If no profile is specified, the remote's default profile saved at ~/.bravetools/remotes will be used.

… The remote is the first part of the unit name - the end of the name is demmarked by a colon (`:`). If no remote is specified the default local bravetools remote is used.
…h remote has its own profile associated with it, including bravetools local remote. If no profile specified through CLI or in Bravefile itself, the remote profile will be used.
@idroz
Copy link
Contributor

idroz commented Aug 26, 2022

This looks really nice -

Would be good to have a nice mechanism of creating remotes directly through bravetools without manual copy of certs. Thoughts?

@Szubie
Copy link
Collaborator Author

Szubie commented Aug 26, 2022

This looks really nice -

Would be good to have a nice mechanism of creating remotes directly through bravetools without manual copy of certs. Thoughts?

Yes, I think we can provide a CLI command that will automatically create and authenticate with a remote if that LXD server is configured with a Trust password and you have that password.

…Avoiding attempting to add cert to server that already trusts bravetools.
…vetools remotes. Enables adding/deleting/getting/listing remotes through CLI rather than manually creating config files and authenticating by hand.
@Szubie
Copy link
Collaborator Author

Szubie commented Sep 2, 2022

Would be good to have a nice mechanism of creating remotes directly through bravetools without manual copy of certs. Thoughts?

Added remote management through CLI in latest commits. The commands enable add/get/remove/list operations on remotes. When adding new remotes authentication can be handled by bravetools if providing a trust password.

@idroz idroz merged commit a437103 into bravetools:master Sep 3, 2022
@Szubie Szubie deleted the remote-deploy branch September 3, 2022 19:53
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

2 participants