Sentinel-PaaS / sentinel-api

Sentinel's API server (i.e., the Control Plane), a Node.js application.
MIT License
1 stars 0 forks source link

`cluster/initialize` command needs to run the template command on the stack-traefik-main file #54

Closed MFatigati closed 2 years ago

MFatigati commented 2 years ago

e.g.,

    - name: Populate traefik-prometheus-grafana compose file and copy to manager
      template:
        src: ../assets/stack-traefik-main.yaml
        dest: /stack-traefik-main.yaml

Otherwise the routers look like this:

Screen Shot 2022-04-01 at 7 19 13 AM

dsessler7 commented 2 years ago

The cluster initialize route doesn't expect these hostnames to be passed to it, right? So the initial stack-traefik-main will always have these default hostnames at first and then if the user wants to change them they need to make another call to set the hostnames and repopulate the stack-traefik-main file?

MFatigati commented 2 years ago

Correct. But if the template is not copied with the template command, the default values don't get set, because the template is interpreted as a string, not a template (not sure if that was part of your question).