This module assists the users in handling servers on digital ocean. It envelops all the basic needs of users in handling boxes on digital ocean. The upcoming topics discusses about how to use this module, the various features of digital ocean under this module.
The help command acts as a brief user manual. It describes about the major objective of this module. It lists outs the alternative parameters that can be used in declarations. In addition, it’s also highlights the different features of using digital ocean under this module along with the syntax for using them. The command used for declaring help option is shown below,
ptconfigure DigitalOcean help
The syntax for declaring the help command is not case sensitive which is an added advantage. The following screenshot visualize you about the help command under Digital Ocean.
kevell@corp:/# ptconfigure DigitalOcean help
******************************
This is an extension provided for Handling Servers on Digital Ocean.
DigitalOcean, digitaloceanv1, digital-ocean-v1
- box-add
Lets you add boxes to Digital Ocean, and adds them to your papyrusfile
example: ptconfigure digital-ocean box-add
--yes
--digital-ocean-ssh-key-path="/home/dave/.ssh/bastion.pub"
--digital-ocean-ssh-key-name="bastion"
- box-destroy
Will destroy box/es in an environment for you, and remove them from the papyrus file
example: ptconfigure digital-ocean box-destroy --yes --guess --digital-ocean-ssh-key-path="/home/dave/.ssh/bastion.pub" --digital-ocean-ssh-key-name="bastion"
- box-destroy-all
Will destroy all boxes in your digital ocean account - Careful - its irreversible
example: ptconfigure digital-ocean box-destroy-all --yes --guess
- save-ssh-key
Will let you save a local ssh key to your Digital Ocean account, so you can ssh in to your nodes
securely and without a password
example: ptconfigure digital-ocean save-ssh-key
--yes
--digital-ocean-ssh-key-path="/home/dave/.ssh/bastion.pub"
--digital-ocean-ssh-key-name="bastion"
- list
Will display data about your digital ocean account
example: ptconfigure digital-ocean list
example: ptconfigure digital-ocean list --yes
--guess # use project saved connection details if possible
--type=sizes # droplets, sizes, images, domains, regions, ssh_keys
------------------------------
End Help
******************************
As depicted in the above help command, this module has various features in using digital ocean as listed below
This feature aims at adding boxes to the digital ocean and in hand add them to the papyrus file. This can be implemented by simply using the syntax as given below,
ptconfigure digital-ocean box-add
--yes
--digital-ocean-ssh-key-path="/home/dave/.ssh/bastion.pub"
--digital-ocean-ssh-key-name="bastion"
To implement the command above, user have to specify the following fields in the format of above mentioned syntax.
This feature aims at destroying boxes in an specified environment and in hand remove them from the papyrus file. This can be implemented by simply using the syntax as given below,
ptconfigure digital-ocean box-destroy --yes --guess --digital-ocean-ssh-key-path="/home/dave/.ssh/bastion.pub"
--digital-ocean-ssh-key-name="bastion"
To implement the command above, user have to specify the following fields in the format of above mentioned syntax.
This feature aims at destroying all boxes in the digital ocean account. The user should be careful while implementing this features because it is a irreversible process. To implement this function the user have to apply the command as given below,
ptconfigure digital-ocean box-destroy-all --yes --guess
This feature allows the users to save a local ssh to your digital ocean so the users can ssh into their nodes securely without password. This can be achieved by using the command below,
ptconfigure digital-ocean save-ssh-key
--yes
--digital-ocean-ssh-key-path="/home/dave/.ssh/bastion.pub"
--digital-ocean-ssh-key-name="bastion"
To implement the command above, user have to specify the following fields in the format of above mentioned syntax.
This feature allows the users to list out all the data about their digital ocean account. This can be implemented simply by using the command below,
ptconfigure digital-ocean list
Or
ptconfigure digital-ocean list --yes
--guess # use project saved connection details if possible
--type=sizes # droplets, sizes, images, domains, regions, ssh_keys
The alternative parameters for this module, either of which can be used in declaration is,
DigitalOcean, digitaloceanv1, digital-ocean-v1