This commit is contained in:
@@ -50,6 +50,11 @@ func (e *Executor) WorkDir() string {
|
||||
return e.workDir
|
||||
}
|
||||
|
||||
// GRPCURL returns the gRPC server URL (host:port)
|
||||
func (e *Executor) GRPCURL() string {
|
||||
return e.grpcServerHost + ":" + e.grpcServerPort
|
||||
}
|
||||
|
||||
// Deploy runs Ansible playbook for the given inventory
|
||||
func (e *Executor) Deploy(
|
||||
ctx context.Context,
|
||||
@@ -66,6 +71,7 @@ func (e *Executor) Deploy(
|
||||
cmd := exec.CommandContext(ctx, "ansible-playbook",
|
||||
"-i", inventoryPath,
|
||||
"-e", fmt.Sprintf("backend_url=%s", e.backendURL),
|
||||
"-e", fmt.Sprintf("grpc_url=%s", e.grpcServerHost+":"+e.grpcServerPort),
|
||||
playbookPath,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user