Comment on page
Access and Control
The local machine is a Debian based machine connected to the internet and to the Flatsat. This machine facilitates access to all the Crypto Engines.
From the local machine terminal, you can use SSH to directly connect to a Crypto Engine. The following command will connect to the Crypto Engine 2 via SSH.
sftpcan be used to transfer files. Other common utilities are installed on the local computer as well.
Here is an example how to upload a file using
sftp -i .ssh/id_rsa -P [port] user@server_ip
Ansible is installed on the local machine. The
~/ansible/directory contains the inventory and configuration files to quickly run playbooks and commands across all the Crypto Engines.
For example, this command will run
hostnameon all Crypto Engines:
~/ansible $ ansible crypto_engines -a "hostname"
This command will run
hostnamejust on Crypto Engine 0 (ce0)
~/ansible $ ansible ce0 -a "hostname"
copy.ymlcan be used to upload files to all Crypto Engines
~/ansible $ ansible-playbook copy.yml -e "src=~/test3"
targetsparameter can be used to specify a subset of hosts. The
destcan be used to specify a remote path and name.
~/ansible $ ansible-playbook copy.yml -e "targets=ce2,ce3 src=~/test3"