Giter Club home page Giter Club logo

ign-tool's Introduction

Software License Build Status GitHub issues

IGN - Tools for working with fcct/ignition

asciicast

Ign provides a working environment for building an ignition provisioning script from the command line.

Find your SSH public keys

#> ign ssh --find
found:
  A)  ssh-ed25519 AAAAC3N...9a5kCpbT [email protected]
  B)      ssh-rsa AAAAB3N...fzh3oUGZ [email protected]

Provisioning a user in one line with the above keys and also direct password entry:

#> ign user bob --add ssh+=A,B uid=2000 primary_group=mortals groups+=sudo shell=/usr/local/bin/layer-shell --password
#> Password: <enter password>

Generating the ignition.json to the designated target (configured in ign.conf)

ign generate --confirm

Getting Started

Clone [ign-tool](https://github.com/keithy/ign-tool), ign includes a setup utility command self-install that links it to somewhere on your path.

./ign-tool/ign setup self-install ~/bin --link --confirm

To create a new project, ign includes a handy template working directory (like rust cargo etc.)

ign setup new 
ign setup new my.ign --starter --confirm
cd my.ign
nano ign.conf

The local configuration file ign.conf is applied to all commands when running ign within this working directory. The ign command edits a workspace of yaml snippets in my.ign/inputs which are merged together and output by ign generate --yaml

The ignition snippets library - spark-"plugs"

A library of useful snippets is published on the repo wiki

dependencies:

built in dependency installer

ign setup dependencies --confirm
  • bash >= 4.4
  • [yq](https://github.com/mikefarah/yq/releases) # yaml query tool
  • [fcct](https://github.com/coreos/fcct/releases) # Fedora Configuration Transpiler
  • sudo pip3 install passlib # for generating user/group password hash
  • sudo yum install expect # (TESTING ONLY) password interaction

issues

groan

ign is assembled using groan, the groan framework is a basis for composing hierarchical CLI interfaces with bash and other languages.

ign-tool's People

Contributors

keithy avatar sduret 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.