Where the answer.txt is coming from?

#1

When creating a stack, where the answers.txt is coming from, can’t see them in the catalog in example

#2

From the questions/form inputs.

#3

aha, OK and the answers are saved in the Rancher Meta Data I assume and shown as answers.txt in the UI

#4

They are passed to rancher-compose as environment variables and it does the substitution before creating the services.

#6

Hello,
Do you know if there is a way to get filled automaticaly the questions ?
For example, if I want to deploy the same project in distincts environments like DEV, PREPROD, PROD. I would have a 3 catalogs, each one with his own env. variables.

maybe, with answers.txt in each environment (dev/, preprod/, prod/) or in each version ( dev/0/, dev/1, etc.)

example if answers.txt in each environment :

/projecs

  • /dev
    – /0
    — docker-compose.yml
    — rancher-compose-yml
    – /1
    — docker-compose.yml
    — rancher-compose-yml
    — catalogIcon-entry.svg
    – config.yml
    – answers.txt
  • /preprod
    – /0
    — docker-compose.yml
    — rancher-compose-yml
    – /1
    — docker-compose.yml
    — rancher-compose-yml
    – catalogIcon-entry.svg
    – config.yml
    – answers.txt
  • prod
    – /0
    — docker-compose.yml
    — rancher-compose-yml
    – /1
    — docker-compose.yml
    — rancher-compose-yml
    — catalogIcon-entry.svg
    – config.yml
    – answers.txt
#7

No; questions can have a default in them but there’s no separate answers file reading.