coreos-cloudinit

[DEPRECATED] - Simple configuration tool for Container Linux

  • 所有者: coreos/coreos-cloudinit
  • 平台:
  • 許可證: Apache License 2.0
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

NOTE: This project has been superseded by Ignition and is no longer under active development. Please direct all development efforts to Ignition.

coreos-cloudinit Build Status

coreos-cloudinit enables a user to customize CoreOS machines by providing either a cloud-config document or an executable script through user-data.

Configuration with cloud-config

A subset of the official cloud-config spec is implemented by coreos-cloudinit.
Additionally, several CoreOS-specific options have been implemented to support interacting with unit files, bootstrapping etcd clusters, and more.
All supported cloud-config parameters are documented here.

The following is an example cloud-config document:

#cloud-config

coreos:
    units:
      - name: etcd.service
        command: start

users:
  - name: core
    passwd: $1$allJZawX$00S5T756I5PGdQga5qhqv1

write_files:
  - path: /etc/resolv.conf
    content:, nameserver 192.0.2.2
        nameserver 192.0.2.3

Executing a Script

coreos-cloudinit supports executing user-data as a script instead of parsing it as a cloud-config document.
Make sure the first line of your user-data is a shebang and coreos-cloudinit will attempt to execute it:

#!/bin/bash

echo 'Hello, world!'

user-data Field Substitution

coreos-cloudinit will replace the following set of tokens in your user-data with system-generated values., Token, Description, -------------, -----------, $public_ipv4, Public IPv4 address of machine, $private_ipv4, Private IPv4 address of machine, These values are determined by CoreOS based on the given provider on which your machine is running.
Read more about provider-specific functionality in the CoreOS OEM documentation.

For example, submitting the following user-data...

#cloud-config
coreos:
    etcd:
        addr: $public_ipv4:4001
        peer-addr: $private_ipv4:7001

...will result in this cloud-config document being executed:

#cloud-config
coreos:
    etcd:
        addr: 203.0.113.29:4001
        peer-addr: 192.0.2.13:7001

Bugs

Please use the CoreOS issue tracker to report all bugs, issues, and feature requests.

主要指標

概覽
名稱與所有者coreos/coreos-cloudinit
主編程語言Go
編程語言Shell (語言數: 2)
平台
許可證Apache License 2.0
所有者活动
創建於2014-03-05 00:25:47
推送於2019-02-18 02:01:34
最后一次提交2018-04-09 15:23:49
發布數89
最新版本名稱v1.14.0 (發布於 2018-04-09 16:27:03)
第一版名稱v0.1.0 (發布於 2014-03-04 21:07:30)
用户参与
星數342
關注者數43
派生數157
提交數875
已啟用問題?
問題數0
打開的問題數0
拉請求數285
打開的拉請求數0
關閉的拉請求數43
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?