Salt stack package manager
Salt formulas are packaged and distributed to Salt masters using the package manager. This concept was influenced by RPM, Yum, and Pacman packaging systems. Salt state, pillar, file templates, and other files are used by the formula and then packaged into a single file.
To install an “nginx” package.
# salt '*' pkg.install nginx
ubuntu-01:
----------
fontconfig-config:
----------
new:
2.12.6-0ubuntu2
old:
fonts-dejavu-core:
----------
new:
2.37-1
old:
httpd:
----------
new:
1
old:
httpd-cgi:
----------
new:
1
old:
libfontconfig:
----------
new:
1
old:
libfontconfig1:
----------
new:
2.12.6-0ubuntu2
old:
libgd3:
----------
new:
2.2.5-4ubuntu0.4
old:
libjbig0:
----------
new:
2.1-3.1build1
old:
libjpeg-turbo8:
----------
new:
1.5.2-0ubuntu5.18.04.4
old:
libjpeg8:
----------
new:
8c-2ubuntu8
old:
libnginx-mod-http-geoip:
----------
new:
1.14.0-0ubuntu1.7
old:
libnginx-mod-http-image-filter:
----------
new:
1.14.0-0ubuntu1.7
old:
libnginx-mod-http-xslt-filter:
----------
new:
1.14.0-0ubuntu1.7
old:
libnginx-mod-mail:
----------
new:
1.14.0-0ubuntu1.7
old:
libnginx-mod-stream:
----------
new:
1.14.0-0ubuntu1.7
old:
libtiff5:
----------
new:
4.0.9-5ubuntu0.4
old:
libwebp6:
----------
new:
0.6.1-2
old:
libxpm4:
----------
new:
1:3.5.12-1
old:
nginx:
----------
new:
1.14.0-0ubuntu1.7
old:
nginx-common:
----------
new:
1.14.0-0ubuntu1.7
old:
nginx-core:
----------
new:
1.14.0-0ubuntu1.7
old:
Here, the pkg.install nginx command is used to install a package
Now, we have installed a package. To start the services for that package, use the command given below.
# salt '*' service.start nginx
ubuntu-01:
True
we have installed and started the services for the “nginx” package using the command.
Recent Comments
No comments
Leave a Comment
We will be happy to hear what you think about this post