Giter Site home page Giter Site logo

Comments (8)

CyberDem0n avatar CyberDem0n commented on August 28, 2024 1

I believe #211 covers most of the use-cases. Closing this issue. If something is missing we will create a new one.

from patroni.

CyberDem0n avatar CyberDem0n commented on August 28, 2024

What other parameters should it be possible to set via environment variables (except passwords)?
I'm thinking about:

  • NAME (node name)
  • SCOPE (cluster name)
  • NAMESPACE (path inside DCS where cluster is stored, /service by default)
  • RESTAPI_AUTH ('username:password' for accessing some of the endpoints)
  • RESTAPI_CERTFILE
  • RESTAPI_KEYFILE
  • RESTAPI_LISTEN
  • RESTAPI_CONNECT_ADDRESS
  • POSTGRESQL_LISTEN
  • POSTGRESQL_CONNECT_ADDRESS
  • POSTGRESQL_DATA_DIR ?
  • POSTGRESQL_PGPASS ?
  • (ETCD|CONSUL|ZOOKEEPER)_HOST(S) ?

What about order of precedence? I think config file should have a priority.

from patroni.

feikesteenbergen avatar feikesteenbergen commented on August 28, 2024

What about PATRONI_CONFIGURATION? As since 9744019 In that way you can run patroni totally with an envdir.

from patroni.

CyberDem0n avatar CyberDem0n commented on August 28, 2024

Yeah, but with PATRONI_CONFIG it's not possible to change config and reload it...

from patroni.

alexeyklyukin avatar alexeyklyukin commented on August 28, 2024

It is actually called 'PATRONI_CONFIGURATION' and it's mutually exclusive with the actual configuration files, so you cannot read from both.

I think we only move the actual secrets to the envdir, obviously, the passwords, but also RESTAPI_AUTH, RESTAPI_CERTFILE and RESTAPI_KEYFILE.

from patroni.

CyberDem0n avatar CyberDem0n commented on August 28, 2024

It is not only about passwords, but about running Patroni in a docker. For example it's not always possible to figure out your "connect_address" from inside docker.

from patroni.

jberkus avatar jberkus commented on August 28, 2024

Exactly. For example, when starting Patroni in Kubernetes, I can pass the Pod IP address as an ENV; it's not visible inside the container.

from patroni.

LappleApple avatar LappleApple commented on August 28, 2024

@CyberDem0n @alexeyklyukin @feikesteenbergen @jberkus What's the next step to take for this issue?

from patroni.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.