Add Azure external provider example

This commit is contained in:
Ionut Balutoiu 2022-05-12 15:48:29 +03:00
parent 3c36854b65
commit 366ccf76c5
5 changed files with 442 additions and 1 deletions

13
testdata/config.toml vendored
View file

@ -136,7 +136,7 @@ time_to_live = "8760h"
protocol = "simplestreams"
skip_verify = false
# This is an example external provider. External providers are executables that
# These are examples of external providers. External providers are executables that
# implement the needed interface to create/delete/list compute systems that are used
# by garm to create runners.
[[provider]]
@ -150,6 +150,17 @@ provider_type = "external"
# can be anything (bash, a binary, python, etc)
provider_dir = "/home/ubuntu/garm/providers.d/openstack"
[[provider]]
name = "azure_external"
description = "external azure provider"
provider_type = "external"
[provider.external]
# config file passed to the executable via GARM_PROVIDER_CONFIG_FILE environment variable
config_file = "/home/ubuntu/garm/providers.d/azure/config.sh"
# path on disk to a folder that contains a "garm-external-provider" executable. The executable
# can be anything (bash, a binary, python, etc)
provider_dir = "/home/ubuntu/garm/providers.d/azure"
# This is a list of credentials that you can define as part of the repository
# or organization definitions. They are not saved inside the database, as there
# is no Vault integration (yet). This will change in the future.