Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global configs in konnect.yml #40

Merged
merged 1 commit into from
Nov 1, 2017
Merged

Global configs in konnect.yml #40

merged 1 commit into from
Nov 1, 2017

Conversation

TunedMystic
Copy link
Member

Summary

  • Create global proxy config in Konnect struct.
  • Add functionality for unmarshalling global proxy config.
  • Move SSHProxy unmarshalling to Konnect struct. Fill in blank SSHProxy fields with global fields.

[config without global]

hosts:
  app:
    user: admin
    host: 127.0.0.1
    port: 22
    key: /home/app/key
  database:
    user: admin
    host: 192.168.99.100
    port: 89
    key: ~/.ssh/id_rsa

[config with global]

global:
  user: admin

hosts:
  app:
    host: 127.0.0.1
    port: 22
    key: /home/app/key
  database:
    host: 192.168.99.100
    port: 89
    key: ~/.ssh/id_rsa

[alternative host string]

global:
  user: admin
  port: 23
  key: /home/app/key

hosts:
  app: 127.0.0.1
  database:
    host: 192.168.99.100
    port: 89
    key: ~/.ssh/id_rsa

…nmarshalling global proxy config. Move SSHProxy unmarshalling to Konnect struct. Fill in blank SSHProxy fields with global fields.
@TunedMystic TunedMystic merged commit 7bab4cc into master Nov 1, 2017
@TunedMystic TunedMystic deleted the task-28 branch November 2, 2017 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant