Code Monkey home page Code Monkey logo

add-ignition-via-butane's Introduction

Add ssh key to RHCOS ISO via butane

Official documentation : https://coreos.github.io/butane/getting-started/

Download RHCOS iso :

https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/

Build the ignition file before deploying it to RHCOS via coreos-installer

Create the butane file

Modify the sample below to add your administrator public key, and rename the extension file as ".bu":

Sample

Generate the ignition config file

podman run -i --rm quay.io/coreos/butane:latest --pretty --strict < ./config/add-ssh-key.bu > ./config/added-ssh-key.ign

Command to embed/show/remove ignition file for RHCOS

Embed the ignition config file in the ISO

podman run --rm --tty --interactive \
    --volume ./config:/builder \
    --workdir /builder \
    quay.io/coreos/coreos-installer:main \
    iso ignition embed -i ./added-ssh-key.ign ./rhcos-live.x86_64.iso

Show if the ignition is added or removed

podman run --rm --tty --interactive \
    --volume ./config:/builder \
    --workdir /builder \
    quay.io/coreos/coreos-installer:main \
    iso ignition show /builder/rhcos-live.x86_64.iso

Remove the ignition configuration file

podman run --rm --tty --interactive \
    --volume ./config:/builder \
    --workdir /builder \
    quay.io/coreos/coreos-installer:main \
    iso ignition remove ./rhcos-live.x86_64.iso

Execute coreos-installer

podman run --rm --tty --interactive \
    --volume ./config:/builder \
    --workdir /builder \
    quay.io/coreos/coreos-installer:main
    ## put args here

add-ignition-via-butane's People

Contributors

ydbd avatar

Watchers

 avatar

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.