Skip to content

Commit 0bb2482

Browse files
Add files via upload
1 parent 01cb0a0 commit 0bb2482

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed

SaltStack_Notes.txt

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
-----------------SALT STACK---------
2+
it is a configuration management tools
3+
Python based, open source remote execution tool
4+
remote execution means run commands on various machines in parallel with flexible targeting system
5+
6+
It estalishes the client server model quickly,easily and securely with in a given policy
7+
8+
--------SALT STACK Components-----------
9+
10+
Master
11+
Minion --Client (OS (Redhat,Ubuntu)
12+
Grains--Static information about minion (OS,memory,serial number etc)
13+
Execution Modules--Adhoc commands executed from the command line to one or more target minions
14+
15+
-----Comparison
16+
Scalability- Puppet,SaltStack,Ansible,Chef these are highly scaleable
17+
Easeof setup--Puppet,SaltStack,Chef(Master and Agent Component) but in ansible it is on Master-Node
18+
Availbility:- Puppet( it has multi master archietcure)
19+
SaltStack( it has multimaster)
20+
Ansible- it runs with a single active node called Primary instance, if primary instance is down then there
21+
is Secondary instance to take its place
22+
Chef:- Primary and Backup Server
23+
Management:- Puppet:- Puppet DSL
24+
SaltStack- Easy to learn
25+
Ansible- Yaml syntax to learn Ansible
26+
Chef:- Little diffcult as compare to other CMS
27+
InterOperatability:-
28+
Puppet:-Linux,Windows
29+
SaltStack:- Master will run on the Linux but client can be windows/Linux
30+
Ansible:- Supports windows but Ansible server has to be linux
31+
Chef:- Primary server will be Linux and Client can be windows.
32+
Configuration Language:-
33+
Puppet:- DSL
34+
SaltStack:- YAML
35+
Ansile:- YAML
36+
Chef:- DSL(Ruby)
37+
38+
39+
Highest Score is given to Ansible
40+
Install Salt Stack
41+
42+
Master:-
43+
44+
apt install python-pip
45+
pip install salt
46+
To Verify
47+
48+
salt --version
49+
50+
Minion:-
51+
52+
apt install python-pip
53+
pip install salt
54+
55+
salt --version
56+
57+
write following code in /etc/salt/minion file
58+
master: <<IP>>
59+
id: min1
60+
61+
62+
-----On Master machine
63+
To run master component
64+
salt-master -d
65+
salt-master -l debug
66+
Create a new window to run salt stack adhoc commands
67+
salt-key -L # this is will show the id of minion under unaccepted key
68+
salt-key -a min1 # to accept the key
69+
70+
salt 'min*' test.ping
71+
salt 'min*' cmd.run 'pwd'
72+
salt 'min*' file.touch '/tmp/1.txt'
73+
salt 'min*' file.write '/tmp/1.txt' 'salt stack'
74+
salt 'min1' grains.items
75+
76+
77+
78+
79+
---On Minion
80+
salt-minion -l debug
81+
82+
83+

0 commit comments

Comments
 (0)