Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ jobs:
matrix:
# list whatever Terraform versions here you would like to support
terraform:
- 0.12.*
- 0.13.*
- 0.14.*
- 0.15.*
- 1.0.*
- 1.1.*
- 1.2.*
- 1.3.*
- 1.4.*
services:
remotehost:
image: ghcr.io/tenstad/remotehost:${{ github.sha }}
Expand Down
6 changes: 3 additions & 3 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CONTAINER_NETWORK ?= $(shell \
; fi)

.PHONY: test
default: test
default: test doc

# Start host containers used for playground and testing
hosts: clean
Expand All @@ -32,7 +32,7 @@ ifeq ($(DEVCONTAINER),true)
else
$(CONTAINER_RUNTIME) run --rm --net remote -v ~/go:/go:z -v $(PWD):/provider:z --workdir /provider \
-e "TF_LOG=INFO" -e "TF_ACC=1" -e "TF_ACC_TERRAFORM_VERSION=1.0.11" -e "TESTARGS=$(TESTARGS)" \
golang:1.24 bash tests/test.sh
docker.io/golang:1.24 bash tests/test.sh
endif

# Install provider in playground
Expand All @@ -45,4 +45,4 @@ install:
go build -ldflags="-s -w -X main.version=99.0.0" -o $(BIN_PATH)

doc:
go generate
cd tools && go generate
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ If you wish to work on the provider, you'll first need Go installed on your
machine. You might also want Terraform and Docker, depending on the work.

