https://www.puppet.com/community logo
Join Slack
Powered by
# voxpupuli
  • v

    VoxBot

    03/17/2023, 5:52 PM
    though I'm pretty sure when I tried using rsync a while back it never worked for me
  • v

    VoxBot

    03/17/2023, 5:52 PM
    I tried using confine_block to exclude the docker hypervisor in rsync tests, but I'm not finding the right way
  • v

    VoxBot

    03/17/2023, 5:53 PM
    mhm possible. we usually don't use rsync
  • v

    VoxBot

    03/17/2023, 5:53 PM
    mark it as pending?
  • y

    Yury Bushmelev

    03/17/2023, 5:55 PM
    hm.. IIRC I’m using rsync in some local tests.. let me check
  • y

    Yury Bushmelev

    03/17/2023, 5:56 PM
    ah, I’m using
    copy_module_to
    which uses
    scp
    I guess..
  • y

    Yury Bushmelev

    03/17/2023, 5:57 PM
    ah, I’m using
    copy_module_to
    which uses
    scp
    I guess..
  • y

    Yury Bushmelev

    03/17/2023, 5:57 PM
    how can I enable rsync? some key in nodeset file?
  • y

    Yury Bushmelev

    03/17/2023, 5:58 PM
    ah, I found.. it’s one of hash values.. let me check
  • s

    Slackbot

    03/17/2023, 6:03 PM
    This message was deleted.
    y
    • 2
    • 3
  • v

    VoxBot

    03/17/2023, 6:21 PM
    interesting. a customer reported the same problem this week after upgrading to pdk 2.7. I had no time yet to dig into it
  • y

    Yury Bushmelev

    03/17/2023, 6:21 PM
    I’ll tag you in thread (if you’re not there yet)
  • y

    Yury Bushmelev

    03/17/2023, 6:35 PM
    I’d expect
    rsync
    doesn’t exists in the docker image by default.. I don’t see it’s installed but going to recheck to be 100% sure
  • y

    Yury Bushmelev

    03/17/2023, 6:37 PM
    yes, there is no rsync in the ubuntu 20.04 docker image at least
  • y

    Yury Bushmelev

    03/17/2023, 6:41 PM
    Copy code
    rsync returned #<Rsync::Result:0x00007f88ec16cea8 @raw="Warning: Permanently added '[127.0.0.1]:3318' (ED25519) to the list of known hosts.\r\nbash: rsync: command not found\nrsync: connection unexpectedly closed (0 bytes received so far) [sender]\nrsync error: error in rsync protocol data stream (code 12) at /AppleInternal/Library/BuildRoots/a0876c02-1788-11ed-b9c4-96898e02b808/Library/Caches/com.apple.xbs/Sources/rsync/rsync/io.c(453) [sender=2.6.9]\n", @exitcode=12>
  • v

    VoxBot

    03/17/2023, 6:41 PM
    ah well :D
  • v

    VoxBot

    03/17/2023, 6:41 PM
    that could explain it
  • y

    Yury Bushmelev

    03/17/2023, 6:41 PM
    let me try to install it via nodeset file
  • v

    VoxBot

    03/17/2023, 6:42 PM
    you can also use host.install_package('rsync')
  • y

    Yury Bushmelev

    03/17/2023, 6:42 PM
    btw, rsync asks me for the root ssh password
  • y

    Yury Bushmelev

    03/17/2023, 6:42 PM
    it seems it cannot be used non-interactively
  • y

    Yury Bushmelev

    03/17/2023, 6:43 PM
    well.. it works now with rsync installed in the docker container via
    docker_image_commands
  • y

    Yury Bushmelev

    03/17/2023, 6:44 PM
    I think I saw the comment somewhere around that rsync cannot be used with password-enabled ssh non-interactively..
  • v

    VoxBot

    03/17/2023, 6:56 PM
    ok, so I've established that confine_block on the hypervisor doesn't work
  • v

    VoxBot

    03/17/2023, 6:57 PM
    or at least, not as I'd expect because confine_block :except, { :platform => /windows/, :hypervisor => /vagrant/ } do runs on my vagrant_libvirt setup
  • v

    VoxBot

    03/17/2023, 7:09 PM
    but confine_block :except, :hypervisor => /vagrant/ does work and so does confine_block :except, { :hypervisor => /vagrant/ }
  • v

    VoxBot

    03/17/2023, 7:11 PM
    so I'm guessing it's an except AND, not OR, which probably took me way too long to realize
  • v

    VoxBot

    03/17/2023, 7:34 PM
    I got it to complete without timing out now :D
  • v

    VoxBot

    03/17/2023, 7:38 PM
    \\o/
  • c

    Craig Gumbley

    03/17/2023, 7:48 PM
    coming in on my late pdk train (again) I love to see you discussing it here - it’s really valuable for me to read. There is certainly a divide 1. People who want to make puppet content and don’t really want to know about ruby ecosystem etc 2. Experienced ruby devs who want to manage their own ruby ecosystem + make content keep the conversation alive. Positive / negative is good.
1...370371372...648Latest