git ssb

1+

dinoworm 🐛 / butt-as-a-service



Commit dd757657e2af012b7bf82b801c68acf3af334322

start install

Michael Williams committed on 12/22/2017, 10:40:19 AM
Parent: 33280a8b4f0874a1f07195472481664db843ddba

Files changed

INSTALL.mdadded
INSTALL.mdView
@@ -1,0 +1,87 @@
1 +# install
2 +
3 +---
4 +
5 +provision new Scaleway server
6 +
7 +---
8 +
9 +install salt stack
10 +
11 +```shell
12 +cd ~
13 +curl -L https://bootstrap.saltstack.com -o install_salt.sh
14 +sudo sh install_salt.sh -P -M git v2017.7.2
15 +```
16 +
17 +---
18 +
19 +update master config
20 +
21 +```shell
22 +ssh-keygen -t ecdsa -b 521
23 +nano /etc/salt/master
24 +```
25 +
26 +```
27 +ext_pillar:
28 + - git:
29 + - master git@github.com:${user}/${repo}
30 + - root: salt/pillar
31 +```
32 +
33 +```yml
34 +master: 127.0.0.1
35 +```
36 +
37 +---
38 +
39 +update minion config
40 +
41 +```shell
42 +nano /etc/salt/minion
43 +```
44 +
45 +```yml
46 +master: 127.0.0.1
47 +```
48 +
49 +---
50 +
51 +restart salt servers
52 +
53 +```shell
54 +service salt-minion restart
55 +service salt-master restart
56 +```
57 +
58 +---
59 +
60 +list minion keys
61 +
62 +```shell
63 +sudo salt-key --list all
64 +```
65 +
66 +---
67 +
68 +accept new key
69 +
70 +```shell
71 +sudo salt-key -a ${key}
72 +```
73 +
74 +---
75 +
76 +test first minion
77 +
78 +```shell
79 +sudo salt '*' test.ping
80 +```
81 +
82 +---
83 +
84 +## references
85 +
86 +- https://www.digitalocean.com/community/tutorials/saltstack-infrastructure-installing-the-salt-master
87 +- https://www.digitalocean.com/community/tutorials/saltstack-infrastructure-configuring-salt-cloud-to-spin-up-digitalocean-resources

Built with git-ssb-web