Command-line tool reference¶
Here are the commands and resources for the tarmak
command-line tool.
Commands¶
init
¶
- Initialises a provider if not existing.
- Initialises an environment if not existing.
- Initialises a cluster.
Usage:
$ tarmak init
Resources¶
Tarmak has three resources that can be acted upon - environments, providers and clusters.
Usage:
$ tarmak [providers | environments | clusters] [command]
Providers¶
Providers resource sub-command.
Environments¶
Environments resource sub-command.
Clusters¶
Clusters resource sub-command.
ssh <instance_name>
¶
Secure Shell into an instance on clusters.
Usage:
$ tarmak clusters ssh <instance_name>
apply
¶
Apply changes to a cluster (by default applies infrastructure (Terraform) and configuration (Puppet) changes.
Usage:
$ tarmak clusters apply
Flags:
--infrastructure-stacks [state,network,tools,vault,kubernetes]
target exactlyone piece of the infrastructure (aka terraform stack). This implies (--infrastructure-only)
--infrastructure-only [default=false]
only apply infrastructure (aka terraform)
--configuration-only [default=false]
only apply configuration (aka puppet)
--dry-run [default=false]
show changes only, do not actually execute them
destroy
¶
Destroy the infrastructure of a cluster
Usage:
$ tarmak clusters destroy
Flags:
--infrastructure-stacks [state,network,tools,vault,kubernetes]
target exactlyone piece of the infrastructure (aka terraform stack). This implies (--infrastructure-only)
--force-destroy-state-stack [default=false]
force destroy the state stack, this is unreversible
--dry-run [default=false]
show changes only, do not actually execute them
server-pools [ list ]
¶
debug [ terraform shell | puppet | etcd | vault ]
¶
Used for debugging.