pour-some-salt-on-me

JSON

rev 26  |  foxhop  |  1382649139000  |  JSON

rev 25
rev 26
51.. code-block:: bash51.. code-block:: bash
52 52 
t53 wget --no-check-certificate -O - http://bootstrap.saltstack.org | sudo sh; echot53 wget --no-check-certificate -O - http://bootstrap.saltstack.org | sudo sh; echo
> "master: master.foxhop.net" > /etc/salt/minion.d/foxhop.conf> "master: master.foxhop.net" >> /etc/salt/minion.d/foxhop.conf; echo "append_dom
 >ain: foxhop.net" >> /etc/salt/minion.d/foxhop.conf;
5454
5555
rev 25  |  foxhop  |  1382648839000  |  JSON

rev 24
rev 25
29salt-minions do not need any special firewall rules29salt-minions do not need any special firewall rules
3030
nn31 
32 
31Setup salt-minion on ubuntu33Setup salt-minion on ubuntu
32===============================34===============================
45 sudo service salt-minion restart47 sudo service salt-minion restart
4648
n47|n49or this
4850
49.. code-block:: bash51.. code-block:: bash
50 52 
n51 wget --no-check-certificate -O - http://bootstrap.saltstack.org | sudo sh; echon53 wget --no-check-certificate -O - http://bootstrap.saltstack.org | sudo sh; echo
> "master: master.foxhop.net" > /etc/salt/minion.d> "master: master.foxhop.net" > /etc/salt/minion.d/foxhop.conf
5254
5355
t54/foxhop.confminion logt56minion log
55----------------57----------------
5658
rev 24  |  foxhop  |  1382648766000  |  JSON

rev 23
rev 24
49.. code-block:: bash49.. code-block:: bash
50 50 
n51 wget --no-check-certificate -O - http://bootstrap.saltstack.org | sudo sh; echon51 wget --no-check-certificate -O - http://bootstrap.saltstack.org | sudo sh; echo
> "master: master.foxhop.net" > /etc/salt/minion.d/foxhop.confminion log> "master: master.foxhop.net" > /etc/salt/minion.d
52 
53 
54/foxhop.confminion log
52----------------55----------------
5356
8285
8386
t84Testt
85======
86 
87Running salt as root or with sudo is normally required depending on which user i
>s running the salt-minion daemon on each remote host. 
88 
89salt '*' test.ping
90 
91salt '*' sys.doc
92 
93salt '*' cmd.which ping
94 
95salt '*' cmd.which whois
96 
97salt '*' cmd.run 'uname -a'
98 
99salt '*' cmd.exec_code python 'import sys; print sys.version'
rev 23  |  foxhop  |  1382648691000  |  JSON

rev 22
rev 23
4848
49.. code-block:: bash49.. code-block:: bash
t50 t50 
51 MASTER=akuma.foxhop.net; sudo apt-get -y install python-software-properties; su51 wget --no-check-certificate -O - http://bootstrap.saltstack.org | sudo sh; echo
>do add-apt-repository -y ppa:saltstack/salt; sudo apt-get update; sudo apt-get -> "master: master.foxhop.net" > /etc/salt/minion.d/foxhop.confminion log
>y install salt-minion; sudo sed -i "s/#master: salt/#master: salt\nmaster: $MAST 
>ER/" /etc/salt/minion; sudo service salt-minion restart; 
52minion log
53----------------52----------------
5453
rev 22  |  foxhop  |  1382633301000  |  JSON

rev 21
rev 22
47|47|
4848
tt49.. code-block:: bash
50 
51 MASTER=akuma.foxhop.net; sudo apt-get -y install python-software-properties; su
 >do add-apt-repository -y ppa:saltstack/salt; sudo apt-get update; sudo apt-get -
 >y install salt-minion; sudo sed -i "s/#master: salt/#master: salt\nmaster: $MAST
 >ER/" /etc/salt/minion; sudo service salt-minion restart;
49minion log52minion log
50----------------53----------------
rev 21  |  foxhop  |  1381656468000  |  JSON

rev 20
rev 21
1212
13 sudo apt-get -y install python-software-properties13 sudo apt-get -y install python-software-properties
n14 sudo add-apt-repository ppa:saltstack/saltn14 sudo add-apt-repository -y ppa:saltstack/salt
15 sudo apt-get update15 sudo apt-get update
16 sudo apt-get -y install salt-master16 sudo apt-get -y install salt-master
3737
38 sudo apt-get -y install python-software-properties38 sudo apt-get -y install python-software-properties
t39 sudo add-apt-repository ppa:saltstack/saltt39 sudo add-apt-repository -y ppa:saltstack/salt
40 sudo apt-get update40 sudo apt-get update
41 sudo apt-get -y install salt-minion41 sudo apt-get -y install salt-minion
rev 20  |  foxhop  |  1381656366000  |  JSON

