Skip to content

Commit

Permalink
Update package path
Browse files Browse the repository at this point in the history
  • Loading branch information
mikroskeem committed Nov 11, 2024
1 parent 6fdf6cf commit e69f215
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ all: build test vet fmt

.PHONY: build
build:
@go build -o $@ github.com/poseidon/terraform-provider-ct
@go build -o $@ github.com/ZentriaMC/terraform-provider-ct

.PHONY: test
test:
Expand Down Expand Up @@ -43,7 +43,7 @@ release: \

_output/plugin-%.zip: NAME=terraform-provider-ct_$(SEMVER)_$(subst -,_,$*)
_output/plugin-%.zip: DEST=_output/$(NAME)
_output/plugin-%.zip: LOCAL=$(HOME)/.terraform.d/plugins/terraform.localhost/poseidon/ct/$(SEMVER)
_output/plugin-%.zip: LOCAL=$(HOME)/.terraform.d/plugins/terraform.localhost/ZentriaMC/ct/$(SEMVER)
_output/plugin-%.zip: _output/%/terraform-provider-ct
@mkdir -p $(DEST)
@cp _output/$*/terraform-provider-ct $(DEST)/terraform-provider-ct_$(VERSION)
Expand All @@ -57,7 +57,7 @@ _output/darwin-amd64/terraform-provider-ct: GOARGS = GOOS=darwin GOARCH=amd64
_output/darwin-arm64/terraform-provider-ct: GOARGS = GOOS=darwin GOARCH=arm64
_output/windows-amd64/terraform-provider-ct: GOARGS = GOOS=windows GOARCH=amd64
_output/%/terraform-provider-ct:
$(GOARGS) go build -o $@ github.com/poseidon/terraform-provider-ct
$(GOARGS) go build -o $@ github.com/ZentriaMC/terraform-provider-ct

release-sign:
cd _output; sha256sum *.zip > terraform-provider-ct_$(SEMVER)_SHA256SUMS
Expand Down
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# terraform-provider-ct
[![GoDoc](https://pkg.go.dev/badge/github.com/poseidon/terraform-provider-ct.svg)](https://pkg.go.dev/github.com/poseidon/terraform-provider-ct)
[![Workflow](https://github.com/poseidon/terraform-provider-ct/actions/workflows/test.yaml/badge.svg)](https://github.com/poseidon/terraform-provider-ct/actions/workflows/test.yaml?query=branch%3Amain)
![Downloads](https://img.shields.io/github/downloads/poseidon/terraform-provider-ct/total)
[![Sponsors](https://img.shields.io/github/sponsors/poseidon?logo=github)](https://github.com/sponsors/poseidon)
[![Mastodon](https://img.shields.io/badge/follow-news-6364ff?logo=mastodon)](https://fosstodon.org/@poseidon)
[![GoDoc](https://pkg.go.dev/badge/github.com/ZentriaMC/terraform-provider-ct.svg)](https://pkg.go.dev/github.com/ZentriaMC/terraform-provider-ct)
[![Workflow](https://github.com/ZentriaMC/terraform-provider-ct/actions/workflows/test.yaml/badge.svg)](https://github.com/ZentriaMC/terraform-provider-ct/actions/workflows/test.yaml?query=branch%3Amain)
![Downloads](https://img.shields.io/github/downloads/ZentriaMC/terraform-provider-ct/total)
[![Sponsors](https://img.shields.io/github/sponsors/ZentriaMC?logo=github)](https://github.com/sponsors/ZentriaMC)

`terraform-provider-ct` allows Terraform to validate a [Butane config](https://coreos.github.io/butane/specs/) and transpile to an [Ignition config](https://coreos.github.io/ignition/) for machine consumption.

This is a fork of [poseidon/terraform-provider-ct](poseidon/terraform-provider-ct)

## Usage

Configure the config transpiler provider (e.g. `providers.tf`).
Expand All @@ -17,7 +18,7 @@ provider "ct" {}
terraform {
required_providers {
ct = {
source = "poseidon/ct"
source = "ZentriaMC/ct"
version = "0.13.0"
}
}
Expand Down Expand Up @@ -92,16 +93,16 @@ $ terraform init
## Versions
Butane configs are converted to the current (according to this provider) stable Ignition config and merged together. For example, `poseidon/ct` `v0.12.0` would convert a Butane Config with `variant: fcos` and `version: 1.2.0` to an Ignition config with version `v3.3.0`. This relies on Ignition's [forward compatibility](https://github.com/coreos/ignition/blob/main/config/v3_3/config.go#L61).
Butane configs are converted to the current (according to this provider) stable Ignition config and merged together. For example, `ZentriaMC/ct` `v0.12.0` would convert a Butane Config with `variant: fcos` and `version: 1.2.0` to an Ignition config with version `v3.3.0`. This relies on Ignition's [forward compatibility](https://github.com/coreos/ignition/blob/main/config/v3_3/config.go#L61).
| poseidon/ct | Butane variant | Butane version | Ignition verison |
| ZentriaMC/ct | Butane variant | Butane version | Ignition verison |
|-----------------------|----------------|----------------|------------------|
| 0.13.x | fcos | 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0 | 3.4.0 |
| 0.13.x | flatcar | 1.0.0, 1.1.0 | 3.4.0 |
| 0.12.x | fcos | 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0 | 3.3.0 |
| 0.12.x | flatcar | 1.0.0 | 3.3.0 |
Before `poseidon/ct` v0.12.0, `ct_config` content could be a Butane Config or a Container Linux Config (CLC). Before `poseidon/ct` v0.10.0, Butane configs contained a `version` that was associated with an Ignition format version. For example, a Butane config with `version: 1.0.0` would produce an Ignition config with version `3.0.0`.
Before `ZentriaMC/ct` v0.12.0, `ct_config` content could be a Butane Config or a Container Linux Config (CLC). Before `ZentriaMC/ct` v0.10.0, Butane configs contained a `version` that was associated with an Ignition format version. For example, a Butane config with `version: 1.0.0` would produce an Ignition config with version `3.0.0`.
| terraform-provider-ct | CLC to Ignition | Butane to Ignition |
|-----------------------|---------------------|--------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ provider "ct" {}
terraform {
required_providers {
ct = {
source = "poseidon/ct"
source = "ZentriaMC/ct"
version = "0.13.0"
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ terraform {
required_providers {
local = "~> 2.0"
ct = {
source = "poseidon/ct"
source = "ZentriaMC/ct"
version = "~> 0.13.0"
#source = "terraform.localhost/poseidon/ct"
#source = "terraform.localhost/ZentriaMC/ct"
#version = "0.12.0"
}
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/poseidon/terraform-provider-ct
module github.com/ZentriaMC/terraform-provider-ct

go 1.22.0

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"github.com/hashicorp/terraform-plugin-sdk/v2/plugin"

"github.com/poseidon/terraform-provider-ct/internal"
"github.com/ZentriaMC/terraform-provider-ct/internal"
)

func main() {
Expand Down

0 comments on commit e69f215

Please sign in to comment.