git ssb

1+

dinoworm ๐Ÿ› / butt-as-a-service



Tree: e57d826e25a303560b4b03a2fcc55c56746b3b38

Files: e57d826e25a303560b4b03a2fcc55c56746b3b38 / INSTALL.md

1340 bytesRaw

install


provision new Scaleway server


install salt stack

cd ~
apt update
apt install -y python-pygit2
curl -L https://bootstrap.saltstack.com -o install_salt.sh
sudo sh install_salt.sh -P -M git v2017.7.2

update master config

ssh-keygen -t rsa -b 8192
nano /etc/salt/master
fileserver_backend:
  - git
gitfs_remotes:
  - git@github.com:ahdinosaur/butt-as-a-service
gitfs_privkey: /root/.ssh/id_rsa
gitfs_pubkey: /root/.ssh/id_rsa.pub
gitfs_root: salt/state

ext_pillar:
  - git:
    - master git@github.com:${user}/${repo}:
      - root: salt/pillar
      - privkey: /root/.ssh/id_rsa
      - pubkey: /root/.ssh/id_rsa.pub
master: 127.0.0.1

update minion config

nano /etc/salt/minion
master: 127.0.0.1

restart salt servers

service salt-minion restart
service salt-master restart

list minion keys

sudo salt-key --list all

accept new key

sudo salt-key -a ${key}

test first minion

sudo salt '*' test.ping

references

Built with git-ssb-web