SaltStack 常用模块介绍 - lvs_server - lvs_service

salt-minion:
    ----------
    lvs_server:

        Management of LVS (Linux Virtual Server) Real Server
        ====================================================
    lvs_server.present:

            Ensure that the named service is present.

            name
                The LVS server name

            protocol
                The service protocol

            service_address
                The LVS service address

            server_address
                The real server address.

            packet_forward_method
                The LVS packet forwarding method(``dr`` for direct routing, ``tunnel`` for tunneling, ``nat`` for network access translation).

            weight
                The capacity  of a server relative to the others in the pool.

                lvsrs:
                  lvs_server.present:
                    - protocol: tcp
                    - service_address: 1.1.1.1:80
                    - server_address: 192.168.0.11:8080
                    - packet_forward_method: dr
                    - weight: 10
salt-minion:
    ----------
    lvs_service:

        Management of LVS (Linux Virtual Server) Service
        ================================================
    lvs_service.present:

            Ensure that the named service is present.

            name
                The LVS service name

            protocol
                The service protocol

            service_address
                The LVS service address

            scheduler
                Algorithm for allocating TCP connections and UDP datagrams to real servers.

                lvstest:
                  lvs_service.present:
                    - service_address: 1.1.1.1:80
                    - protocol: tcp
                    - scheduler: rr

lvs_server:  负载均衡集群后端的 real server.

lvs_service: 负载均衡集群中的 dispatcher.

时间: 2024-11-06 03:35:28

SaltStack 常用模块介绍 - lvs_server - lvs_service的相关文章

SaltStack 常用模块介绍 - service - pkg - file

salt '*' sys.state_doc service salt-minion: ---------- service: Starting or restarting of services and daemons ============================================== Services are defined as system daemons typically started with system init or rc scripts, ser

SaltStack 常用模块介绍 - cmd

salt-minion: - cmd.call - cmd.mod_run_check - cmd.mod_watch - cmd.run - cmd.script - cmd.wait - cmd.wait_call - cmd.wait_script - cmd.watch cmd.run: Run a command if certain circumstances are met. Use ``cmd.wait`` if you want to use the ``watch`` req

SaltStack 常用模块介绍 - sysctl

salt-minion: ---------- sysctl: Configuration of the Linux kernel using sysctl ============================================== Control the kernel sysctl system. vm.swappiness: sysctl.present: - value: 20 sysctl.present: Ensure that the named sysctl va

SaltStack 常用模块介绍 - timezone

salt-minion: ---------- timezone: Management of timezones ======================= The timezone can be managed for the system: America/Denver: timezone.system The system and the hardware clock are not necessarily set to the same time. By default, the

Ansible 自动化运维工具之inventory和常用模块介绍

一.inventory介绍 前面我们介绍过ansible的hosts文件是存放被管理主机的,被管理主机比较少的情况下,直接在hosts中定义即可,但是以后很定会管理多台主机,而ansible可管理的主机集合就叫做inventory.在ansible中,描述你主机的默认方法是将它们列在一个文本文件中,这个文件叫inventory文件. 一个简单的inventory文件可能只包含一组主机名的列表,如下: ftp.testansible.com samba.testansible.com mail.t

python基础31[常用模块介绍]

python基础31[常用模块介绍] python除了关键字(keywords)和内置的类型和函数(builtins),更多的功能是通过libraries(即modules)来提供的. 常用的libraries(modules)如下: 1)python运行时服务 * copy: copy模块提供了对复合(compound)对象(list,tuple,dict,custom class)进行浅拷贝和深拷贝的功能. * pickle: pickle模块被用来序列化python的对象到bytes流,从

Ansible 之 概念和常用模块介绍

1  概述 ansible是新出现的自动化运维工具,基于Python开发,集合了众多运维工具(puppet.cfengine.chef.func.fabric)的优点,实现了批量系统配置.批量程序部署.批量运行命令等功能. ansible是基于模块工作的,本身没有批量部署的能力.真正具有批量部署的是ansible所运行的模块,ansible只是提供一种框架.主要包括如下的特性: (1).连接插件connection plugins:负责和被监控端实现通信: (2).host inventory:

Ansible的安装、配置及常用模块介绍

Ansible的安装.配置及常用模块介绍 ansible安装方式 1. ansible安装常用两种方式,yum安装和pip程序安装 这里提供二种安装方式,任选一种即可: 1.使用yum安装 yum install epel-release -y yum install ansible –y 2. 使用pip(python的包管理模块)安装 pip install ansible   #如果没pip,需先安装pip.yum可直接安装: yum install python-pip pip inst

IIS7 常用模块介绍说明

1.1.0   IIS常用的功能模块介绍: 1)         静态内容:可发布静态 Web 文件格式,比如 HTML 页面和图像文件. 2)         默认文档:允许您配置当用户未在 URL 中指定文件时供 Web 服务器返回的默认文件. 3)         目录浏览:允许用户查看 Web 服务器上的目录的内容.当用户未在 URL 中指定文件以及禁用或未配置默认文档时,使用“目录浏览”在目录中提供自动生成的所有目录和文件的列表.建议将该功能禁用. 4)         HTTP错误: