GithubHelp home page GithubHelp logo

Comments (9)

louim avatar louim commented on May 28, 2024 3

This issue should resolve itself (no need to update bedrock-site-protect) once roots/trellis#1071 is merged into Trellis. 🎉

from bedrock-site-protect.

louim avatar louim commented on May 28, 2024 1

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.

alex-galey avatar alex-galey commented on May 28, 2024

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.

alex-galey avatar alex-galey commented on May 28, 2024

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.

louim avatar louim commented on May 28, 2024

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.

gblakeman avatar gblakeman commented on May 28, 2024

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.

gblakeman avatar gblakeman commented on May 28, 2024

@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.

dalepgrant avatar dalepgrant commented on May 28, 2024

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.

louim avatar louim commented on May 28, 2024

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)

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.