https://github.com/zstyblik/go-facter
Loose implementation of Puppet Labs facter in golang
https://github.com/zstyblik/go-facter
Last synced: 11 months ago
JSON representation
Loose implementation of Puppet Labs facter in golang
- Host: GitHub
- URL: https://github.com/zstyblik/go-facter
- Owner: zstyblik
- License: bsd-3-clause
- Created: 2016-06-12T12:52:21.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-06-25T16:28:06.000Z (almost 3 years ago)
- Last Synced: 2024-06-20T16:37:54.140Z (about 2 years ago)
- Language: Go
- Homepage:
- Size: 203 KB
- Stars: 13
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.5 or newer is required
## Build
```
go get github.com/zstyblik/go-facter/...
cd ~/go/src/github.com/zstyblik/go-facter
go build ./cmd/facter
```
[facter]:
[CoreOS]: