Saltstack Study Notes 6-module

Source: Internet
Author: User
Tags saltstack

The module is used to manage object operations, which is also an entry for Saltstack to be managed via push, such as executing commands, viewing package installations, viewing service runs, and so on, all via the Saltstack module.


After installing master and Minion, many module will be installed and the supported module list can be viewed by the following command


Salt ' minion1 ' sys.list_modules

Minion1:

-ACL

-Aliases

-Alternatives

-Apache

-Archive

-Artifactory

-At

-Blockdev

-Bridge

-Btrfs

-Buildout

-Cloud

-cmd

-composer

-Config

-Container_resource

-CP

-Cron

-Data

-Defaults

-Devmap

-Dig

-Disk

-Django

-DNSMASQ

-Dnsutil

-DRBD

-Elasticsearch

-Environ

-ETCD

-Event

-Extfs

-File

-Gem

-Genesis

-Grains

-Group

-Grub

-Hashutil

-HG

-Hipchat

-Hosts

-HTTP

-img

-Incron

-INI

-Introspect

-IP

-Iptables

-JBOSS7

-JBOSS7_CLI

-Key

-Kmod

-LDAP

-Locale

-Locate

-Logrotate

-Lowpkg

-LVM

-LVs

-Match

-Mine

-MODJK

-Mount

-Network

-NFS3

-Openstack_config

-Pagerduty

-Partition

-Pillar

-Pip

-Pkg

-Pkg_resource

-Postfix

-Publish

-Pyenv

-Quota

-raid

-Random

-random_org

-Rbenv

-Redis

-RET

-Rsync

-Runit

-RVM

-S3

-Saltutil

-Schedule

-SCSI

-SDB

-Seed

-Serverdensity_device

-Service

-Shadow

-Slack

-SMTP

-Sqlite3

-SSH

-State

-Status

-Supervisord

-Sys

-Sysctl

-Syslog_ng

-System

-Test

-TimeZone

-TLS

-User

-Vbox_guest

-Virtualenv

-Webutil

-XFS


View all the function of a specified module

Salt ' minion1 ' sys.list_functions cmd

Minion1:

-Cmd.exec_code

-Cmd.exec_code_all

-Cmd.has_exec

-Cmd.retcode

-Cmd.run

-Cmd.run_all

-Cmd.run_chroot

-Cmd.run_stderr

-Cmd.run_stdout

-Cmd.script

-Cmd.script_retcode

-Cmd.shell

-Cmd.shells

-Cmd.tty

-Cmd.which

-Cmd.which_bin


To view the specified module usage

Salt ' minion1 ' sys.doc cmd


Saltstack default also supports the execution of multiple module,module at once, separated by a number

This article from "Eight Miles" blog, declined reprint!

Saltstack Study Notes 6-module

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.