Giter VIP home page Giter VIP logo

cloud-configs's Introduction

cloud-config files for the coreos machines inside the company.

批量生成配置

安装依赖环境

# 安装 python 扩展模块
pip install -r requirements.txt

修改配置文件

# 添加一台机器配置
vim build_config.yml
---
10.10.10.191:
  MAC: "00:e0:81:ee:82:c4"
  etcd2: False
  hostname: "coreos-191"
  nic_name: "enp11s0f0"

修改模板

其中有些模板语言, 如: "{{ hostname }}"{% if etcd2 %} 等, 这些不能修改, 其他的固化的配置可以修改, 然后统一生效.

vim cloud-config.template
---

执行脚本

./batch_build_cloud_configs.py

2016-07-02_13-26-16

cloud-configs's People

Contributors

lipeng31 avatar lipeng-unisound avatar jiamliang avatar wangkuiyi avatar vienlee avatar

Stargazers

 avatar

Watchers

Qingsong Liu avatar James Cloos avatar  avatar Yan Xu avatar  avatar Helin Wang avatar Hui Zhang avatar  avatar sunrising avatar Andrew Yang avatar  avatar  avatar  avatar helin wang avatar  avatar

Forkers

jiamliang vienlee

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.