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

Task fails with no descriptive error if tar isn't installed on target host. #156

Open
benjamin-robertson opened this issue Nov 30, 2020 · 0 comments · May be fixed by #167
Open

Task fails with no descriptive error if tar isn't installed on target host. #156

benjamin-robertson opened this issue Nov 30, 2020 · 0 comments · May be fixed by #167

Comments

@benjamin-robertson
Copy link

Describe the Bug

Task fails with no descriptive error if tar isn't installed on target host.

Expected Behavior

The task should fail, but report that tar is missing from the target machine. At the moment its hard to tell why the task is failing to install Puppet.

Steps to Reproduce

Try to install on a host without tar present. For example I discovered this running against a minimal installation of Centos 8.2. This didn't have tar included by default.

Environment

  • Version 2.1.0
  • Platform [All Nix]

Additional Context

Example error from bolt when running against a host without tar.
Started on ip-172-31-18-87.ap-southeast-2.compute.internal...
Failed on ip-172-31-18-87.ap-southeast-2.compute.internal:
The task failed with exit code 1
bulk downloading plugins
extracting plugins
Failed to run install.bash
Failed on 1 target: ip-172-31-18-87.ap-southeast-2.compute.internal
Ran on 1 target in 1.35 sec

If you log on the host directly and run the install.bash located under /tmp, you receive the error.
[root@ip-172-31-18-87 tmp]# bash install.bash
bulk downloading plugins
extracting plugins
install.bash: line 477: tar: command not found

This error is not visible when running via the bolt task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant