Git Product home page Git Product logo

ansible-etcd's Introduction

ansible-etcd

利用ansible搭建etcd集群网络

准备工作

  • 确保已经安装Docker环境
  • 确保已经安装好Python开发环境
  • 确保已经安装好Ansible环境

注:暂只支持CentOS一键部署

使用方法

1、编写集群部署配置文件(yml格式),放置在ansible-etcd 的cfg文件夹下


cluster: "etcd-clusterv"        # 集群名称
cluster_token: "token"          # 加入集群使用token
nodes:
  - host: 192.168.0.155         # 节点IP
    name: etcd-0                # 节点名称
  - host: 192.168.0.156
    name: etcd-1
  - host: 192.168.0.157
    name: etcd-2

2、进入到项目文件夹中执行

./start.sh -c config.yml

注:所有的操作都会在一个复制文件夹(workspace)下进行

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.