tpkg

Application packaging and deployment


The deployment feature of tpkg allows you to perform a variety of tpkg operations on a list of machines. This is done by running tpkg with the --servers or -s flag, follows by a comma-separated list of machines that you want to perform the operations on. Please note that this need to be executed from a machine that can ssh to all of the machines in your list of targets.

Example:

To install package "foo":

tpkg -i foo -s server1,server2,server3
This assumes that the package has already been uploaded to the repo. See the package server documentation for information on how to set up your repo, and see the configuration documentation for information on how to point tpkg to a particular repo.

To install a package from a URL:

tpkg -i http://example.com/repository/foo.tpkg -s server1,server2,server3

To remove package:

tpkg -r foo -s server1,server2,server3

To start a package init script:

tpkg --start foo -s server1,server2,server3

To see what packages are installed:

tpkg --qa -s server1,server2,server3

If you want to deploy the packages as a user that is different from the login user:

--deploy-as username

For automation purposes, you can set up an ssh key, and tell tpkg to use it via the following option. Note that tpkg may still need to prompt you for a sudo password.

--use-ssh-key

View on GitHub