diff --git a/dist/config.yaml b/dist/config.yaml deleted file mode 100644 index 88bad9e..0000000 --- a/dist/config.yaml +++ /dev/null @@ -1,114 +0,0 @@ -project_name: terraform-provider-idm -release: - github: - owner: DTherHtun - name: terraform-provider-idm - draft: true - name_template: '{{.Tag}}' -scoop: - name: terraform-provider-idm - commit_author: - name: goreleaserbot - email: goreleaser@carlosbecker.com - commit_msg_template: Scoop update for {{ .ProjectName }} version {{ .Tag }} -builds: -- id: terraform-provider-idm - goos: - - freebsd - - openbsd - - solaris - - windows - - linux - - darwin - goarch: - - amd64 - - "386" - - arm - - arm64 - goarm: - - "6" - targets: - - freebsd_amd64 - - freebsd_386 - - freebsd_arm_6 - - freebsd_arm64 - - openbsd_amd64 - - openbsd_386 - - solaris_amd64 - - windows_amd64 - - windows_386 - - linux_amd64 - - linux_386 - - linux_arm_6 - - linux_arm64 - - darwin_amd64 - ignore: - - goos: darwin - goarch: "386" - goarm: "" - gomips: "" - - goos: openbsd - goarch: arm - goarm: "" - gomips: "" - - goos: openbsd - goarch: arm64 - goarm: "" - gomips: "" - dir: . - main: . - ldflags: - - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser - binary: '{{ .ProjectName }}_v{{ .Version }}' - env: - - CGO_ENABLED=0 - lang: go -archives: -- id: default - builds: - - terraform-provider-idm - name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' - format: zip - files: - - licence* - - LICENCE* - - license* - - LICENSE* - - readme* - - README* - - changelog* - - CHANGELOG* -snapshot: - name_template: '{{ .Tag }}-SNAPSHOT-{{ .ShortCommit }}' -checksum: - name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS' - algorithm: sha256 -changelog: - skip: true -dist: dist -signs: -- id: default - cmd: gpg - args: - - --local-user - - CFC200838792A0208EE5F0ED4729D840D81DC783 - - --output - - ${signature} - - --detach-sign - - ${artifact} - signature: ${artifact}.sig - artifacts: checksum -env_files: - github_token: ~/.config/goreleaser/github_token - gitlab_token: ~/.config/goreleaser/gitlab_token - gitea_token: ~/.config/goreleaser/gitea_token -before: - hooks: - - go mod tidy -source: - name_template: '{{ .ProjectName }}-{{ .Version }}' - format: tar.gz -github_urls: - download: https://github.com -gitlab_urls: - download: https://gitlab.com diff --git a/docs/data-sources/idm.md b/docs/data-sources/idm.md new file mode 100644 index 0000000..599c41b --- /dev/null +++ b/docs/data-sources/idm.md @@ -0,0 +1 @@ +# Data diff --git a/docs/guides/authenticating-basic.md b/docs/guides/authenticating-basic.md new file mode 100644 index 0000000..d976213 --- /dev/null +++ b/docs/guides/authenticating-basic.md @@ -0,0 +1,12 @@ +--- +page_title: "Authenticating with Ped Store" +--- + +``` +provider "idm" { + idm_server = # Redhat IDM server address + user = # User account for login + password = # password for login + insecure = # enable or disable tls (value = true or false) +} +``` diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..2a61cc7 --- /dev/null +++ b/docs/index.md @@ -0,0 +1,25 @@ +# RedHat IDM Provider + +Summary of what the provider is for, including use cases and links to +app/service documentation. + +## Example Usage + +```hcl +provider "idm" { + +} +``` + +## For terraform.tf + +```hcl +terraform { + required_providers { + idm = { + source = "DTherHtun/idm" + version = "0.0.1" + } + } +} +``` diff --git a/docs/resources/idm_dns_record.md b/docs/resources/idm_dns_record.md new file mode 100644 index 0000000..3f473e6 --- /dev/null +++ b/docs/resources/idm_dns_record.md @@ -0,0 +1,16 @@ +--- +subcategory: "idm_dns_record" +--- + +# creating dns record in Redhat IDM + +```hcl +resource "idm_dns_record" "my_record" { + idm_dns_name = + idm_dns_zone_name = + type = + records = + dnsttl = + dnsclass = +} +``` diff --git a/docs/resources/idm_host.md b/docs/resources/idm_host.md new file mode 100644 index 0000000..11dd6bd --- /dev/null +++ b/docs/resources/idm_host.md @@ -0,0 +1,16 @@ +--- +subcategory: "idm_host" +--- + +# Add host in Redhat IDM + +```hcl +resource "idm_host" "my_host" { + fqdn = + description = + random = + userpassword = + randompassword = + force = +} +``` \ No newline at end of file