gvavagrant/scripts/pregen_keys.sh
Jan Dittberner f48eb2caf0 Allow boostrap with Buster
- add script and Vagrantfile code to preseed salt minion keys
- add needed bootstrap_options for Python 3 support
- add grains files and populate those of the ldap and web node
- add script to fix systemd-networkd setup with Debian libvirt Vagrant
  images
- switch from VirtualBox to libvirt
2020-03-04 13:56:20 +01:00

16 lines
328 B
Bash
Executable file

#!/bin/sh
set -e
if [ ! -d salt/keys ]; then
mkdir -p salt/keys
fi
ls -1 salt/grains | while read a; do
if [ ! -f salt/keys/$a.pem ]; then
openssl genrsa -out salt/keys/$a.pem 2048
fi
if [ ! -f salt/keys/$a.pub ]; then
openssl rsa -in salt/keys/$a.pem -pubout -out salt/keys/$a.pub
fi
done