项目作者: ryysud

项目描述 :
This repository is used to understand ignition.
高级语言: Shell
项目地址: git://github.com/ryysud/ignition-sample.git
创建时间: 2019-01-20T08:56:53Z
项目社区:https://github.com/ryysud/ignition-sample

开源协议:

下载


ignition-sample

This repository is used to understand ignition.

Requirements

  • VirtualBox
  • Vagrant
  • Config Transpiler
  • vagrant-ignition

Usage

Edit Container Linux Config file.

  1. $ vim cl-config/cl-config.yaml

Generate Ignition config file with ct.

  1. $ bash scripts/config_transpile.sh

Run Container Linux VM

  1. $ vagrant up

Note

I created Vagranfile based on coreos/coreos-vagrant .

The diff in code is below.

  1. # Around line 27
  2. - $update_channel = "alpha"
  3. + $update_channel = "stable"
  4. # Around line 168
  5. config.vm.provider :virtualbox do |vb|
  6. config.ignition.hostname = vm_name
  7. config.ignition.drive_name = "config" + i.to_s
  8. # when the ignition config doesn't exist, the plugin automatically generates a very basic Ignition with the ssh key
  9. # and previously specified options (ip and hostname). Otherwise, it appends those to the provided config.ign below
  10. - if File.exist?(IGNITION_CONFIG_PATH)
  11. - config.ignition.path = 'config.ign'
  12. - end
  13. + # if File.exist?(IGNITION_CONFIG_PATH)
  14. + # config.ignition.path = 'config.ign'
  15. + # end
  16. + config.ignition.path = 'cl-config/ignition-config.json'
  17. end