diff --git a/go.mod b/go.mod index eb71277..0fbc730 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/aws/aws-sdk-go-v2/credentials v1.17.20 github.com/aws/aws-sdk-go-v2/service/ec2 v1.165.0 github.com/aws/smithy-go v1.20.2 - github.com/cloudbase/garm-provider-common v0.1.4-0.20241026163040-5b7633dfb896 + github.com/cloudbase/garm-provider-common v0.1.4 github.com/invopop/jsonschema v0.12.0 github.com/stretchr/testify v1.9.0 github.com/xeipuuv/gojsonschema v1.2.0 diff --git a/go.sum b/go.sum index c2fde92..505653c 100644 --- a/go.sum +++ b/go.sum @@ -32,8 +32,8 @@ github.com/bahlo/generic-list-go v0.2.0 h1:5sz/EEAK+ls5wF+NeqDpk5+iNdMDXrh3z3nPn github.com/bahlo/generic-list-go v0.2.0/go.mod h1:2KvAjgMlE5NNynlg/5iLrrCCZ2+5xWbdbCW3pNTGyYg= github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMUs= github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= -github.com/cloudbase/garm-provider-common v0.1.4-0.20241026163040-5b7633dfb896 h1:ABGtls2lRdiESmNgrBmZvSb7QXkOzOPjtCpvFHMI/cU= -github.com/cloudbase/garm-provider-common v0.1.4-0.20241026163040-5b7633dfb896/go.mod h1:sK26i2NpjjAjhanNKiWw8iPkqt+XeohTKpFnEP7JdZ4= +github.com/cloudbase/garm-provider-common v0.1.4 h1:spRjl0PV4r8vKaCTNp6xBQbRKfls/cmbBEl/i/eGWSo= +github.com/cloudbase/garm-provider-common v0.1.4/go.mod h1:sK26i2NpjjAjhanNKiWw8iPkqt+XeohTKpFnEP7JdZ4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/vendor/github.com/cloudbase/garm-provider-common/cloudconfig/templates.go b/vendor/github.com/cloudbase/garm-provider-common/cloudconfig/templates.go index 05687c5..1d9fb71 100644 --- a/vendor/github.com/cloudbase/garm-provider-common/cloudconfig/templates.go +++ b/vendor/github.com/cloudbase/garm-provider-common/cloudconfig/templates.go @@ -182,6 +182,11 @@ fi AGENT_ID="" {{- if .UseJITConfig }} +if [ -f "$RUN_HOME/env.sh" ];then + pushd $RUN_HOME + source env.sh + popd +fi sudo systemctl start $SVC_NAME || fail "failed to start service" {{- else}} sendStatus "starting service" diff --git a/vendor/modules.txt b/vendor/modules.txt index ef67e21..2f987ae 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -110,7 +110,7 @@ github.com/bahlo/generic-list-go # github.com/buger/jsonparser v1.1.1 ## explicit; go 1.13 github.com/buger/jsonparser -# github.com/cloudbase/garm-provider-common v0.1.4-0.20241026163040-5b7633dfb896 +# github.com/cloudbase/garm-provider-common v0.1.4 ## explicit; go 1.22 github.com/cloudbase/garm-provider-common/cloudconfig github.com/cloudbase/garm-provider-common/defaults