Sha256: bec6d091abd135f8c030c6f568283b1fafd84d68e2999625e7f5dbf92a2ec231
Contents?: true
Size: 765 Bytes
Versions: 2
Compression:
Stored size: 765 Bytes
Contents
# frozen_string_literal: true module Bolt class Plugin class InstallAgent def hooks %w[puppet_library] end def name 'install_agent' end def puppet_library(_opts, target, apply_prep) install_task = apply_prep.get_task("puppet_agent::install") service_task = apply_prep.get_task("service", 'action' => 'stop', 'name' => 'puppet') proc do apply_prep.run_task([target], install_task).first apply_prep.set_agent_feature(target) apply_prep.run_task([target], service_task, 'action' => 'stop', 'name' => 'puppet').first apply_prep.run_task([target], service_task, 'action' => 'disable', 'name' => 'puppet').first end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bolt-1.30.1 | lib/bolt/plugin/install_agent.rb |
bolt-1.30.0 | lib/bolt/plugin/install_agent.rb |