- [Go](https://golang.org/doc/install) >= 1.22
- [Terraform](https://www.terraform.io/downloads.html) >= 0.13.x
- [Terraform](https://www.terraform.io/downloads.html) >= 0.15.x
- [Docker](https://www.docker.com/get-started) (for test purposes)

### Development Workflow
Expand Down
6 changes: 3 additions & 3 deletions docs/data-sources/file.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "remote_file Data Source - terraform-provider-remote"
page_title: "remote_file Data Source - remote"
subcategory: ""
description: |-
File on remote host.
Expand Down Expand Up @@ -46,7 +46,7 @@ data "remote_file" "server2_hosts" {

### Optional

- `conn` (Block List, Max: 1) Connection to host where files are located. (see [below for nested schema](#nestedblock--conn))
- `conn` (Block List) Connection to host where files are located. (see [below for nested schema](#nestedblock--conn))

### Read-Only

Expand Down Expand Up @@ -75,4 +75,4 @@ Optional:
- `private_key_env_var` (String) The name of the local environment variable containing the private key used to login to the remote host.
- `private_key_path` (String) The local path to the private key used to login to the remote host.
- `sudo` (Boolean) Use sudo to gain access to file. Defaults to `false`.
- `timeout` (Number) The maximum amount of time, in milliseconds, for the TCP connection to establish. Timeout of zero means no timeout.
- `timeout` (Number) The maximum amount of time, in milliseconds, for the TCP connection to establish. Undefined means no timeout.
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ provider "remote" {

### Optional

- `conn` (Block List, Max: 1) Default connection to host where files are located. Can be overridden in resources and data sources. (see [below for nested schema](#nestedblock--conn))
- `conn` (Block List) Default connection to host where files are located. Can be overridden in resources and data sources. (see [below for nested schema](#nestedblock--conn))
- `max_sessions` (Number) Maximum number of open sessions in each host connection. Defaults to `3`.

<a id="nestedblock--conn"></a>
Expand All @@ -72,4 +72,4 @@ Optional:
- `private_key_env_var` (String) The name of the local environment variable containing the private key used to login to the remote host.
- `private_key_path` (String) The local path to the private key used to login to the remote host.
- `sudo` (Boolean) Use sudo to gain access to file. Defaults to `false`.
- `timeout` (Number) The maximum amount of time, in milliseconds, for the TCP connection to establish. Timeout of zero means no timeout.
- `timeout` (Number) The maximum amount of time, in milliseconds, for the TCP connection to establish. Undefined means no timeout.
6 changes: 3 additions & 3 deletions docs/resources/file.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "remote_file Resource - terraform-provider-remote"
page_title: "remote_file Resource - remote"
subcategory: ""
description: |-
File on remote host.
Expand Down Expand Up @@ -57,7 +57,7 @@ resource "remote_file" "server2_bashrc" {

### Optional

- `conn` (Block List, Max: 1) Connection to host where files are located. (see [below for nested schema](#nestedblock--conn))
- `conn` (Block List) Connection to host where files are located. (see [below for nested schema](#nestedblock--conn))
- `group` (String) Group ID (GID) of file owner. Mutually exclusive with `group_name`.
- `group_name` (String) Group name of file owner. Mutually exclusive with `group`.
- `owner` (String) User ID (UID) of file owner. Mutually exclusive with `owner_name`.
Expand Down Expand Up @@ -85,4 +85,4 @@ Optional:
- `private_key_env_var` (String) The name of the local environment variable containing the private key used to login to the remote host.
- `private_key_path` (String) The local path to the private key used to login to the remote host.
- `sudo` (Boolean) Use sudo to gain access to file. Defaults to `false`.
- `timeout` (Number) The maximum amount of time, in milliseconds, for the TCP connection to establish. Timeout of zero means no timeout.
- `timeout` (Number) The maximum amount of time, in milliseconds, for the TCP connection to establish. Undefined means no timeout.
36 changes: 8 additions & 28 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,26 @@ go 1.24

require (
github.com/bramvdbogaerde/go-scp v1.5.0
github.com/hashicorp/terraform-plugin-docs v0.21.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.36.1
github.com/hashicorp/terraform-plugin-framework v1.14.1
github.com/hashicorp/terraform-plugin-framework-validators v0.17.0
github.com/hashicorp/terraform-plugin-go v0.26.0
github.com/hashicorp/terraform-plugin-testing v1.12.0
github.com/pkg/sftp v1.13.9
golang.org/x/crypto v0.37.0
)

require (
github.com/BurntSushi/toml v1.2.1 // indirect
github.com/Kunde21/markdownfmt/v3 v3.1.0 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.2.0 // indirect
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
github.com/ProtonMail/go-crypto v1.1.3 // indirect
github.com/agext/levenshtein v1.2.2 // indirect
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/bgentry/speakeasy v0.1.0 // indirect
github.com/bmatcuk/doublestar/v4 v4.8.1 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/fatih/color v1.16.0 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/hashicorp/cli v1.1.7 // indirect
github.com/google/go-cmp v0.7.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
github.com/hashicorp/go-cty v1.5.0 // indirect
github.com/hashicorp/go-hclog v1.6.3 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.6.2 // indirect
Expand All @@ -43,36 +35,26 @@ require (
github.com/hashicorp/logutils v1.0.0 // indirect
github.com/hashicorp/terraform-exec v0.22.0 // indirect
github.com/hashicorp/terraform-json v0.24.0 // indirect
github.com/hashicorp/terraform-plugin-go v0.26.0 // indirect
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
github.com/hashicorp/terraform-plugin-sdk/v2 v2.36.1 // indirect
github.com/hashicorp/terraform-registry-address v0.2.4 // indirect
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
github.com/hashicorp/yamux v0.1.1 // indirect
github.com/huandu/xstrings v1.3.3 // indirect
github.com/imdario/mergo v0.3.15 // indirect
github.com/kr/fs v0.1.0 // indirect
github.com/mattn/go-colorable v0.1.14 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.9 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/mitchellh/go-wordwrap v1.0.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/oklog/run v1.0.0 // indirect
github.com/posener/complete v1.2.3 // indirect
github.com/shopspring/decimal v1.3.1 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/yuin/goldmark v1.7.7 // indirect
github.com/yuin/goldmark-meta v1.1.0 // indirect
github.com/zclconf/go-cty v1.16.2 // indirect
go.abhg.dev/goldmark/frontmatter v0.2.0 // indirect
golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df // indirect
golang.org/x/mod v0.22.0 // indirect
golang.org/x/net v0.34.0 // indirect
golang.org/x/net v0.37.0 // indirect
golang.org/x/sync v0.13.0 // indirect
golang.org/x/sys v0.32.0 // indirect
golang.org/x/text v0.24.0 // indirect
Expand All @@ -81,6 +63,4 @@ require (
google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 // indirect
google.golang.org/grpc v1.69.4 // indirect
google.golang.org/protobuf v1.36.3 // indirect
gopkg.in/yaml.v2 v2.3.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading