Create a brand new ed25519 key pair
ssh-keygen -o -a 100 -t ed25519
Get the pub key and put the result in your lxd default profile
cat ~/.ssh/ed25519.pub
lxc profile edit default
1- Install some dependencies: | |
apt-get install build-essential libssl-dev libffi-dev python-dev | |
2- Install pip: | |
wget https://bootstrap.pypa.io/get-pip.py | |
python get-pip.py | |
3- Install shade | |
pip install shade |
1- Install some dependencies: | |
yum install epel-release python-devel openssl-devel | |
yum groupinstall "Development Tools" | |
2 - Update all packages | |
yum -y update | |
3 - Install pip | |
yum -y install python-pip | |
4 - Upgrade pip | |
pip install --upgrade pip | |
5 - Install Shade |
Create a brand new ed25519 key pair
ssh-keygen -o -a 100 -t ed25519
Get the pub key and put the result in your lxd default profile
cat ~/.ssh/ed25519.pub
lxc profile edit default
# /etc/apt/sources.list.d/pkg.ci.collectd.org.list | |
# and before apt update: | |
# gpg --recv-keys 3994D24FB8543576 | |
# gpg --export -a 3994D24FB8543576 | apt-key add - | |
deb http://pkg.ci.collectd.org/deb xenial collectd-5.6 |
I hereby claim:
To claim this, I am signing this object:
When you export a wekan, you get a big bunch of json. If you want select a list of all cards title, you can use jq (https://stedolan.github.io/jq/) like that:
jq '.cards[].title' wekan-export-board-nZkj4ywiwFSYX5Xjt.json
--- | |
- name: Create dynamic inventory for ssh connection by password | |
hosts: localhost | |
connection: local | |
gather_facts: no | |
vars: | |
server_list: | |
- {hostname: 'machine1', adresse_ip: '10.123.123.123', osadmin_password: 'azerty', root_password: 'ytreza'} | |
- {hostname: 'machine2', adresse_ip: '10.123.123.124', osadmin_password: 'azerty', root_password: 'ytreza'} |
# .ssh/config file | |
# In this case, same user and same key on the two machines | |
Host bastion | |
Hostname bastion-ansible-01 | |
User cloud | |
IdentityFile /home/admin/MaClefRsa | |
Host internetproxy-01 | |
Hostname 192.168.1.89 |
--- | |
- name: Add ssh public key locally | |
hosts: localhost | |
connection: local | |
gather_facts: false | |
tasks: | |
- name: List ssh public keys | |
find: | |
path: ./public-keys |