sassoftware / viya4-deployment

This project contains Ansible code that creates a baseline in an existing Kubernetes environment for use with the SAS Viya Platform, generates the manifest for an order, and then can also deploy that order into the Kubernetes environment specified.
Apache License 2.0
71 stars 64 forks source link

Postgres Ansible task fails when no value is provided #147

Closed GonzaloUlla closed 3 years ago

GonzaloUlla commented 3 years ago

Summary

Per CONFIG-VARS.md#postgres, default and default.internal keys are always required.

To minize configuration effort, I recommend adding default values for those keys.

Current behavior

When default.internal key is not set, Postgres Ansible task fails with error:

The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'internal'` 

Expected behavior

Postgres Ansible task runs successfully using a default value for default.internal key.

thpang commented 3 years ago

Given the default does not know if it's internal vs external. The current empty value in the iac sample file will stay empty. The end user will have to read the docs and be aware of how their database is being configured. There error you are seeing is correct. It's telling you to fill in the value.