Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Efs2 | 70 | 2 years ago | 4 | September 05, 2021 | 6 | mit | Go | |||
A dead-simple configuration management tool powered by stupid shell scripts. | ||||||||||
Nixops Tutorial | 45 | 3 years ago | other | Nix | ||||||
Tutorial for practical deployments with NixOps | ||||||||||
Nginx Go Crossplane | 10 | a month ago | 2 | apache-2.0 | Go | |||||
A library for working with NGINX configs in Go | ||||||||||
Playing With Playbooks | 4 | 5 months ago | Jinja | |||||||
A repo to test out deploying Nginx using Ansible. | ||||||||||
Ngx | 3 | 5 years ago | 5 | mit | JavaScript | |||||
Data-driven nginx configuration manager. | ||||||||||
One And Done | 3 | 6 years ago | 1 | Python | ||||||
practicing configuration management | ||||||||||
Ansible Flask Gunicorn Nginx | 2 | 5 years ago | n,ull | Python | ||||||
Structure for Ansible infrastructure geared to deploy Flask app to | ||||||||||
Community Share Ansible | 2 | 4 years ago | Shell | |||||||
Ansible configuration management for Community Share |
A Go port of the NGINX config/JSON converter crossplane.
This is an example that takes a path to an NGINX config file, converts it to JSON, and prints the result to stdout.
package main
import (
"encoding/json"
"fmt"
"os"
"github.com/nginxinc/nginx-go-crossplane"
)
func main() {
path := os.Args[1]
payload, err := crossplane.Parse(path, &crossplane.ParseOptions{})
if err != nil {
panic(err)
}
b, err := json.Marshal(payload)
if err != nil {
panic(err)
}
fmt.Println(string(b))
}
This is an example that takes a path to a JSON file, converts it to an NGINX config, and prints the result to stdout.
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"os"
"github.com/nginxinc/nginx-go-crossplane"
)
func main() {
path := os.Args[1]
file, err := os.Open(path)
if err != nil {
panic(err)
}
content, err := ioutil.ReadAll(file)
if err != nil {
panic(err)
}
var payload crossplane.Payload
if err = json.Unmarshal(content, &payload); err != nil {
panic(err)
}
var buf bytes.Buffer
if err = crossplane.Build(&buf, payload.Config[0], &crossplane.BuildOptions{}); err != nil {
panic(err)
}
fmt.Println(buf.String())
}
If you'd like to contribute to the project, please read our Contributing guide.
© F5 Networks, Inc. 2022