-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot set Server Configuration values that are only settable through config file #111
Comments
Hi @dennislapchenko, According to https://www.runatlantis.io/docs/using-slack-hooks.html - it should be possible to set the Slack token through setting the environment variable: ATLANTIS_SLACK_TOKEN And I believe that you can set the Slack configuration through the repo/server yaml config. This module supports passing the server config, see /examples. And for the repo config, you can set the Slack config as part of that atlantis.yaml (in your repository). Hopefully this helps you, if not let me know! |
@bschaatsbergen thanks for a swift reply. At first I also thought that its the server yaml config that it should go to. But after trying it out - came to understand its the actual atlantis config file that this has to be in. (path to which is through |
Before I attempted a fork or a PR into cloudinit, I tried to use
But i do get:
It seems the container is starting faster than the startup script |
Hmm thanks for elaborating. I'll take a stab this 👍🏼 @dennislapchenko Note: the startup-script is ran on the VM, not within the container itself, the file should be copied into the disk that the container has mounted. |
@bschaatsbergen perhaps adding a cloudinit Re startup-script - as seen in the example above, i was writing the file to |
Hi @dennislapchenko, I'll get back on this issue soon. Have you meanwhile find an alternative way to fix it? |
I plan on checking this out soon @dennislapchenko, been a busy few weeks. Have you tackled this already? |
Hi @bschaatsbergen, unfortunately I havent. Have switched projects and here atlantis is in k8s 😄 |
Slack token, for example, is currently only configured through atlantis configuration file. Any idea how to implement it with current setup?
Smoothest option is to add another
cloudinit.write_files
entry, right?The text was updated successfully, but these errors were encountered: