Coder Social home page Coder Social logo

beaker-task_helper's People

Contributors

actowery avatar adreyer avatar barriserloth avatar beechtom avatar dependabot[bot] avatar donoghuc avatar eimlav avatar eputnam avatar genebean avatar highb avatar hunner avatar lucywyman avatar mikaelsmith avatar nicklewis avatar nmburgan avatar petems avatar pmcmaw avatar shaigy avatar smcelmurry avatar tphoney avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

beaker-task_helper's Issues

uninitialized constant Beaker::TaskHelper::Inventory::BOLT_VERSION

Describe the Bug

Hi,
with last release of the gem beaker-task_helper during acceptance tests with Beaker we are getting the message : uninitialized constant Beaker::TaskHelper::Inventory::BOLT_VERSION

Expected Behavior

No error

Steps to Reproduce

Here the acceptance tests : https://gitlab.adullact.net/adullact/puppet-freeipa/-/blob/master/spec/acceptance/02_manage_admin_spec.rb
Here the log :
https://gitlab.adullact.net/bitvijays/puppet-freeipa/-/jobs/33590#L3813

Environment

  • Version 1.8.0
  • Platform CentOS6

bolt inventory generated by task helper use deprecated format with nodes

Describe the Bug

The bolt inventory generated by task helper use deprecated format with nodes.

During acceptance tests we are getting the following message :

Bolt::Inventory::ValidationError:
Found 'nodes' key in group all. This looks like a v1 inventory file, which is
  no longer supported by Bolt. Migrate to a v2 inventory file automatically using
  'bolt project migrate'.

Expected Behavior

The inventory use new format with targets.

Steps to Reproduce

Steps to reproduce the behavior:

  1. This test https://gitlab.adullact.net/bitvijays/puppet-freeipa/-/blob/master/spec/acceptance/02_manage_admin_spec.rb
  2. Get this https://gitlab.adullact.net/bitvijays/puppet-freeipa/-/jobs/30855#L3771

Environment

  • Version 1.7.4
  • Platform CentOS 7

Additional Context

Add any other context about the problem here.

This gem does not support Windows nodes

The helper is hardcoded to not run on Windows nodes.

Linux path

on(hosts, "/opt/puppetlabs/puppet/bin/gem install --source http://rubygems.delivery.puppetlabs.net bolt -v '#{BOLT_VERSION}'", acceptable_exit_codes: [0, 1]).stdout

No WinRM protocol support

def run_bolt_task(task_name:, params: nil, password: DEFAULT_PASSWORD, host: "localhost", format: 'human')
if params.class == Hash
on(default, "/opt/puppetlabs/puppet/bin/bolt task run #{task_name} --insecure -m /etc/puppetlabs/code/modules --nodes #{host} --password #{password} --params '#{params.to_json}'", acceptable_exit_codes: [0, 1]).stdout # rubocop:disable Metrics/LineLength
else
on(default, "/opt/puppetlabs/puppet/bin/bolt task run #{task_name} --insecure -m /etc/puppetlabs/code/modules --nodes #{host} --password #{password} #{params}", acceptable_exit_codes: [0, 1]).stdout # rubocop:disable Metrics/LineLength
end
end

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.