Coder Social home page Coder Social logo

Comments (9)

anna-geller avatar anna-geller commented on July 23, 2024 1

@n0one42 sorry to hear, I respect your decision though. If you want to discuss your use cases with a real human, feel free to talk to our product expert @Ben8t - I'm sure that frustrations with expressions are solvable

from kestra.

Ben8t avatar Ben8t commented on July 23, 2024 1

Hello @n0one42 , would be happy to talk about your case over call - here is my schedule slots

from kestra.

n0one42 avatar n0one42 commented on July 23, 2024

@anna-geller
As a hint because you changed the name:
It has not only to do with ansible playbooks but also with docker compose files. This is why I actually upload the docker compose files first to the remote server.

from kestra.

anna-geller avatar anna-geller commented on July 23, 2024

The example was for Ansible, can you share other examples where you see that issue?

from kestra.

n0one42 avatar n0one42 commented on July 23, 2024

@anna-geller
It does not matter if its an ansible, an docker compose or what ever. It has to do with the interpretation of yml files by itself. More over with the io.kestra.plugin.core.flow.WorkingDirectory

id: yaml_test
namespace: homelab.dev
description: Testing yml files

labels:
  project: Test

variables:
  host: "xxx"
  ssh_port: xxx
  primary_user_name: "xxx"

tasks:
  - id: wdir
    type: io.kestra.plugin.core.flow.WorkingDirectory
    inputFiles:
      myfile.yml: |
        Do not interpret it... {% raw %}{{ item }}{% endraw %}
    outputFiles:
      - "*"
    tasks:
      - id: showContent
        type: io.kestra.plugin.scripts.shell.Commands
        commands:
          - ls {{ workingDir }}
          - echo "Task is needed here... so placeholdertask"

  - id: upload
    type: io.kestra.plugin.fs.sftp.Upload
    host: "{{ vars.host }}"
    username: "{{ vars.primary_user_name }}"
    keyfile: "{{ read('shared/secrets/xxx') }}"
    port: "{{ vars.ssh_port }}"
    from: "{{ outputs.wdir.outputFiles['myfile.yml'] }}"
    to: "myfile.yml"

Results:

      myfile.yml: |
        Do not interpret it... {% raw %}{{ item }}{% endraw %}
Failed preExecuteTasks on WorkingDirectory: Unable to find `item` used in the expression `Do not interpret it... {{ item }}
` at line 1
      myfile.yml: |
        {% raw %}Do not interpret it... {{ item }}{% endraw %}
Failed preExecuteTasks on WorkingDirectory: Unable to find `item` used in the expression `Do not interpret it... {{ item }}
` at line 1

from kestra.

anna-geller avatar anna-geller commented on July 23, 2024

yes, I'm just asking for more examples, this will help us identify the right solution

from kestra.

anna-geller avatar anna-geller commented on July 23, 2024

hey @n0one42, I talked to the team and there seems to be a misunderstanding about when the fix will be available. Your first issue #4093 was closed after the fix was done. However, the fix hasn't been released yet. It will be released by the latest in Kestra 0.18 planned for the 6th of August.

from kestra.

n0one42 avatar n0one42 commented on July 23, 2024

@anna-geller but he wrote:
So the issue was that we render twice the file content, I fixed it, it will be backported for our next bugfix release on 0.17
so the v0.17 was already out... Anyway. I think, this could be a pretty cool software but atm. for me and the companies I support, it is not worth it yet the hassle. There are to many issues. Lets hope for the best.

from kestra.

loicmathieu avatar loicmathieu commented on July 23, 2024

It has been backported to 0.17.11.

from kestra.

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.