Skip to content

Add Exoscale provider - #153

Open
pierre-emmanuelJ wants to merge 4 commits into
hashicorp:masterfrom
exoscale:master
Open

Add Exoscale provider#153
pierre-emmanuelJ wants to merge 4 commits into
hashicorp:masterfrom
exoscale:master

Conversation

@pierre-emmanuelJ

Copy link
Copy Markdown

This Pull Request add the Implementation of the Exoscale provider.

Usage

Exoscale:
    provider:       "exoscale"
    api_key:        The Exoscale API key (required)
    api_secret:     The Exoscale API secret key (required)
    api_endpoint:   The Exoscale API endpoint
    tag_key:        The tag key to filter on
    tag_value:      The tag value to filter on
    zone:           The Exoscale Zone
    addr_type:      "public_v4" or "public_v6". (default: "public_v4")

Signed-off-by: Pierre-Emmanuel Jacquier <15922119+pierre-emmanuelJ@users.noreply.github.com>
@hashicorp-cla

hashicorp-cla commented Jun 30, 2020

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Signed-off-by: Pierre-Emmanuel Jacquier <15922119+pierre-emmanuelJ@users.noreply.github.com>
Signed-off-by: Pierre-Emmanuel Jacquier <15922119+pierre-emmanuelJ@users.noreply.github.com>
@pierre-emmanuelJ

pierre-emmanuelJ commented Jun 30, 2020

Copy link
Copy Markdown
Author

Test deployed with Terraform test/tf/exoscale.

Integration tests ✅ :

go test -v ./provider/exoscale
=== RUN   TestAddrs
2020/06/30 16:53:06 [DEBUG] discover-exoscale: Using zone= tag_key=, tag_value=, addr_type=public_v4
2020/06/30 16:53:06 [DEBUG] discover-exoscale: Found instance test-02 - with public_v4 IP: 159.100.xxx.xxx
2020/06/30 16:53:06 [DEBUG] discover-exoscale: Found instance test-01 - with public_v4 IP: 89.145.xxx.xxx
2020/06/30 16:53:06 [DEBUG] discover-exoscale: Found ip addresses: [159.100.xxx.xxx 89.145.xxx.xxx]
--- PASS: TestAddrs (0.27s)
=== RUN   TestAddrsZone
2020/06/30 16:53:06 [DEBUG] discover-exoscale: Using zone=ch-gva-2 tag_key=, tag_value=, addr_type=public_v4
2020/06/30 16:53:06 [DEBUG] discover-exoscale: Found instance test-02 - with public_v4 IP: 159.100.xxx.xxx
2020/06/30 16:53:06 [DEBUG] discover-exoscale: Found ip addresses: [159.100.xxx.xxx]
--- PASS: TestAddrsZone (0.33s)
=== RUN   TestAddrsTags
2020/06/30 16:53:06 [DEBUG] discover-exoscale: Using zone= tag_key=test-01, tag_value=consul, addr_type=public_v4
2020/06/30 16:53:06 [DEBUG] discover-exoscale: Found instance test-01 - with public_v4 IP: 89.145.xxx.xxx
2020/06/30 16:53:06 [DEBUG] discover-exoscale: Found ip addresses: [89.145.xxx.xxx]
--- PASS: TestAddrsTags (0.19s)
=== RUN   TestAddrsIPv6
2020/06/30 16:53:06 [DEBUG] discover-exoscale: Using zone= tag_key=, tag_value=, addr_type=public_v6
2020/06/30 16:53:07 [DEBUG] discover-exoscale: Found instance test-02 - with public_v6 IP: 2a04:c43:e00:46b0:4f7:xxxx:xxxx
2020/06/30 16:53:07 [DEBUG] discover-exoscale: Found ip addresses: [2a04:c43:e00:46b0:4f7:xxxx:xxxx]
--- PASS: TestAddrsIPv6 (0.19s)
PASS
ok  	github.com/hashicorp/go-discover/provider/exoscale	0.991s

@pierre-emmanuelJ

pierre-emmanuelJ commented Jun 30, 2020

Copy link
Copy Markdown
Author

no pagination? 😿

@greut f9fbb6c 😃

Signed-off-by: Pierre-Emmanuel Jacquier <15922119+pierre-emmanuelJ@users.noreply.github.com>
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.

3 participants