rev 19
rev 20
11.. code-block:: bash11.. code-block:: bash
1212
n13 sudo apt-get install python-software-propertiesn13 sudo apt-get -y install python-software-properties
14 sudo add-apt-repository ppa:saltstack/salt14 sudo add-apt-repository ppa:saltstack/salt
15 sudo apt-get update15 sudo apt-get update
n16 sudo apt-get install salt-mastern16 sudo apt-get -y install salt-master
17 sudo apt-get install salt-minion17 sudo apt-get -y install salt-minion
1818
1919
36 MASTER=master.foxhop.net # put your master here36 MASTER=master.foxhop.net # put your master here
3737
n38 sudo apt-get install python-software-propertiesn38 sudo apt-get -y install python-software-properties
39 sudo add-apt-repository ppa:saltstack/salt39 sudo add-apt-repository ppa:saltstack/salt
40 sudo apt-get update40 sudo apt-get update
t41 sudo apt-get install salt-miniont41 sudo apt-get -y install salt-minion
4242
43 sudo sed -i "s/#master: salt/#master: salt\nmaster: $MASTER/" /etc/salt/minion43 sudo sed -i "s/#master: salt/#master: salt\nmaster: $MASTER/" /etc/salt/minion
rev 19  |  foxhop  |  1368967141000  |  JSON

rev 18
rev 19
22---------------------22---------------------
2323
n24If you have a firewall between your salt-master and salt-minions... open the foln24The salt-master must make the following ports available to it's salt-minions:
>lowing ports 
2525
26* 450526* 4505
27* 450627* 4506
tt28 
29salt-minions do not need any special firewall rules
2830
29Setup salt-minion on ubuntu31Setup salt-minion on ubuntu
rev 18  |  foxhop  |  1354908628000  |  JSON

rev 17
rev 18
17 sudo apt-get install salt-minion17 sudo apt-get install salt-minion
1818
n19If you have a firewall between your salt-master and salt-minions... open the foln19 
>lowing ports 
20 20 
21salt-master ports21salt-master ports
22---------------------22---------------------
tt23 
24If you have a firewall between your salt-master and salt-minions... open the fol
 >lowing ports
2325
24* 450526* 4505
rev 17  |  foxhop  |  1351158937000  |  JSON

rev 16
rev 17
8888
89salt '*' cmd.which whois89salt '*' cmd.which whois
tt90 
91salt '*' cmd.run 'uname -a'
92 
93salt '*' cmd.exec_code python 'import sys; print sys.version'
rev 16  |  foxhop  |  1351158702000  |  JSON

rev 15
rev 16
79======79======
8080
nn81Running salt as root or with sudo is normally required depending on which user i
 >s running the salt-minion daemon on each remote host.
82 
81salt '*' test.ping83salt '*' test.ping
8284
83salt '*' sys.doc85salt '*' sys.doc
tt86 
87salt '*' cmd.which ping
88 
89salt '*' cmd.which whois
rev 15  |  foxhop  |  1351133641000  |  JSON

rev 14
rev 15
7474
75 salt-key -A75 salt-key -A
tt76 
77 
78Test
79======
80 
81salt '*' test.ping
82 
83salt '*' sys.doc
rev 14  |  foxhop  |  1351130608000  |  JSON

rev 13
rev 14
n1 n
2Pour some salt on me1Pour some salt on me
3##########################2##########################
42 sudo service salt-minion restart41 sudo service salt-minion restart
4342
tt43|
44 
45minion log
46----------------
47 
48/var/log/salt/minion
49 
4450
45Salt keys51Salt keys
rev 13  |  foxhop  |  1351130448000  |  JSON

rev 12
rev 13
n1 n
21
3Pour some salt on me2Pour some salt on me
47===============46===============
4847
tt48keys and ids
49 
49List the accepted and unaccepted Salt keys50List the accepted and unaccepted Salt keys
50----------------------------------------------51----------------------------------------------
rev 12  |  foxhop  |  1351129048000  |  JSON

rev 11
rev 12
n1.. contents:: n
21
nn2 
3pour some salt on me3Pour some salt on me
4##########################4##########################
55
6Messing with salt-stack6Messing with salt-stack
77
nn8.. contents:: 
89
9Setup salt-master on ubuntu10Setup salt-master on ubuntu
60 salt-key -a <minion id>61 salt-key -a <minion id>
6162
t62Accept all unaccepted minion keys:t63Accept all unaccepted minion keys
63--------------------------------------64--------------------------------------
6465
rev 11  |  foxhop  |  1351128973000  |  JSON

rev 10
rev 11
4343
4444
nn45Salt keys
46===============
47 
45List the accepted and unaccepted Salt keys48List the accepted and unaccepted Salt keys
n46==============================================n49----------------------------------------------
4750
48.. code-block:: bash 51.. code-block:: bash 
5154
52Accept a minion key55Accept a minion key
n53========================n56------------------------------
5457
55.. code-block:: bash 58.. code-block:: bash 
5861
59Accept all unaccepted minion keys:62Accept all unaccepted minion keys:
t60======================================t63--------------------------------------
6164
62.. code-block:: bash 65.. code-block:: bash 
rev 10  |  foxhop  |  1351128904000  |  JSON

