Comments (9)
This issue should resolve itself (no need to update bedrock-site-protect
) once roots/trellis#1071 is merged into Trellis. 🎉
from bedrock-site-protect.
Hey, thanks for the additional report. I had a look today and it’s a complicated issue due to the fact that we’re doing a two layer deep loop. I tried a couple of things, but none of them worked 😢.
I don’t have an easy fix, but I’m still exploring different ways to fix the problem. There’s hope 🤞
from bedrock-site-protect.
Same issue here bedrock-site-protect doesn't like salt
It seems to happen on when one salt contains # symbol 2 times, I removed all # from the salts whether I am not sure if the part of the salt after the # will be considered as a comment.
This custom role was also there during provisioning and didn't complain about these strings Cloudflare Origin CA tasks
@louim : can you give us your insight here ?
from bedrock-site-protect.
Perhaps it's an old ansible issue : ansible/ansible#16443
It is documented in Ansible docs here https://docs.ansible.com/ansible/latest/user_guide/playbooks_advanced_syntax.html :
##YAML
my_unsafe_variable: !unsafe 'this variable has {{ characters that should not be treated as a jinja2 template'
Template j2
{% raw %}
...
{% endraw %}
from bedrock-site-protect.
Hey!
Interesting issue, seem's like in @smaboshe version of the salt, it's caused by the {{
making Ansible think there's a variable there.
In your salt, did you have {
before the #
?
I'm not exactly sure where in the whole process Ansible is trying to template the strings, I'll need to dig deeper.
from bedrock-site-protect.
I just ran into this myself with one of my environments.
The issue was initially created by a {{
in one of my salts. I changed it, and then a different salt further down the chain tripped the issue with {%
. Changing that one finally solved the issue. 🤷🏻♂️
from bedrock-site-protect.
@louim Thanks for looking into it! At least it’s an easy, temporary fix now that we know what to look out for in the generated salts. 🙌
from bedrock-site-protect.
Just to add a bit more to this, I can confirm that having {#
, {{
or {%
in the salts causes the same error. Haven't come across any others, we've got a note in our vault.yml
reminding us to check for those three when adding new salts.
from bedrock-site-protect.
Hey all!
The PR containing the fix has just been merged in Trellis master. This issue should now be fixed once you use the latest Trellis.
Thanks for the report and all the help investigating! 🎉
from bedrock-site-protect.
Related Issues (14)
- Usage with vault.yml HOT 7
- TASK [bedrock-site-protect : Set htpasswd] - Failing HOT 3
- Can I add Allowed From? HOT 1
- passlib missing from Trellis install HOT 7
- Deprecation warning : Include HOT 1
- Installed role, added to server.yml, re-deployed, this role does not appear to run HOT 3
- No requirements.yml HOT 6
- Issue creating /etc/htpasswd as requested: [Errno 13] Permission denied: b'/etc/htpasswd' HOT 3
- Allow letsencrypt challenge to pass
- Issues with Let's Encrypt HOT 8
- Multiple Users HOT 2
- Documentation + Version Number HOT 1
- Gets "the key htpasswd should point to a list" HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bedrock-site-protect.