git ssb

1+

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



Tree: 1572d84eb2c2ae8ff7104de475dcbacbfafe818d

Files: 1572d84eb2c2ae8ff7104de475dcbacbfafe818d / INSTALL.md

1406 bytesRaw

install


provision new 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

generate ssh key

ssh-keygen -t rsa -b 8192

upload to GitHub (or git provider): https://github.com/settings/keys


update master config

nano /etc/salt/master
fileserver_backend:
  - git

gitfs_remotes:
  - git://github.com/saltstack-formulas/salt-formula
  - git://github.com/ahdinosaur/butt-as-a-service:
    - root: salt/state

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

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