rev 9
rev 10
22
3pour some salt on me3pour some salt on me
n4=========================n4##########################
55
6Messing with salt-stack6Messing with salt-stack
77
n8salt-master ports:n
9 
10* 4505
11* 4506
128
13Setup salt-master on ubuntu9Setup salt-master on ubuntu
21 sudo apt-get install salt-master17 sudo apt-get install salt-master
22 sudo apt-get install salt-minion18 sudo apt-get install salt-minion
nn19 
20If you have a firewall between your salt-master and salt-minions... open the fol
 >lowing ports
23 21 
nn22salt-master ports
23---------------------
2424
nn25* 4505
26* 4506
2527
t26Setup salt-minon on ubuntut28Setup salt-minion on ubuntu
27===============================29===============================
2830
rev 9  |  foxhop  |  1351128777000  |  JSON

rev 8
rev 9
nn1.. contents:: 
2 
1pour some salt on me3pour some salt on me
2=========================4=========================
20 sudo apt-get install salt-minion22 sudo apt-get install salt-minion
21 23 
t22.. content:: t24 
2325
24Setup salt-minon on ubuntu26Setup salt-minon on ubuntu
rev 8  |  foxhop  |  1351128732000  |  JSON

rev 7
rev 8
20 sudo apt-get install salt-minion20 sudo apt-get install salt-minion
21 21 
nn22.. content:: 
23 
22Setup salt-minon on ubuntu24Setup salt-minon on ubuntu
23===============================25===============================
3537
36 sudo service salt-minion restart38 sudo service salt-minion restart
tt39 
40 
41List the accepted and unaccepted Salt keys
42==============================================
43 
44.. code-block:: bash 
45 
46 salt-key -L
47 
48Accept a minion key
49========================
50 
51.. code-block:: bash 
52 
53 salt-key -a <minion id>
54 
55Accept all unaccepted minion keys:
56======================================
57 
58.. code-block:: bash 
59 
60 salt-key -A
rev 7  |  foxhop  |  1351128471000  |  JSON

rev 6
rev 7
25.. code-block:: bash25.. code-block:: bash
2626
nn27 MASTER=master.foxhop.net # put your master here
28 
27 sudo apt-get install python-software-properties29 sudo apt-get install python-software-properties
28 sudo add-apt-repository ppa:saltstack/salt30 sudo add-apt-repository ppa:saltstack/salt
30 sudo apt-get install salt-minion32 sudo apt-get install salt-minion
3133
n32 MASTER=master.foxhop.net # put your master heren34 sudo sed -i "s/#master: salt/#master: salt\nmaster: $MASTER/" /etc/salt/minion
3335
t34 sudo sed -e "s/#master: salt/#master: salt\nmaster: $MASTER/" /etc/salt/miniont36 sudo service salt-minion restart
rev 6  |  foxhop  |  1351128140000  |  JSON

rev 5
rev 6
32 MASTER=master.foxhop.net # put your master here32 MASTER=master.foxhop.net # put your master here
3333
t34 sudo sed -e 's/#master: salt/#master: salt\nmaster: $MASTER/' /etc/salt/miniont34 sudo sed -e "s/#master: salt/#master: salt\nmaster: $MASTER/" /etc/salt/minion
rev 5  |  foxhop  |  1351127894000  |  JSON

rev 4
rev 5
29 sudo apt-get update29 sudo apt-get update
30 sudo apt-get install salt-minion30 sudo apt-get install salt-minion
t31 t31 
32 MASTER=master.foxhop.net # put your master here
33 
34 sudo sed -e 's/#master: salt/#master: salt\nmaster: $MASTER/' /etc/salt/minion
rev 4  |  foxhop  |  1351127274000  |  JSON

rev 3
rev 4
20 sudo apt-get install salt-minion20 sudo apt-get install salt-minion
21 21 
tt22Setup salt-minon on ubuntu
23===============================
24 
25.. code-block:: bash
26 
27 sudo apt-get install python-software-properties
28 sudo add-apt-repository ppa:saltstack/salt
29 sudo apt-get update
30 sudo apt-get install salt-minion
31 
rev 3  |  foxhop  |  1351127228000  |  JSON

rev 2
rev 3
12===============================12===============================
1313
tt14.. code-block:: bash
15 
14sudo apt-get install python-software-properties16 sudo apt-get install python-software-properties
17 sudo add-apt-repository ppa:saltstack/salt
18 sudo apt-get update
19 sudo apt-get install salt-master
20 sudo apt-get install salt-minion
21 
rev 2  |  foxhop  |  1351127110000  |  JSON

rev 1
rev 2
8* 45058* 4505
9* 45069* 4506
tt10 
11Setup salt-master on ubuntu
12===============================
13 
14sudo apt-get install python-software-properties
rev 1  |  foxhop  |  1351126749000  |  JSON

empty
rev 1
tt1pour some salt on me
2=========================
3 
4Messing with salt-stack
5 
6salt-master ports:
7 
8* 4505
9* 4506