This repository has been archived by the owner on Jan 11, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Config rework #3
Open
brendangibat
wants to merge
22
commits into
makethunder:master
Choose a base branch
from
brendangibat:config_rework
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
5c55564
allowing for http api to be used for fleet provider
brendangibat 738ebee
fixing hook that returns null api for api client
brendangibat 830c568
adding in etcd client for fleet v0.10.2 (need to update next to using…
brendangibat cd25c63
changing around to make code flow better
brendangibat 07b193a
updating comments
brendangibat f506ec6
updating outputed text and fallthrough on empty string for tunnel
brendangibat 67d9b0f
adding test for empty tunnel endpoint
brendangibat db56e45
updating readme and etcd config value
brendangibat 7769f61
mimicking fleetctl a little better
brendangibat 0d3546a
mixing up endpoints
brendangibat 0941405
not showing port 4001 so as to not confuse people about the api endpoint
brendangibat d370dfb
changing name for golint
brendangibat 8e4fb59
frist pass at making client generation like fleetctl
brendangibat d4a72e8
fixing fleetctl mimicing configuration
brendangibat d2532b0
updating readme on config
brendangibat c5d493c
fixing a few more readme values
brendangibat d7dc9c5
updating comments and tests
brendangibat b86de93
adding in example config
brendangibat fda194f
fixing using underscores instead of dashes
brendangibat 98386dd
removing param that doesn't exist
brendangibat 94996e4
removing unused imports
brendangibat 8a154f0
updating test comments
brendangibat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
bin/* | ||
terraform-provider-fleet | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,11 +12,78 @@ A plugin for Terraform enabling it to manipulate | |
|
||
## Usage | ||
|
||
This terraform plugin supports the same connections as fleetctl. The | ||
configuration mimics the fleetctl tool as well. | ||
|
||
Here are the configuration names, default values, descriptions, and required | ||
values from the terraform provider schema: | ||
|
||
- driver | ||
* Description: Adapter used to execute fleetctl commands. Options include api and etcd. | ||
* Default: "api" | ||
- endpoint | ||
* Description: Location of the fleet API if --driver=api. Alternatively, if --driver=etcd, location of the etcd API. | ||
* Default: "unix:///var/run/fleet.sock" | ||
- etcd-key-prefix | ||
* Description: Keyspace for fleet data in etcd (development use only!) | ||
- key-file | ||
* Default: /var/run/fleet.sock | ||
* Description: Location of TLS key file used to secure communication with the fleet API or etcd | ||
- cert-file | ||
* Description: Location of TLS cert file used to secure communication with the fleet API or etcd | ||
* Default: | ||
- ca-file | ||
* Description: Location of TLS CA file used to secure communication with the fleet API or etcd | ||
* Default: | ||
- tunnel | ||
* Description: Establish an SSH tunnel through the provided address for communication with fleet and etcd. | ||
* Default: | ||
- known-hosts-file | ||
* Description: File used to store remote machine fingerprints. Ignored if strict host key checking is disabled. | ||
* Default: ssh.DefaultKnownHostsFile | ||
- ssh-username | ||
* Description: Username to use when connecting to CoreOS instance. | ||
* Default: "core" | ||
- strict-host-key-checking | ||
* Description: Verify host keys presented by remote machines before initiating SSH connections. | ||
* Default: true | ||
- ssh-timeout | ||
* Description: Amount of time in seconds to allow for SSH connection initialization before failing. | ||
* Default: 10.0 | ||
- request-timeout | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. looks like these options need the |
||
* Description: Amount of time in seconds to allow a single request before considering it failed. | ||
* Default: 3.0 | ||
|
||
EX: | ||
|
||
``` | ||
provider "fleet" { | ||
driver = "etcd" | ||
endpoint = "http://192.168.0.1:4001" | ||
// etcd_key_prefix can be ommited to use the default value | ||
etcd_key_prefix = "/_some/_weird/etcd/prefix" | ||
} | ||
``` | ||
|
||
``` | ||
provider "fleet" { | ||
driver = "api" | ||
endpoint = "http://192.168.0.1:8080" | ||
} | ||
``` | ||
|
||
``` | ||
provider "fleet" { | ||
tunnel = "10.0.0.1:22" | ||
ssh_username = "not_core" | ||
} | ||
``` | ||
|
||
There is only one resource: `fleet_unit`. Here is the first example from | ||
[the Fleet introduction][3], transcribed to Terraform: | ||
|
||
provider "fleet" { | ||
tunnel_address = "IP_OR_HOSTNAME_OF_A_COREOS_HOST" | ||
endpoint = "IP_OR_HOSTNAME_OF_A_COREOS_HOST" | ||
} | ||
|
||
resource "fleet_unit" "myapp" { | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is
~/.fleetctl/known_hosts