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

DigitalOcean support #28

Merged
merged 1 commit into from Feb 10, 2019

Conversation

Projects
None yet
1 participant
@swalkinshaw
Copy link
Member

swalkinshaw commented Feb 6, 2019

This adds a droplet command with one subcommand: create

It will create a DigitalOcean droplet (server) via their API and automatically provision it.

A DIGITALOCEAN_ACCESS_TOKEN environment variable is needed to run this command. If it's not found, a prompt will export it.

This command also requires an SSH key to be added to your DO account. By default it will look in ~/.ssh/id_rsa.pub and add it to your account if it's not already there. A different key path can be specified with the --ssh-key option.

trellis-cli will create a Ubuntu 18.04 x64 server. The region and size of the droplet is up to the user either via options or prompt selections.

The name of the droplet will default to the first site name in your Trellis wordpress_sites. This can be changed via a prompt as well.

The droplet will be created with two tags:

  • trellis
  • environment name

Once the server is created, ansible-galaxy install will be run to ensure the Galaxy roles exist. Then the server will be provisioned via the CLI.

@swalkinshaw swalkinshaw referenced this pull request Feb 6, 2019

Closed

DigitalOcean integration #12

@swalkinshaw swalkinshaw force-pushed the up-command-digitalocean-support branch 2 times, most recently from 6b006f4 to c2ee2c9 Feb 7, 2019

@swalkinshaw swalkinshaw changed the title [WIP] Up command (DigitalOcean support) [WIP] DigitalOcean support Feb 7, 2019

@swalkinshaw swalkinshaw force-pushed the up-command-digitalocean-support branch 5 times, most recently from f34ff6f to 58c7fc1 Feb 7, 2019

@swalkinshaw swalkinshaw changed the title [WIP] DigitalOcean support DigitalOcean support Feb 9, 2019

@swalkinshaw swalkinshaw force-pushed the up-command-digitalocean-support branch 2 times, most recently from d9b4275 to f8987de Feb 10, 2019

Add droplet command
This adds a `droplet` command with one subcommand: `create`

It will create a DigitalOcean droplet (server) via their API and
automatically provision it.

A `DIGITALOCEAN_ACCESS_TOKEN` environment variable is needed to run this
command. If it's not found, a prompt will export it.

This command also requires an SSH key to be added to your DO account.
By default it will look in `~/.ssh/id_rsa.pub` and add it to your
account if it's not already there. A different key path can be specified
with the `--ssh-key` option.

trellis-cli will create a Ubuntu 18.04 x64 server. The region and size
of the droplet is up to the user either via options or prompt
selections.

The name of the droplet will default to the first site name in your
Trellis `wordpress_sites`. This can be changed via a prompt as well.

The droplet will be created with two tags:
* `trellis`
* environment name

Once the server is created, `ansible-galaxy install` will be run to
ensure the Galaxy roles exist. Then the server will be provisioned via
the CLI.

@swalkinshaw swalkinshaw force-pushed the up-command-digitalocean-support branch from f8987de to f1bf82b Feb 10, 2019

@swalkinshaw swalkinshaw merged commit 1d51e05 into master Feb 10, 2019

@swalkinshaw swalkinshaw deleted the up-command-digitalocean-support branch Feb 10, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment