Skip to content

ryysud/ignition-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ignition-sample

This repository is used to understand ignition.

Requirements

  • VirtualBox
  • Vagrant
  • Config Transpiler
  • vagrant-ignition

Usage

Edit Container Linux Config file.

$ vim cl-config/cl-config.yaml

Generate Ignition config file with ct.

$ bash scripts/config_transpile.sh

Run Container Linux VM

$ vagrant up

Note

I created Vagranfile based on coreos/coreos-vagrant .

The diff in code is below.

# Around line 27
- $update_channel = "alpha"
+ $update_channel = "stable"

# Around line 168
config.vm.provider :virtualbox do |vb|
    config.ignition.hostname = vm_name
    config.ignition.drive_name = "config" + i.to_s
    # when the ignition config doesn't exist, the plugin automatically generates a very basic Ignition with the ssh key
    # and previously specified options (ip and hostname). Otherwise, it appends those to the provided config.ign below
-     if File.exist?(IGNITION_CONFIG_PATH)
-         config.ignition.path = 'config.ign'
-     end
+    # if File.exist?(IGNITION_CONFIG_PATH)
+        # config.ignition.path = 'config.ign'
+    # end
+    config.ignition.path = 'cl-config/ignition-config.json'
end

About

This repository is used to understand ignition.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages