Hi Ivy Team,

I would like to configure Administrators by using Environment variable, I can configure systemdb:url by using IVY_SYSTEMDB_URL. But the structure Administrators config is different:

YAML:

Administrators:
  admin:
    Password: "${hash:mySecret}"
    Email: info@localhost.com

Can I create Environment variables like following:

IVY_ADMINISTRATORS_ADMIN=<value??>
IVY_ADMINISTRATORS_ADMIN_PASSWORD=<password>
IVY_ADMINISTRATORS_ADMIN_EMAIL=info@localhost.com

I use Environment variable because I'm running Axon.ivy Engine within Containerized environment, and Environment variable is the suitable way to store configuration.

I could see the Global Variables, Security System face the same issue.

Thank for your support.

asked 17.06.2020 at 00:17

vinh_'s gravatar image

vinh_
(suspended)
accept rate: 40%

edited 17.06.2020 at 01:23

Hello vinh, you are spot on, an example of the environment variables is available in our docker examples: https://github.com/ivy-samples/docker-samples/tree/master/ivy-environment-variables

(17.06.2020 at 03:05) Oliver Heer Oliver%20Heer's gravatar image

Thanks about the example. It clear for me.

(17.06.2020 at 03:35) vinh_ vinh_'s gravatar image

The name of the administrator is part of the environment variable key:

This installs an administrator with name admin and password admin.

IVY_ADMINISTRATORS_ADMIN_PASSWORD: admin

This example installs an administrator with name vinh and password 1234

IVY_ADMINISTRATORS_VINH_PASSWORD: 1234
link

answered 17.06.2020 at 03:09

Alex%20Suter's gravatar image

Alex Suter ♦♦
3.1k122247
accept rate: 84%

(17.06.2020 at 03:37) vinh_ vinh_'s gravatar image

Could be possible when you escape the key. But I'm not sure.

It's quite hard to configure the hole ivy with environment variables. I don't recommend it. If you are in containerized environment like Kubernetes then you better use ConfigMap.

(17.06.2020 at 04:02) Alex Suter ♦♦ Alex%20Suter's gravatar image

I am using ConfigMaps, I want to separate those configurations into many ConfigMaps, then expose them as environment variables, the only alternative way I know is store the whole ivy.yaml inside a key/value of ConfigMap, I don't know if I could split ivy.yaml into smaller files?

(17.06.2020 at 05:56) vinh_ vinh_'s gravatar image

I think it is possible with ConfigMap to split them in smaller files and merge them together "on-the-fly"? If not, then you may start a feature request for the Axon.ivy platform that you are able to split ivy.yaml in multiple files.

(18.06.2020 at 03:53) Alex Suter ♦♦ Alex%20Suter's gravatar image

Hi Alex, I think merging the ivy.yaml "on-the-fly" is possible, it will require some scripting work. Thank you for a good discussion.

(18.06.2020 at 20:55) vinh_ vinh_'s gravatar image

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×147
×44
×32

Asked: 17.06.2020 at 00:17

Seen: 2,394 times

Last updated: 18.06.2020 at 20:55