413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
|
# File 'lib/puppet/application/device.rb', line 413
def setup
setup_logs
Puppet::SSL::Oids.register_puppet_oids
Puppet.settings.use :main, :agent, :device, :ssl
if options[:apply] || options[:facts] || options[:resource]
Puppet::Util::Log.newdestination(:console)
else
args[:Server] = Puppet[:server]
if options[:centrallogs]
logdest = args[:Server]
logdest += ":" + args[:Port] if args.include?(:Port)
Puppet::Util::Log.newdestination(logdest)
end
Puppet::Transaction::Report.indirection.terminus_class = :rest
if Puppet[:catalog_cache_terminus]
Puppet::Resource::Catalog.indirection.cache_class = Puppet[:catalog_cache_terminus].intern
end
end
end
|