The Digital Ocean Plugin integrates RightScale Self-Service with the basic functionality of the Digital Ocean API.
- A general understanding CAT development and definitions
- Refer to the guide documentation for details SS Guides
- The
admin,ss_designer&ss_end_userroles, in a RightScale account with SelfService enabled.adminis needed to retrieved the RightScale Credential values identified below. - The following RightScale Credentials
DIGITAL_OCEAN_API_KEY
- The following packages are also required (See the Installation section for details):
- Be sure your RightScale account has Self-Service enabled
- Generate a Digital Ocean API Key
- Create a RightScale Credential named
DIGITAL_OCEAN_API_KEYwith the value of the API Key generated in the previous step - Navigate to the appropriate Self-Service portal
- For more details on using the portal review the SS User Interface Guide
- In the Design section, use the
Upload CATinterface to complete the following:- Upload each of packages listed in the Requirements Section
- Upload the
rs_do_plugin.rbfile located in this repository
The Digital Ocean Plugin has been packaged as plugins/rs_do. In order to use this plugin you must import this plugin into a CAT.
import "plugins/rs_do"For more information on using packages, please refer to the RightScale online documentation. Importing a Package
- droplet
resource "my_droplet", type: "rs_do.droplet" do
name join(["rightscale-",last(split(@@deployment.href, "/"))])
region "nyc1"
size "s-1vcpu-1gb"
image "docker"
end| Field Name | Required? |
|---|---|
| name | yes |
| region | yes |
| size | yes |
| image | yes |
| ssh_keys | no |
| backups | no |
| ipv6 | no |
| private_networking | no |
| user_data | no |
| monitoring | no |
| volumes | no |
| tags | no |
| Action | API Implementation | Support Level |
|---|---|---|
| get | Retrieve an existing Droplet by ID | supported |
| list | List all Droplets | supported |
| show | Retrieve an existing Droplet by ID | supported |
| create | Create a new Droplet | supported |
| destroy | Delete a Droplet | supported |
- id
- name
- memory
- vcpus
- disk
- locked
- created_at
- status
- features
- region
- image
- size
- size_slug
- networks
- kernel
- next_backup_window
- backup_ids
- snapshot_ids
- volume_ids
- tags
- The Digital Ocean Plugin makes no attempt to support non-Digital Ocean resources. (i.e. Allow the passing the RightScale or other resources as arguments to an Digital Ocean resource.)
Please review digital_ocean_test_cat.rb for a basic example implementation.
The Digital Ocean Plugin source code is subject to the MIT license, see the LICENSE file.