lib/bolt_spec/run.rb
# Creates a temporary project so no settings are picked up
# WARNING: puppetdb config and orch config which do not use the project may
# still be loaded
Creates a temporary project so no settings are picked up
WARNING: puppetdb config and orch config which do not use the project may
still be loaded
Creates a temporary project so no settings are picked up WARNING : puppetdb config and orch config which do not use the project may still be loaded
def apply_manifest(code, targets, filename = nil, noop = false)
        ast = pal.parse_manifest(code, filename)
        executor = Bolt::Executor.new(config.concurrency, @analytics, noop)
        targets = inventory.get_targets(targets)
        pal.in_plan_compiler(executor, inventory, puppetdb_client) do |compiler|
          compiler.call_function('apply_prep', targets)
        end
        pal.with_bolt_executor(executor, inventory, puppetdb_client) do
          Puppet.lookup(:apply_executor).apply_ast(ast, targets, catch_errors: true, noop: noop)
        end
      end
def apply_manifest ( code , targets , filename = nil , noop = false ) ast = pal . parse_manifest ( code , filename ) executor = Bolt :: Executor . new ( config . concurrency , @analytics , noop ) targets = inventory . get_targets ( targets ) pal . in_plan_compiler ( executor , inventory , puppetdb_client ) do | compiler | compiler . call_function ( 'apply_prep' , targets ) end pal . with_bolt_executor ( executor , inventory , puppetdb_client ) do Puppet . lookup ( :apply_executor ) . apply_ast ( ast , targets , catch_errors : true , noop : noop ) end end
Creates a temporary project so no settings are picked up
WARNING: puppetdb config and orch config which do not use the project may
still be loaded
Creates a temporary project so no settings are picked up WARNING : puppetdb config and orch config which do not use the project may still be loaded
code
<not_specific>
targets
<not_specific>
filename
<not_specific>
noop
<not_specific>