{"id":15514498,"url":"https://github.com/petems/terraform-provider-sshconfig","last_synced_at":"2025-11-26T11:05:20.399Z","repository":{"id":137299806,"uuid":"245867138","full_name":"petems/terraform-provider-sshconfig","owner":"petems","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-01T22:56:16.000Z","size":25510,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-01T23:33:54.480Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/petems.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-08T18:32:52.000Z","updated_at":"2020-05-10T21:26:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"694780e9-eb29-4670-9e4e-f2c646cb6407","html_url":"https://github.com/petems/terraform-provider-sshconfig","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/petems/terraform-provider-sshconfig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petems%2Fterraform-provider-sshconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petems%2Fterraform-provider-sshconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petems%2Fterraform-provider-sshconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petems%2Fterraform-provider-sshconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petems","download_url":"https://codeload.github.com/petems/terraform-provider-sshconfig/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petems%2Fterraform-provider-sshconfig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-26T02:00:06.075Z","response_time":193,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T09:59:35.104Z","updated_at":"2025-11-26T11:05:20.383Z","avatar_url":"https://github.com/petems.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-provider-sshconfig\n\n[![Build Status](https://travis-ci.org/petems/terraform-provider-sshconfig.svg?branch=master)](https://travis-ci.org/petems/terraform-provider-sshconfig)\n\nTerraform provider for reading and configurating SSH Config files\n\n## Requirements\n-\t[Terraform](https://www.terraform.io/downloads.html) 0.11.x\n-\t[Go](https://golang.org/doc/install) 1.10 (to build the provider plugin)\n\n## Installing the Provider\nFollow the instructions to [install it as a plugin](https://www.terraform.io/docs/plugins/basics.html#installing-a-plugin). After placing it into your plugins directory, run `terraform init` to initialize it.\n\n## Usage\n\n```hcl\ndata \"sshconfig_host\" \"github_ssh_config\" {\n  path = pathexpand(\"~/.ssh/config\")\n  host = \"github.com\"\n}\n\noutput \"github_config\" {\n  value = \"${data.sshconfig_host.github_ssh_config.rendered}\"\n}\n\noutput \"host_map\" {\n  value = \"${data.sshconfig_host.github_ssh_config.host_map}\"\n}\n\n```\n\nGives the result:\n\n```shell\n$ terraform apply\ndata.sshconfig_host.github_ssh_config: Refreshing state...\n\nApply complete! Resources: 0 added, 0 changed, 0 destroyed.\n\nOutputs:\n\ngithub_config =\nHost github.com\n  ControlMaster auto\n  ControlPath ~/.ssh/ssh-%r@%h:%p\n  ControlPersist yes\n  User git\n  IdentityFile ~/.ssh/github_ssh_key_10_Mar_2020\n\nhost_map = {\n  \"ControlMaster\" = \"auto\"\n  \"ControlPath\" = \"~/.ssh/ssh-%r@%h:%p\"\n  \"ControlPersist\" = \"yes\"\n  \"IdentityFile\" = \"~/.ssh/github_ssh_key_10_Mar_2020\"\n  \"User\" = \"git\"\n}\n```\n\nExamples are under [/examples](/examples).\n\n## Building the Provider\nClone and build the repository\n\n```sh\ngo get github.com/petems/terraform-provider-sshconfig\nmake build\n```\n\nSymlink the binary to your terraform plugins directory:\n\n```sh\nmkdir -p ~/.terraform.d/plugins/\nln -s $GOPATH/bin/terraform-provider-sshconfig ~/.terraform.d/plugins/\n```\n\n## Updating the Provider\n\n```sh\ngo get -u github.com/petems/terraform-provider-sshconfig\nmake build\n```\n\n## TODO\n\n* Add configuration of the consensus timing (ie. how long it will wait to resolve)\n* Add option of getting ipv6 or ipv4 ipaddress\n\n## Contributing\n* Install project dependencies: `go get github.com/kardianos/govendor`\n* Run tests: `make test`\n* Build the binary: `make build`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetems%2Fterraform-provider-sshconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetems%2Fterraform-provider-sshconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetems%2Fterraform-provider-sshconfig/lists"}