gacvd 发表于 2018-8-1 11:18:30

运维平台化saltstack和jinja2模板构建高可用集群配置平台

global_defs: ruifengyun@xxx.com  
vrrp_sync_group:
  
vrrp_instance:
  
    VI_1:
  
      state: master
  
      interface: eth0
  
      virtual_router_id: 51
  
      priority: 100
  
      advert_int: 1
  
      authentication:
  
            auth_type: PASS
  
            auth_pass: 1111
  
      virtual_ipaddress:
  
            vip: 192.168.1.100
  
      virtual_server:
  
            delay_loop: 5
  
            lb_algo rr: wlc
  
            lb_kind DR: DR
  
            persistence_timeout: 50
  
            protocol: TCP
  
            - real_server:
  
                ip: 192.168.1.236
  
                port: 80
  
                weight: weight
  
                mode: HTTP_GET
  
                heathmonitor:
  
                  path: /mo/monitor.html
  
                  connect_timeout: 3
  
                  nb_get_retry: 3
  
                  delay_before_retry: 3
  
            - real_server:
  
                ip: 192.168.1.236
  
                port: 80
  
                weight: weight
  
                mode: HTTP_GET
  
                heathmonitor:
  
                  path: /mo/monitor.html
  
                  connect_timeout: 3
  
                  nb_get_retry: 3
  
                  delay_before_retry: 3
页: [1]
查看完整版本: 运维平台化saltstack和jinja2模板构建高可用集群配置平台