haiconf

command module
v0.0.0-...-3af8ba7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2019 License: BSD-2-Clause Imports: 12 Imported by: 0

README

What is Haiconf ?

Haiconf is an experimental configuration management system based on the power of Lua.

How does this stuff work ?

The idea is pretty simple. Haiconf will provide you with a set of primitives inspired by Puppet and others. You simply have to write a program which uses theses primitives and this program will be applied sequentially. No dependecy graph from hell, no DSL, no YAML.

Enough bullshit, show me some code

Well, haiconf is under heavy development but if you are curious you can have a look at what an ideal configuration file may look like in the future:

You can also have a look at https://github.com/jeromer/haiconf/blob/master/haiconf.lua .

I want to test it

Currently there is no package available.

Applying the commands below should be enough:

  1. Install lua 5.1 (no 5.2 please)
  2. git clone git@github.com:jeromer/haiconf.git
  3. cd ./haiconf
  4. ln -sv pwd $GOPATH/src/github.com/jeromer/
  5. make installdependencies tests
  6. change whatever you want in haiconf.lua
  7. go run main.go (haiconf.lua will automatically be applied)

FAQ

Where is the master server ?

There is none. Haiconf is aimed at configuring a local node for the moment. Distribution will come later.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
fs
Usage in lua configuration file Directory({ Path = "/tmp/haiconf/testdirectory", Mode = "0755", Owner = "jerome", Group = "wheel", Recurse = true, Ensure = "present", })
Usage in lua configuration file Directory({ Path = "/tmp/haiconf/testdirectory", Mode = "0755", Owner = "jerome", Group = "wheel", Recurse = true, Ensure = "present", })
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL