There are multiple ways you can install the caaspctl binary.
-
you can build the rpm with
make dist-rpmand install it in a CaaSP Amin Node withtransactional-update pkg install caaspctl.rpm(see the docs for more details). Once installed, thecaaspctlwill be available in the standard PATH. -
you can create an "executable" zip with
make dist-zip. This file can be copied to a CaaSP Admin Node. Thecaaspctltool will need to be run withpython caaspctl.zip.
-
You can enter the cli:
$ caaspctl CaaSP control tool. caaspctl > config caaspctl:config > ? Documented commands (type help <topic>): ======================================== db get load quiet refresh shell traceback flush help print quit set stage Undocumented commands: ====================== EOF eval caaspctl:config > ? set Set a config in the database. Usage: > config set api:server:external_fqdn 192.168.122.4 caaspctl:config > set api:server:external_fqdn 192.168.122.4
-
You can run commands directly as arguments
$ caaspctl config set api:server:external_fqdn 192.168.122.4or multiple commands by concatenating them with
;:
$ caaspctl 'minions accept 6 ; config set api:server:external_fqdn 192.168.122.4'-
or you can run all your commands in a script
$ cat <<EOF>myscript.txt # accept all the three minions accept 3 # and then set some config config set api:server:external_fqdn 192.168.122.4 EOF $ caaspctl --script myscript.txt
- You can run the
caaspctlcommand locally withpython -m caasp.
Alpha, we are still fixing bugs...