Skip to content

Latest commit

 

History

62 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-facter

go-facter is a loose implementation of Puppet Labs facter in golang. The main target are platforms where there isn't possible or feasible to install Ruby, eg. CoreOS. Also, you can run it in Docker Container and still get data from the Host itself.

In theory, go-facter can be used as a library of sort to build custom facts.

Licence

BSD 3-Clause ("BSD New" or "BSD Simplified") licence.

Environment variables

  • HOST_ETC - specify alternative path to /etc directory
  • HOST_PROC - specify alternative path to /proc mountpoint
  • HOST_SYS - specify alternative path to /sys mountpoint

Requirements

  • go v1.24.0 or newer is required

Build

go get github.com/zstyblik/go-facter/...
cd ~/go/src/github.com/zstyblik/go-facter
go test -v ./...
go build ./cmd/facter

About

Loose implementation of Puppet Labs facter in golang

Resources

Stars

13 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages