Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Using hardcoded ruby path that may not exist for SFTP upload #12

@ghost

Description

We are using test-kitchen 1.4.2 to test puppet code so we have no need to install Chef, instead using a custom Ruby install for the verifier:

provisioner:
  name: puppet_apply
  require_chef_for_busser: false

verifier:
  ruby_bindir: '/opt/ruby-2.1/bin'

This means we don't have the ruby coming with chef. Since the SFTP transport is using a hardcoded path to ruby it is failing to get the checksums because that path doesn't exist. Please see:
https://github.com/coderanger/kitchen-sync/blob/master/lib/kitchen/transport/sftp.rb#L78

The error message we see is:

Message: Failed to complete #verify action: [757: unexpected token at 'bash: /opt/chef/embedded/bin/ruby: No such file or directory
']

We only see this happen on the verify step. converge seems unaffected (goes through the "fast path" logic each time).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions