Skip to content
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

[BUG] Multiple files provisioning not working #11

Open
IceManGreen opened this issue Jan 10, 2024 · 0 comments
Open

[BUG] Multiple files provisioning not working #11

IceManGreen opened this issue Jan 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@IceManGreen
Copy link
Contributor

Describe the bug
When multiple files are configured for provisioning, only the first file appears in the final guest's file system.

To Reproduce

Configure a machine like :

#https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-generic-amd64.qcow2
version: "v0.1.0-beta"
hosts:
  - hostname: "test"
    image: "$HOME/Images/debian11"
    os: "debian11"
    users:
      - keys: ["$HOME/.ssh/id_ed25519.pub"]
        username: bob
    write-files:
      - source: "$HOME/script1.sh"
        destination: "/usr/local/bin/script1.sh"
        permissions: "0770"
        owner: "bob:bob"
      - source: "$HOME/script2.sh"
        destination: "/usr/local/bin/script2.sh"
        permissions: "0770"
        owner: "bob:bob"

connect to the guest with ssh -> the second file /usr/local/bin/script2.sh/ does not exist

Expected behavior
/usr/local/bin/script2.sh/ should be present.

Desktop (please complete the following information):

  • OS: ubuntu22.04
  • Version : freyja v0.1.0-beta
@IceManGreen IceManGreen added the bug Something isn't working label Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant