bolt 0.24.0 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bolt might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/bolt-modules/boltlib/lib/puppet/datatypes/applyresult.rb +19 -0
- data/bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb +3 -3
- data/bolt-modules/boltlib/lib/puppet/functions/apply_prep.rb +2 -1
- data/lib/bolt/analytics.rb +0 -1
- data/lib/bolt/applicator.rb +7 -54
- data/lib/bolt/apply_result.rb +116 -0
- data/lib/bolt/outputter/human.rb +13 -8
- data/lib/bolt/pal.rb +6 -2
- data/lib/bolt/transport/ssh.rb +2 -1
- data/lib/bolt/version.rb +1 -1
- data/lib/bolt_spec/run.rb +1 -0
- data/libexec/apply_catalog.rb +25 -30
- metadata +37 -1212
- data/vendored/facter/lib/facter.rb +0 -261
- data/vendored/facter/lib/facter/Cfkey.rb +0 -42
- data/vendored/facter/lib/facter/application.rb +0 -206
- data/vendored/facter/lib/facter/architecture.rb +0 -50
- data/vendored/facter/lib/facter/augeasversion.rb +0 -28
- data/vendored/facter/lib/facter/blockdevices.rb +0 -105
- data/vendored/facter/lib/facter/core/aggregate.rb +0 -220
- data/vendored/facter/lib/facter/core/directed_graph.rb +0 -46
- data/vendored/facter/lib/facter/core/execution.rb +0 -123
- data/vendored/facter/lib/facter/core/execution/base.rb +0 -81
- data/vendored/facter/lib/facter/core/execution/posix.rb +0 -50
- data/vendored/facter/lib/facter/core/execution/windows.rb +0 -57
- data/vendored/facter/lib/facter/core/logging.rb +0 -197
- data/vendored/facter/lib/facter/core/resolvable.rb +0 -94
- data/vendored/facter/lib/facter/core/suitable.rb +0 -113
- data/vendored/facter/lib/facter/dhcp_servers.rb +0 -45
- data/vendored/facter/lib/facter/domain.rb +0 -99
- data/vendored/facter/lib/facter/ec2.rb +0 -68
- data/vendored/facter/lib/facter/ec2/rest.rb +0 -137
- data/vendored/facter/lib/facter/facterversion.rb +0 -15
- data/vendored/facter/lib/facter/filesystems.rb +0 -45
- data/vendored/facter/lib/facter/fqdn.rb +0 -24
- data/vendored/facter/lib/facter/gce.rb +0 -16
- data/vendored/facter/lib/facter/gce/metadata.rb +0 -87
- data/vendored/facter/lib/facter/gid.rb +0 -25
- data/vendored/facter/lib/facter/hardwareisa.rb +0 -20
- data/vendored/facter/lib/facter/hardwaremodel.rb +0 -67
- data/vendored/facter/lib/facter/hostname.rb +0 -31
- data/vendored/facter/lib/facter/id.rb +0 -21
- data/vendored/facter/lib/facter/interfaces.rb +0 -58
- data/vendored/facter/lib/facter/ipaddress.rb +0 -169
- data/vendored/facter/lib/facter/ipaddress6.rb +0 -82
- data/vendored/facter/lib/facter/iphostnumber.rb +0 -29
- data/vendored/facter/lib/facter/kernel.rb +0 -22
- data/vendored/facter/lib/facter/kernelmajversion.rb +0 -23
- data/vendored/facter/lib/facter/kernelrelease.rb +0 -45
- data/vendored/facter/lib/facter/kernelversion.rb +0 -22
- data/vendored/facter/lib/facter/ldom.rb +0 -51
- data/vendored/facter/lib/facter/lsbdistcodename.rb +0 -20
- data/vendored/facter/lib/facter/lsbdistdescription.rb +0 -21
- data/vendored/facter/lib/facter/lsbdistid.rb +0 -20
- data/vendored/facter/lib/facter/lsbdistrelease.rb +0 -20
- data/vendored/facter/lib/facter/lsbmajdistrelease.rb +0 -22
- data/vendored/facter/lib/facter/lsbminordistrelease.rb +0 -22
- data/vendored/facter/lib/facter/lsbrelease.rb +0 -20
- data/vendored/facter/lib/facter/macaddress.rb +0 -99
- data/vendored/facter/lib/facter/macosx.rb +0 -56
- data/vendored/facter/lib/facter/manufacturer.rb +0 -68
- data/vendored/facter/lib/facter/memory.rb +0 -168
- data/vendored/facter/lib/facter/netmask.rb +0 -43
- data/vendored/facter/lib/facter/network.rb +0 -20
- data/vendored/facter/lib/facter/operatingsystem.rb +0 -24
- data/vendored/facter/lib/facter/operatingsystem/base.rb +0 -61
- data/vendored/facter/lib/facter/operatingsystem/cumuluslinux.rb +0 -27
- data/vendored/facter/lib/facter/operatingsystem/implementation.rb +0 -33
- data/vendored/facter/lib/facter/operatingsystem/linux.rb +0 -484
- data/vendored/facter/lib/facter/operatingsystem/osreleaselinux.rb +0 -28
- data/vendored/facter/lib/facter/operatingsystem/sunos.rb +0 -54
- data/vendored/facter/lib/facter/operatingsystem/vmkernel.rb +0 -11
- data/vendored/facter/lib/facter/operatingsystem/windows.rb +0 -43
- data/vendored/facter/lib/facter/operatingsystemmajrelease.rb +0 -31
- data/vendored/facter/lib/facter/operatingsystemrelease.rb +0 -29
- data/vendored/facter/lib/facter/os.rb +0 -98
- data/vendored/facter/lib/facter/osfamily.rb +0 -18
- data/vendored/facter/lib/facter/partitions.rb +0 -39
- data/vendored/facter/lib/facter/path.rb +0 -14
- data/vendored/facter/lib/facter/physicalprocessorcount.rb +0 -27
- data/vendored/facter/lib/facter/processor.rb +0 -52
- data/vendored/facter/lib/facter/processors.rb +0 -66
- data/vendored/facter/lib/facter/processors/os.rb +0 -244
- data/vendored/facter/lib/facter/ps.rb +0 -31
- data/vendored/facter/lib/facter/puppetversion.rb +0 -20
- data/vendored/facter/lib/facter/rackspace.rb +0 -37
- data/vendored/facter/lib/facter/rubyplatform.rb +0 -12
- data/vendored/facter/lib/facter/rubysitedir.rb +0 -15
- data/vendored/facter/lib/facter/rubyversion.rb +0 -12
- data/vendored/facter/lib/facter/selinux.rb +0 -154
- data/vendored/facter/lib/facter/ssh.rb +0 -73
- data/vendored/facter/lib/facter/system32.rb +0 -21
- data/vendored/facter/lib/facter/system_uptime.rb +0 -44
- data/vendored/facter/lib/facter/timezone.rb +0 -14
- data/vendored/facter/lib/facter/uniqueid.rb +0 -4
- data/vendored/facter/lib/facter/uptime.rb +0 -16
- data/vendored/facter/lib/facter/uptime_days.rb +0 -13
- data/vendored/facter/lib/facter/uptime_hours.rb +0 -13
- data/vendored/facter/lib/facter/uptime_seconds.rb +0 -20
- data/vendored/facter/lib/facter/util/architecture.rb +0 -19
- data/vendored/facter/lib/facter/util/collection.rb +0 -161
- data/vendored/facter/lib/facter/util/composite_loader.rb +0 -12
- data/vendored/facter/lib/facter/util/config.rb +0 -88
- data/vendored/facter/lib/facter/util/confine.rb +0 -66
- data/vendored/facter/lib/facter/util/dhcp_servers.rb +0 -58
- data/vendored/facter/lib/facter/util/directory_loader.rb +0 -88
- data/vendored/facter/lib/facter/util/ec2.rb +0 -106
- data/vendored/facter/lib/facter/util/fact.rb +0 -204
- data/vendored/facter/lib/facter/util/file_read.rb +0 -37
- data/vendored/facter/lib/facter/util/formatter.rb +0 -39
- data/vendored/facter/lib/facter/util/ip.rb +0 -340
- data/vendored/facter/lib/facter/util/ip/windows.rb +0 -215
- data/vendored/facter/lib/facter/util/loader.rb +0 -155
- data/vendored/facter/lib/facter/util/macaddress.rb +0 -43
- data/vendored/facter/lib/facter/util/macosx.rb +0 -73
- data/vendored/facter/lib/facter/util/manufacturer.rb +0 -99
- data/vendored/facter/lib/facter/util/memory.rb +0 -228
- data/vendored/facter/lib/facter/util/netmask.rb +0 -40
- data/vendored/facter/lib/facter/util/normalization.rb +0 -94
- data/vendored/facter/lib/facter/util/nothing_loader.rb +0 -12
- data/vendored/facter/lib/facter/util/operatingsystem.rb +0 -21
- data/vendored/facter/lib/facter/util/parser.rb +0 -168
- data/vendored/facter/lib/facter/util/partitions.rb +0 -47
- data/vendored/facter/lib/facter/util/partitions/linux.rb +0 -71
- data/vendored/facter/lib/facter/util/partitions/openbsd.rb +0 -40
- data/vendored/facter/lib/facter/util/plist.rb +0 -24
- data/vendored/facter/lib/facter/util/plist/generator.rb +0 -228
- data/vendored/facter/lib/facter/util/plist/parser.rb +0 -226
- data/vendored/facter/lib/facter/util/posix.rb +0 -16
- data/vendored/facter/lib/facter/util/processor.rb +0 -289
- data/vendored/facter/lib/facter/util/registry.rb +0 -11
- data/vendored/facter/lib/facter/util/resolution.rb +0 -160
- data/vendored/facter/lib/facter/util/solaris_zones.rb +0 -158
- data/vendored/facter/lib/facter/util/unix_root.rb +0 -5
- data/vendored/facter/lib/facter/util/uptime.rb +0 -83
- data/vendored/facter/lib/facter/util/values.rb +0 -109
- data/vendored/facter/lib/facter/util/virtual.rb +0 -212
- data/vendored/facter/lib/facter/util/vlans.rb +0 -21
- data/vendored/facter/lib/facter/util/windows.rb +0 -10
- data/vendored/facter/lib/facter/util/windows/api_types.rb +0 -135
- data/vendored/facter/lib/facter/util/windows/dir.rb +0 -43
- data/vendored/facter/lib/facter/util/windows/error.rb +0 -87
- data/vendored/facter/lib/facter/util/windows/process.rb +0 -294
- data/vendored/facter/lib/facter/util/windows/user.rb +0 -186
- data/vendored/facter/lib/facter/util/windows_root.rb +0 -7
- data/vendored/facter/lib/facter/util/wmi.rb +0 -49
- data/vendored/facter/lib/facter/util/xendomains.rb +0 -28
- data/vendored/facter/lib/facter/version.rb +0 -86
- data/vendored/facter/lib/facter/virtual.rb +0 -330
- data/vendored/facter/lib/facter/vlans.rb +0 -17
- data/vendored/facter/lib/facter/xendomains.rb +0 -20
- data/vendored/facter/lib/facter/zfs_version.rb +0 -14
- data/vendored/facter/lib/facter/zonename.rb +0 -6
- data/vendored/facter/lib/facter/zones.rb +0 -18
- data/vendored/facter/lib/facter/zpool_version.rb +0 -10
- data/vendored/hiera/lib/hiera.rb +0 -119
- data/vendored/hiera/lib/hiera/backend.rb +0 -360
- data/vendored/hiera/lib/hiera/backend/json_backend.rb +0 -58
- data/vendored/hiera/lib/hiera/backend/yaml_backend.rb +0 -63
- data/vendored/hiera/lib/hiera/config.rb +0 -97
- data/vendored/hiera/lib/hiera/console_logger.rb +0 -13
- data/vendored/hiera/lib/hiera/error.rb +0 -4
- data/vendored/hiera/lib/hiera/fallback_logger.rb +0 -41
- data/vendored/hiera/lib/hiera/filecache.rb +0 -86
- data/vendored/hiera/lib/hiera/interpolate.rb +0 -121
- data/vendored/hiera/lib/hiera/noop_logger.rb +0 -8
- data/vendored/hiera/lib/hiera/puppet_logger.rb +0 -17
- data/vendored/hiera/lib/hiera/recursive_guard.rb +0 -20
- data/vendored/hiera/lib/hiera/util.rb +0 -65
- data/vendored/hiera/lib/hiera/util/win32.rb +0 -40
- data/vendored/hiera/lib/hiera/version.rb +0 -89
- data/vendored/puppet/lib/hiera/puppet_function.rb +0 -84
- data/vendored/puppet/lib/hiera/scope.rb +0 -83
- data/vendored/puppet/lib/hiera_puppet.rb +0 -79
- data/vendored/puppet/lib/puppet.rb +0 -299
- data/vendored/puppet/lib/puppet/agent.rb +0 -134
- data/vendored/puppet/lib/puppet/agent/disabler.rb +0 -53
- data/vendored/puppet/lib/puppet/agent/locker.rb +0 -53
- data/vendored/puppet/lib/puppet/application.rb +0 -509
- data/vendored/puppet/lib/puppet/application/agent.rb +0 -469
- data/vendored/puppet/lib/puppet/application/apply.rb +0 -407
- data/vendored/puppet/lib/puppet/application/catalog.rb +0 -4
- data/vendored/puppet/lib/puppet/application/cert.rb +0 -76
- data/vendored/puppet/lib/puppet/application/config.rb +0 -5
- data/vendored/puppet/lib/puppet/application/describe.rb +0 -257
- data/vendored/puppet/lib/puppet/application/device.rb +0 -386
- data/vendored/puppet/lib/puppet/application/doc.rb +0 -232
- data/vendored/puppet/lib/puppet/application/epp.rb +0 -5
- data/vendored/puppet/lib/puppet/application/face_base.rb +0 -268
- data/vendored/puppet/lib/puppet/application/facts.rb +0 -9
- data/vendored/puppet/lib/puppet/application/filebucket.rb +0 -300
- data/vendored/puppet/lib/puppet/application/generate.rb +0 -5
- data/vendored/puppet/lib/puppet/application/help.rb +0 -5
- data/vendored/puppet/lib/puppet/application/indirection_base.rb +0 -4
- data/vendored/puppet/lib/puppet/application/key.rb +0 -4
- data/vendored/puppet/lib/puppet/application/lookup.rb +0 -369
- data/vendored/puppet/lib/puppet/application/man.rb +0 -4
- data/vendored/puppet/lib/puppet/application/module.rb +0 -4
- data/vendored/puppet/lib/puppet/application/node.rb +0 -4
- data/vendored/puppet/lib/puppet/application/parser.rb +0 -5
- data/vendored/puppet/lib/puppet/application/plugin.rb +0 -3
- data/vendored/puppet/lib/puppet/application/report.rb +0 -4
- data/vendored/puppet/lib/puppet/application/resource.rb +0 -231
- data/vendored/puppet/lib/puppet/application/script.rb +0 -261
- data/vendored/puppet/lib/puppet/application/ssl.rb +0 -133
- data/vendored/puppet/lib/puppet/application/status.rb +0 -4
- data/vendored/puppet/lib/puppet/application_support.rb +0 -61
- data/vendored/puppet/lib/puppet/coercion.rb +0 -40
- data/vendored/puppet/lib/puppet/compilable_resource_type.rb +0 -15
- data/vendored/puppet/lib/puppet/configurer.rb +0 -484
- data/vendored/puppet/lib/puppet/configurer/downloader.rb +0 -67
- data/vendored/puppet/lib/puppet/configurer/fact_handler.rb +0 -50
- data/vendored/puppet/lib/puppet/configurer/plugin_handler.rb +0 -48
- data/vendored/puppet/lib/puppet/confine.rb +0 -83
- data/vendored/puppet/lib/puppet/confine/any.rb +0 -26
- data/vendored/puppet/lib/puppet/confine/exists.rb +0 -19
- data/vendored/puppet/lib/puppet/confine/false.rb +0 -19
- data/vendored/puppet/lib/puppet/confine/feature.rb +0 -17
- data/vendored/puppet/lib/puppet/confine/true.rb +0 -20
- data/vendored/puppet/lib/puppet/confine/variable.rb +0 -59
- data/vendored/puppet/lib/puppet/confine_collection.rb +0 -50
- data/vendored/puppet/lib/puppet/confiner.rb +0 -46
- data/vendored/puppet/lib/puppet/context.rb +0 -116
- data/vendored/puppet/lib/puppet/context/trusted_information.rb +0 -76
- data/vendored/puppet/lib/puppet/daemon.rb +0 -195
- data/vendored/puppet/lib/puppet/data_binding.rb +0 -14
- data/vendored/puppet/lib/puppet/datatypes.rb +0 -213
- data/vendored/puppet/lib/puppet/datatypes/error.rb +0 -21
- data/vendored/puppet/lib/puppet/datatypes/impl/error.rb +0 -40
- data/vendored/puppet/lib/puppet/defaults.rb +0 -2003
- data/vendored/puppet/lib/puppet/environments.rb +0 -505
- data/vendored/puppet/lib/puppet/error.rb +0 -117
- data/vendored/puppet/lib/puppet/etc.rb +0 -160
- data/vendored/puppet/lib/puppet/external/dot.rb +0 -325
- data/vendored/puppet/lib/puppet/external/pson/common.rb +0 -374
- data/vendored/puppet/lib/puppet/external/pson/pure.rb +0 -15
- data/vendored/puppet/lib/puppet/external/pson/pure/generator.rb +0 -395
- data/vendored/puppet/lib/puppet/external/pson/pure/parser.rb +0 -307
- data/vendored/puppet/lib/puppet/external/pson/version.rb +0 -8
- data/vendored/puppet/lib/puppet/face.rb +0 -12
- data/vendored/puppet/lib/puppet/face/catalog.rb +0 -130
- data/vendored/puppet/lib/puppet/face/catalog/select.rb +0 -49
- data/vendored/puppet/lib/puppet/face/config.rb +0 -265
- data/vendored/puppet/lib/puppet/face/epp.rb +0 -554
- data/vendored/puppet/lib/puppet/face/facts.rb +0 -87
- data/vendored/puppet/lib/puppet/face/generate.rb +0 -64
- data/vendored/puppet/lib/puppet/face/help.rb +0 -215
- data/vendored/puppet/lib/puppet/face/key.rb +0 -16
- data/vendored/puppet/lib/puppet/face/man.rb +0 -145
- data/vendored/puppet/lib/puppet/face/module.rb +0 -19
- data/vendored/puppet/lib/puppet/face/module/build.rb +0 -14
- data/vendored/puppet/lib/puppet/face/module/changes.rb +0 -42
- data/vendored/puppet/lib/puppet/face/module/generate.rb +0 -14
- data/vendored/puppet/lib/puppet/face/module/install.rb +0 -146
- data/vendored/puppet/lib/puppet/face/module/list.rb +0 -263
- data/vendored/puppet/lib/puppet/face/module/search.rb +0 -98
- data/vendored/puppet/lib/puppet/face/module/uninstall.rb +0 -89
- data/vendored/puppet/lib/puppet/face/module/upgrade.rb +0 -87
- data/vendored/puppet/lib/puppet/face/node.rb +0 -43
- data/vendored/puppet/lib/puppet/face/node/clean.rb +0 -100
- data/vendored/puppet/lib/puppet/face/parser.rb +0 -187
- data/vendored/puppet/lib/puppet/face/plugin.rb +0 -56
- data/vendored/puppet/lib/puppet/face/report.rb +0 -54
- data/vendored/puppet/lib/puppet/face/resource.rb +0 -53
- data/vendored/puppet/lib/puppet/face/status.rb +0 -51
- data/vendored/puppet/lib/puppet/feature/base.rb +0 -76
- data/vendored/puppet/lib/puppet/feature/bolt.rb +0 -3
- data/vendored/puppet/lib/puppet/feature/cfpropertylist.rb +0 -3
- data/vendored/puppet/lib/puppet/feature/eventlog.rb +0 -5
- data/vendored/puppet/lib/puppet/feature/hiera_eyaml.rb +0 -3
- data/vendored/puppet/lib/puppet/feature/hocon.rb +0 -3
- data/vendored/puppet/lib/puppet/feature/libuser.rb +0 -8
- data/vendored/puppet/lib/puppet/feature/msgpack.rb +0 -3
- data/vendored/puppet/lib/puppet/feature/pe_license.rb +0 -4
- data/vendored/puppet/lib/puppet/feature/selinux.rb +0 -3
- data/vendored/puppet/lib/puppet/feature/ssh.rb +0 -3
- data/vendored/puppet/lib/puppet/feature/telnet.rb +0 -9
- data/vendored/puppet/lib/puppet/feature/zlib.rb +0 -5
- data/vendored/puppet/lib/puppet/file_bucket.rb +0 -4
- data/vendored/puppet/lib/puppet/file_bucket/dipper.rb +0 -173
- data/vendored/puppet/lib/puppet/file_bucket/file.rb +0 -129
- data/vendored/puppet/lib/puppet/file_serving.rb +0 -3
- data/vendored/puppet/lib/puppet/file_serving/base.rb +0 -86
- data/vendored/puppet/lib/puppet/file_serving/configuration.rb +0 -115
- data/vendored/puppet/lib/puppet/file_serving/configuration/parser.rb +0 -137
- data/vendored/puppet/lib/puppet/file_serving/content.rb +0 -43
- data/vendored/puppet/lib/puppet/file_serving/fileset.rb +0 -174
- data/vendored/puppet/lib/puppet/file_serving/http_metadata.rb +0 -46
- data/vendored/puppet/lib/puppet/file_serving/metadata.rb +0 -164
- data/vendored/puppet/lib/puppet/file_serving/mount.rb +0 -39
- data/vendored/puppet/lib/puppet/file_serving/mount/file.rb +0 -121
- data/vendored/puppet/lib/puppet/file_serving/mount/locales.rb +0 -35
- data/vendored/puppet/lib/puppet/file_serving/mount/modules.rb +0 -24
- data/vendored/puppet/lib/puppet/file_serving/mount/pluginfacts.rb +0 -35
- data/vendored/puppet/lib/puppet/file_serving/mount/plugins.rb +0 -35
- data/vendored/puppet/lib/puppet/file_serving/mount/tasks.rb +0 -21
- data/vendored/puppet/lib/puppet/file_serving/terminus_helper.rb +0 -31
- data/vendored/puppet/lib/puppet/file_serving/terminus_selector.rb +0 -32
- data/vendored/puppet/lib/puppet/file_system.rb +0 -404
- data/vendored/puppet/lib/puppet/file_system/file_impl.rb +0 -154
- data/vendored/puppet/lib/puppet/file_system/memory_file.rb +0 -66
- data/vendored/puppet/lib/puppet/file_system/memory_impl.rb +0 -86
- data/vendored/puppet/lib/puppet/file_system/path_pattern.rb +0 -98
- data/vendored/puppet/lib/puppet/file_system/posix.rb +0 -46
- data/vendored/puppet/lib/puppet/file_system/uniquefile.rb +0 -190
- data/vendored/puppet/lib/puppet/file_system/windows.rb +0 -130
- data/vendored/puppet/lib/puppet/forge.rb +0 -241
- data/vendored/puppet/lib/puppet/forge/cache.rb +0 -60
- data/vendored/puppet/lib/puppet/forge/errors.rb +0 -114
- data/vendored/puppet/lib/puppet/forge/repository.rb +0 -155
- data/vendored/puppet/lib/puppet/functions.rb +0 -863
- data/vendored/puppet/lib/puppet/functions/abs.rb +0 -61
- data/vendored/puppet/lib/puppet/functions/alert.rb +0 -14
- data/vendored/puppet/lib/puppet/functions/all.rb +0 -104
- data/vendored/puppet/lib/puppet/functions/annotate.rb +0 -108
- data/vendored/puppet/lib/puppet/functions/any.rb +0 -109
- data/vendored/puppet/lib/puppet/functions/assert_type.rb +0 -93
- data/vendored/puppet/lib/puppet/functions/binary_file.rb +0 -32
- data/vendored/puppet/lib/puppet/functions/break.rb +0 -47
- data/vendored/puppet/lib/puppet/functions/call.rb +0 -79
- data/vendored/puppet/lib/puppet/functions/camelcase.rb +0 -62
- data/vendored/puppet/lib/puppet/functions/capitalize.rb +0 -61
- data/vendored/puppet/lib/puppet/functions/ceiling.rb +0 -37
- data/vendored/puppet/lib/puppet/functions/chomp.rb +0 -57
- data/vendored/puppet/lib/puppet/functions/chop.rb +0 -67
- data/vendored/puppet/lib/puppet/functions/compare.rb +0 -125
- data/vendored/puppet/lib/puppet/functions/contain.rb +0 -55
- data/vendored/puppet/lib/puppet/functions/convert_to.rb +0 -34
- data/vendored/puppet/lib/puppet/functions/crit.rb +0 -14
- data/vendored/puppet/lib/puppet/functions/debug.rb +0 -14
- data/vendored/puppet/lib/puppet/functions/defined.rb +0 -159
- data/vendored/puppet/lib/puppet/functions/dig.rb +0 -67
- data/vendored/puppet/lib/puppet/functions/downcase.rb +0 -89
- data/vendored/puppet/lib/puppet/functions/each.rb +0 -169
- data/vendored/puppet/lib/puppet/functions/emerg.rb +0 -14
- data/vendored/puppet/lib/puppet/functions/empty.rb +0 -77
- data/vendored/puppet/lib/puppet/functions/epp.rb +0 -48
- data/vendored/puppet/lib/puppet/functions/err.rb +0 -14
- data/vendored/puppet/lib/puppet/functions/eyaml_lookup_key.rb +0 -97
- data/vendored/puppet/lib/puppet/functions/filter.rb +0 -144
- data/vendored/puppet/lib/puppet/functions/find_file.rb +0 -44
- data/vendored/puppet/lib/puppet/functions/flatten.rb +0 -64
- data/vendored/puppet/lib/puppet/functions/floor.rb +0 -37
- data/vendored/puppet/lib/puppet/functions/get.rb +0 -150
- data/vendored/puppet/lib/puppet/functions/getvar.rb +0 -87
- data/vendored/puppet/lib/puppet/functions/hiera.rb +0 -88
- data/vendored/puppet/lib/puppet/functions/hiera_array.rb +0 -81
- data/vendored/puppet/lib/puppet/functions/hiera_hash.rb +0 -92
- data/vendored/puppet/lib/puppet/functions/hiera_include.rb +0 -104
- data/vendored/puppet/lib/puppet/functions/hocon_data.rb +0 -41
- data/vendored/puppet/lib/puppet/functions/import.rb +0 -7
- data/vendored/puppet/lib/puppet/functions/include.rb +0 -53
- data/vendored/puppet/lib/puppet/functions/info.rb +0 -14
- data/vendored/puppet/lib/puppet/functions/inline_epp.rb +0 -59
- data/vendored/puppet/lib/puppet/functions/join.rb +0 -56
- data/vendored/puppet/lib/puppet/functions/json_data.rb +0 -33
- data/vendored/puppet/lib/puppet/functions/keys.rb +0 -25
- data/vendored/puppet/lib/puppet/functions/length.rb +0 -44
- data/vendored/puppet/lib/puppet/functions/lest.rb +0 -55
- data/vendored/puppet/lib/puppet/functions/lookup.rb +0 -224
- data/vendored/puppet/lib/puppet/functions/lstrip.rb +0 -58
- data/vendored/puppet/lib/puppet/functions/map.rb +0 -136
- data/vendored/puppet/lib/puppet/functions/match.rb +0 -131
- data/vendored/puppet/lib/puppet/functions/max.rb +0 -183
- data/vendored/puppet/lib/puppet/functions/min.rb +0 -182
- data/vendored/puppet/lib/puppet/functions/module_directory.rb +0 -41
- data/vendored/puppet/lib/puppet/functions/new.rb +0 -1006
- data/vendored/puppet/lib/puppet/functions/next.rb +0 -16
- data/vendored/puppet/lib/puppet/functions/notice.rb +0 -14
- data/vendored/puppet/lib/puppet/functions/reduce.rb +0 -164
- data/vendored/puppet/lib/puppet/functions/regsubst.rb +0 -82
- data/vendored/puppet/lib/puppet/functions/require.rb +0 -77
- data/vendored/puppet/lib/puppet/functions/return.rb +0 -15
- data/vendored/puppet/lib/puppet/functions/reverse_each.rb +0 -94
- data/vendored/puppet/lib/puppet/functions/round.rb +0 -24
- data/vendored/puppet/lib/puppet/functions/rstrip.rb +0 -58
- data/vendored/puppet/lib/puppet/functions/scanf.rb +0 -44
- data/vendored/puppet/lib/puppet/functions/size.rb +0 -15
- data/vendored/puppet/lib/puppet/functions/slice.rb +0 -124
- data/vendored/puppet/lib/puppet/functions/sort.rb +0 -74
- data/vendored/puppet/lib/puppet/functions/split.rb +0 -49
- data/vendored/puppet/lib/puppet/functions/step.rb +0 -98
- data/vendored/puppet/lib/puppet/functions/strftime.rb +0 -211
- data/vendored/puppet/lib/puppet/functions/strip.rb +0 -58
- data/vendored/puppet/lib/puppet/functions/then.rb +0 -77
- data/vendored/puppet/lib/puppet/functions/tree_each.rb +0 -200
- data/vendored/puppet/lib/puppet/functions/type.rb +0 -72
- data/vendored/puppet/lib/puppet/functions/unique.rb +0 -132
- data/vendored/puppet/lib/puppet/functions/unwrap.rb +0 -44
- data/vendored/puppet/lib/puppet/functions/upcase.rb +0 -89
- data/vendored/puppet/lib/puppet/functions/values.rb +0 -25
- data/vendored/puppet/lib/puppet/functions/versioncmp.rb +0 -36
- data/vendored/puppet/lib/puppet/functions/warning.rb +0 -14
- data/vendored/puppet/lib/puppet/functions/with.rb +0 -32
- data/vendored/puppet/lib/puppet/functions/yaml_data.rb +0 -43
- data/vendored/puppet/lib/puppet/generate/models/type/property.rb +0 -70
- data/vendored/puppet/lib/puppet/generate/models/type/type.rb +0 -62
- data/vendored/puppet/lib/puppet/generate/type.rb +0 -239
- data/vendored/puppet/lib/puppet/gettext/config.rb +0 -275
- data/vendored/puppet/lib/puppet/gettext/module_translations.rb +0 -42
- data/vendored/puppet/lib/puppet/gettext/stubs.rb +0 -11
- data/vendored/puppet/lib/puppet/graph.rb +0 -9
- data/vendored/puppet/lib/puppet/graph/key.rb +0 -26
- data/vendored/puppet/lib/puppet/graph/prioritizer.rb +0 -29
- data/vendored/puppet/lib/puppet/graph/rb_tree_map.rb +0 -388
- data/vendored/puppet/lib/puppet/graph/relationship_graph.rb +0 -283
- data/vendored/puppet/lib/puppet/graph/sequential_prioritizer.rb +0 -31
- data/vendored/puppet/lib/puppet/graph/simple_graph.rb +0 -543
- data/vendored/puppet/lib/puppet/indirector.rb +0 -61
- data/vendored/puppet/lib/puppet/indirector/catalog/compiler.rb +0 -416
- data/vendored/puppet/lib/puppet/indirector/catalog/json.rb +0 -35
- data/vendored/puppet/lib/puppet/indirector/catalog/msgpack.rb +0 -6
- data/vendored/puppet/lib/puppet/indirector/catalog/rest.rb +0 -6
- data/vendored/puppet/lib/puppet/indirector/catalog/store_configs.rb +0 -8
- data/vendored/puppet/lib/puppet/indirector/catalog/yaml.rb +0 -6
- data/vendored/puppet/lib/puppet/indirector/certificate/file.rb +0 -8
- data/vendored/puppet/lib/puppet/indirector/certificate/rest.rb +0 -16
- data/vendored/puppet/lib/puppet/indirector/certificate_request/file.rb +0 -8
- data/vendored/puppet/lib/puppet/indirector/certificate_request/memory.rb +0 -6
- data/vendored/puppet/lib/puppet/indirector/certificate_request/rest.rb +0 -10
- data/vendored/puppet/lib/puppet/indirector/code.rb +0 -6
- data/vendored/puppet/lib/puppet/indirector/data_binding/hiera.rb +0 -7
- data/vendored/puppet/lib/puppet/indirector/data_binding/none.rb +0 -8
- data/vendored/puppet/lib/puppet/indirector/direct_file_server.rb +0 -17
- data/vendored/puppet/lib/puppet/indirector/envelope.rb +0 -11
- data/vendored/puppet/lib/puppet/indirector/errors.rb +0 -5
- data/vendored/puppet/lib/puppet/indirector/exec.rb +0 -38
- data/vendored/puppet/lib/puppet/indirector/face.rb +0 -153
- data/vendored/puppet/lib/puppet/indirector/facts/facter.rb +0 -88
- data/vendored/puppet/lib/puppet/indirector/facts/memory.rb +0 -9
- data/vendored/puppet/lib/puppet/indirector/facts/network_device.rb +0 -27
- data/vendored/puppet/lib/puppet/indirector/facts/rest.rb +0 -21
- data/vendored/puppet/lib/puppet/indirector/facts/store_configs.rb +0 -11
- data/vendored/puppet/lib/puppet/indirector/facts/yaml.rb +0 -84
- data/vendored/puppet/lib/puppet/indirector/file_bucket_file/file.rb +0 -262
- data/vendored/puppet/lib/puppet/indirector/file_bucket_file/rest.rb +0 -8
- data/vendored/puppet/lib/puppet/indirector/file_bucket_file/selector.rb +0 -53
- data/vendored/puppet/lib/puppet/indirector/file_content.rb +0 -5
- data/vendored/puppet/lib/puppet/indirector/file_content/file.rb +0 -7
- data/vendored/puppet/lib/puppet/indirector/file_content/file_server.rb +0 -7
- data/vendored/puppet/lib/puppet/indirector/file_content/http.rb +0 -17
- data/vendored/puppet/lib/puppet/indirector/file_content/rest.rb +0 -9
- data/vendored/puppet/lib/puppet/indirector/file_content/selector.rb +0 -30
- data/vendored/puppet/lib/puppet/indirector/file_metadata.rb +0 -5
- data/vendored/puppet/lib/puppet/indirector/file_metadata/file.rb +0 -7
- data/vendored/puppet/lib/puppet/indirector/file_metadata/file_server.rb +0 -7
- data/vendored/puppet/lib/puppet/indirector/file_metadata/http.rb +0 -27
- data/vendored/puppet/lib/puppet/indirector/file_metadata/rest.rb +0 -9
- data/vendored/puppet/lib/puppet/indirector/file_metadata/selector.rb +0 -30
- data/vendored/puppet/lib/puppet/indirector/file_server.rb +0 -59
- data/vendored/puppet/lib/puppet/indirector/generic_http.rb +0 -16
- data/vendored/puppet/lib/puppet/indirector/hiera.rb +0 -94
- data/vendored/puppet/lib/puppet/indirector/indirection.rb +0 -340
- data/vendored/puppet/lib/puppet/indirector/json.rb +0 -75
- data/vendored/puppet/lib/puppet/indirector/key/file.rb +0 -45
- data/vendored/puppet/lib/puppet/indirector/key/memory.rb +0 -6
- data/vendored/puppet/lib/puppet/indirector/memory.rb +0 -34
- data/vendored/puppet/lib/puppet/indirector/msgpack.rb +0 -83
- data/vendored/puppet/lib/puppet/indirector/node/exec.rb +0 -69
- data/vendored/puppet/lib/puppet/indirector/node/memory.rb +0 -10
- data/vendored/puppet/lib/puppet/indirector/node/msgpack.rb +0 -7
- data/vendored/puppet/lib/puppet/indirector/node/plain.rb +0 -21
- data/vendored/puppet/lib/puppet/indirector/node/rest.rb +0 -7
- data/vendored/puppet/lib/puppet/indirector/node/store_configs.rb +0 -8
- data/vendored/puppet/lib/puppet/indirector/node/yaml.rb +0 -7
- data/vendored/puppet/lib/puppet/indirector/none.rb +0 -9
- data/vendored/puppet/lib/puppet/indirector/plain.rb +0 -9
- data/vendored/puppet/lib/puppet/indirector/report/msgpack.rb +0 -11
- data/vendored/puppet/lib/puppet/indirector/report/processor.rb +0 -59
- data/vendored/puppet/lib/puppet/indirector/report/rest.rb +0 -28
- data/vendored/puppet/lib/puppet/indirector/report/yaml.rb +0 -11
- data/vendored/puppet/lib/puppet/indirector/request.rb +0 -278
- data/vendored/puppet/lib/puppet/indirector/resource/ral.rb +0 -63
- data/vendored/puppet/lib/puppet/indirector/resource/store_configs.rb +0 -12
- data/vendored/puppet/lib/puppet/indirector/resource/validator.rb +0 -8
- data/vendored/puppet/lib/puppet/indirector/rest.rb +0 -301
- data/vendored/puppet/lib/puppet/indirector/ssl_file.rb +0 -160
- data/vendored/puppet/lib/puppet/indirector/status.rb +0 -3
- data/vendored/puppet/lib/puppet/indirector/status/local.rb +0 -12
- data/vendored/puppet/lib/puppet/indirector/status/rest.rb +0 -9
- data/vendored/puppet/lib/puppet/indirector/store_configs.rb +0 -30
- data/vendored/puppet/lib/puppet/indirector/terminus.rb +0 -169
- data/vendored/puppet/lib/puppet/indirector/yaml.rb +0 -63
- data/vendored/puppet/lib/puppet/info_service.rb +0 -17
- data/vendored/puppet/lib/puppet/info_service/class_information_service.rb +0 -110
- data/vendored/puppet/lib/puppet/info_service/task_information_service.rb +0 -36
- data/vendored/puppet/lib/puppet/interface.rb +0 -237
- data/vendored/puppet/lib/puppet/interface/action.rb +0 -399
- data/vendored/puppet/lib/puppet/interface/action_builder.rb +0 -166
- data/vendored/puppet/lib/puppet/interface/action_manager.rb +0 -97
- data/vendored/puppet/lib/puppet/interface/documentation.rb +0 -353
- data/vendored/puppet/lib/puppet/interface/face_collection.rb +0 -134
- data/vendored/puppet/lib/puppet/interface/option.rb +0 -171
- data/vendored/puppet/lib/puppet/interface/option_builder.rb +0 -105
- data/vendored/puppet/lib/puppet/interface/option_manager.rb +0 -104
- data/vendored/puppet/lib/puppet/loaders.rb +0 -28
- data/vendored/puppet/lib/puppet/metatype/manager.rb +0 -197
- data/vendored/puppet/lib/puppet/module.rb +0 -441
- data/vendored/puppet/lib/puppet/module/task.rb +0 -258
- data/vendored/puppet/lib/puppet/module_tool.rb +0 -193
- data/vendored/puppet/lib/puppet/module_tool/applications.rb +0 -13
- data/vendored/puppet/lib/puppet/module_tool/applications/application.rb +0 -90
- data/vendored/puppet/lib/puppet/module_tool/applications/checksummer.rb +0 -62
- data/vendored/puppet/lib/puppet/module_tool/applications/installer.rb +0 -354
- data/vendored/puppet/lib/puppet/module_tool/applications/searcher.rb +0 -29
- data/vendored/puppet/lib/puppet/module_tool/applications/uninstaller.rb +0 -120
- data/vendored/puppet/lib/puppet/module_tool/applications/unpacker.rb +0 -100
- data/vendored/puppet/lib/puppet/module_tool/applications/upgrader.rb +0 -280
- data/vendored/puppet/lib/puppet/module_tool/checksums.rb +0 -49
- data/vendored/puppet/lib/puppet/module_tool/contents_description.rb +0 -88
- data/vendored/puppet/lib/puppet/module_tool/dependency.rb +0 -41
- data/vendored/puppet/lib/puppet/module_tool/errors.rb +0 -11
- data/vendored/puppet/lib/puppet/module_tool/errors/base.rb +0 -15
- data/vendored/puppet/lib/puppet/module_tool/errors/installer.rb +0 -93
- data/vendored/puppet/lib/puppet/module_tool/errors/shared.rb +0 -195
- data/vendored/puppet/lib/puppet/module_tool/errors/uninstaller.rb +0 -50
- data/vendored/puppet/lib/puppet/module_tool/errors/upgrader.rb +0 -63
- data/vendored/puppet/lib/puppet/module_tool/install_directory.rb +0 -45
- data/vendored/puppet/lib/puppet/module_tool/installed_modules.rb +0 -96
- data/vendored/puppet/lib/puppet/module_tool/local_tarball.rb +0 -90
- data/vendored/puppet/lib/puppet/module_tool/metadata.rb +0 -222
- data/vendored/puppet/lib/puppet/module_tool/shared_behaviors.rb +0 -180
- data/vendored/puppet/lib/puppet/module_tool/tar.rb +0 -18
- data/vendored/puppet/lib/puppet/module_tool/tar/gnu.rb +0 -19
- data/vendored/puppet/lib/puppet/module_tool/tar/mini.rb +0 -106
- data/vendored/puppet/lib/puppet/network.rb +0 -3
- data/vendored/puppet/lib/puppet/network/auth_config_parser.rb +0 -90
- data/vendored/puppet/lib/puppet/network/authconfig.rb +0 -99
- data/vendored/puppet/lib/puppet/network/authorization.rb +0 -41
- data/vendored/puppet/lib/puppet/network/authstore.rb +0 -282
- data/vendored/puppet/lib/puppet/network/client_request.rb +0 -29
- data/vendored/puppet/lib/puppet/network/format.rb +0 -110
- data/vendored/puppet/lib/puppet/network/format_handler.rb +0 -108
- data/vendored/puppet/lib/puppet/network/format_support.rb +0 -139
- data/vendored/puppet/lib/puppet/network/formats.rb +0 -260
- data/vendored/puppet/lib/puppet/network/http.rb +0 -28
- data/vendored/puppet/lib/puppet/network/http/api.rb +0 -35
- data/vendored/puppet/lib/puppet/network/http/api/indirected_routes.rb +0 -286
- data/vendored/puppet/lib/puppet/network/http/api/indirection_type.rb +0 -32
- data/vendored/puppet/lib/puppet/network/http/api/master.rb +0 -2
- data/vendored/puppet/lib/puppet/network/http/api/master/v3.rb +0 -28
- data/vendored/puppet/lib/puppet/network/http/api/master/v3/authorization.rb +0 -18
- data/vendored/puppet/lib/puppet/network/http/api/master/v3/environment.rb +0 -85
- data/vendored/puppet/lib/puppet/network/http/api/master/v3/environments.rb +0 -35
- data/vendored/puppet/lib/puppet/network/http/compression.rb +0 -120
- data/vendored/puppet/lib/puppet/network/http/connection.rb +0 -319
- data/vendored/puppet/lib/puppet/network/http/error.rb +0 -73
- data/vendored/puppet/lib/puppet/network/http/factory.rb +0 -55
- data/vendored/puppet/lib/puppet/network/http/handler.rb +0 -215
- data/vendored/puppet/lib/puppet/network/http/issues.rb +0 -12
- data/vendored/puppet/lib/puppet/network/http/memory_response.rb +0 -13
- data/vendored/puppet/lib/puppet/network/http/nocache_pool.rb +0 -21
- data/vendored/puppet/lib/puppet/network/http/pool.rb +0 -129
- data/vendored/puppet/lib/puppet/network/http/request.rb +0 -70
- data/vendored/puppet/lib/puppet/network/http/response.rb +0 -23
- data/vendored/puppet/lib/puppet/network/http/route.rb +0 -100
- data/vendored/puppet/lib/puppet/network/http/session.rb +0 -17
- data/vendored/puppet/lib/puppet/network/http/site.rb +0 -39
- data/vendored/puppet/lib/puppet/network/http_pool.rb +0 -61
- data/vendored/puppet/lib/puppet/network/resolver.rb +0 -158
- data/vendored/puppet/lib/puppet/network/rest_controller.rb +0 -2
- data/vendored/puppet/lib/puppet/network/rights.rb +0 -209
- data/vendored/puppet/lib/puppet/node.rb +0 -281
- data/vendored/puppet/lib/puppet/node/environment.rb +0 -575
- data/vendored/puppet/lib/puppet/node/facts.rb +0 -147
- data/vendored/puppet/lib/puppet/parameter.rb +0 -572
- data/vendored/puppet/lib/puppet/parameter/boolean.rb +0 -15
- data/vendored/puppet/lib/puppet/parameter/package_options.rb +0 -31
- data/vendored/puppet/lib/puppet/parameter/path.rb +0 -57
- data/vendored/puppet/lib/puppet/parameter/value.rb +0 -91
- data/vendored/puppet/lib/puppet/parameter/value_collection.rb +0 -212
- data/vendored/puppet/lib/puppet/parser.rb +0 -20
- data/vendored/puppet/lib/puppet/parser/abstract_compiler.rb +0 -36
- data/vendored/puppet/lib/puppet/parser/ast.rb +0 -61
- data/vendored/puppet/lib/puppet/parser/ast/block_expression.rb +0 -15
- data/vendored/puppet/lib/puppet/parser/ast/branch.rb +0 -19
- data/vendored/puppet/lib/puppet/parser/ast/hostclass.rb +0 -27
- data/vendored/puppet/lib/puppet/parser/ast/leaf.rb +0 -80
- data/vendored/puppet/lib/puppet/parser/ast/node.rb +0 -17
- data/vendored/puppet/lib/puppet/parser/ast/pops_bridge.rb +0 -291
- data/vendored/puppet/lib/puppet/parser/ast/resource.rb +0 -66
- data/vendored/puppet/lib/puppet/parser/ast/resource_instance.rb +0 -10
- data/vendored/puppet/lib/puppet/parser/ast/resourceparam.rb +0 -31
- data/vendored/puppet/lib/puppet/parser/ast/top_level_construct.rb +0 -4
- data/vendored/puppet/lib/puppet/parser/catalog_compiler.rb +0 -56
- data/vendored/puppet/lib/puppet/parser/compiler.rb +0 -798
- data/vendored/puppet/lib/puppet/parser/compiler/catalog_validator.rb +0 -33
- data/vendored/puppet/lib/puppet/parser/compiler/catalog_validator/env_relationship_validator.rb +0 -64
- data/vendored/puppet/lib/puppet/parser/compiler/catalog_validator/relationship_validator.rb +0 -64
- data/vendored/puppet/lib/puppet/parser/compiler/catalog_validator/site_validator.rb +0 -20
- data/vendored/puppet/lib/puppet/parser/e4_parser_adapter.rb +0 -60
- data/vendored/puppet/lib/puppet/parser/environment_compiler.rb +0 -199
- data/vendored/puppet/lib/puppet/parser/files.rb +0 -92
- data/vendored/puppet/lib/puppet/parser/functions.rb +0 -311
- data/vendored/puppet/lib/puppet/parser/functions/assert_type.rb +0 -60
- data/vendored/puppet/lib/puppet/parser/functions/binary_file.rb +0 -24
- data/vendored/puppet/lib/puppet/parser/functions/break.rb +0 -39
- data/vendored/puppet/lib/puppet/parser/functions/contain.rb +0 -30
- data/vendored/puppet/lib/puppet/parser/functions/create_resources.rb +0 -106
- data/vendored/puppet/lib/puppet/parser/functions/defined.rb +0 -107
- data/vendored/puppet/lib/puppet/parser/functions/dig.rb +0 -38
- data/vendored/puppet/lib/puppet/parser/functions/digest.rb +0 -5
- data/vendored/puppet/lib/puppet/parser/functions/each.rb +0 -104
- data/vendored/puppet/lib/puppet/parser/functions/epp.rb +0 -39
- data/vendored/puppet/lib/puppet/parser/functions/fail.rb +0 -4
- data/vendored/puppet/lib/puppet/parser/functions/file.rb +0 -33
- data/vendored/puppet/lib/puppet/parser/functions/filter.rb +0 -78
- data/vendored/puppet/lib/puppet/parser/functions/find_file.rb +0 -28
- data/vendored/puppet/lib/puppet/parser/functions/fqdn_rand.rb +0 -36
- data/vendored/puppet/lib/puppet/parser/functions/generate.rb +0 -36
- data/vendored/puppet/lib/puppet/parser/functions/hiera.rb +0 -103
- data/vendored/puppet/lib/puppet/parser/functions/hiera_array.rb +0 -92
- data/vendored/puppet/lib/puppet/parser/functions/hiera_hash.rb +0 -102
- data/vendored/puppet/lib/puppet/parser/functions/hiera_include.rb +0 -101
- data/vendored/puppet/lib/puppet/parser/functions/include.rb +0 -34
- data/vendored/puppet/lib/puppet/parser/functions/inline_epp.rb +0 -51
- data/vendored/puppet/lib/puppet/parser/functions/inline_template.rb +0 -26
- data/vendored/puppet/lib/puppet/parser/functions/lest.rb +0 -49
- data/vendored/puppet/lib/puppet/parser/functions/lookup.rb +0 -132
- data/vendored/puppet/lib/puppet/parser/functions/map.rb +0 -76
- data/vendored/puppet/lib/puppet/parser/functions/match.rb +0 -43
- data/vendored/puppet/lib/puppet/parser/functions/md5.rb +0 -5
- data/vendored/puppet/lib/puppet/parser/functions/new.rb +0 -991
- data/vendored/puppet/lib/puppet/parser/functions/next.rb +0 -38
- data/vendored/puppet/lib/puppet/parser/functions/realize.rb +0 -20
- data/vendored/puppet/lib/puppet/parser/functions/reduce.rb +0 -137
- data/vendored/puppet/lib/puppet/parser/functions/regsubst.rb +0 -62
- data/vendored/puppet/lib/puppet/parser/functions/require.rb +0 -40
- data/vendored/puppet/lib/puppet/parser/functions/return.rb +0 -92
- data/vendored/puppet/lib/puppet/parser/functions/reverse_each.rb +0 -83
- data/vendored/puppet/lib/puppet/parser/functions/scanf.rb +0 -38
- data/vendored/puppet/lib/puppet/parser/functions/sha1.rb +0 -5
- data/vendored/puppet/lib/puppet/parser/functions/sha256.rb +0 -5
- data/vendored/puppet/lib/puppet/parser/functions/shellquote.rb +0 -61
- data/vendored/puppet/lib/puppet/parser/functions/slice.rb +0 -39
- data/vendored/puppet/lib/puppet/parser/functions/split.rb +0 -28
- data/vendored/puppet/lib/puppet/parser/functions/sprintf.rb +0 -61
- data/vendored/puppet/lib/puppet/parser/functions/step.rb +0 -84
- data/vendored/puppet/lib/puppet/parser/functions/strftime.rb +0 -185
- data/vendored/puppet/lib/puppet/parser/functions/tag.rb +0 -12
- data/vendored/puppet/lib/puppet/parser/functions/tagged.rb +0 -21
- data/vendored/puppet/lib/puppet/parser/functions/template.rb +0 -39
- data/vendored/puppet/lib/puppet/parser/functions/then.rb +0 -73
- data/vendored/puppet/lib/puppet/parser/functions/type.rb +0 -53
- data/vendored/puppet/lib/puppet/parser/functions/versioncmp.rb +0 -30
- data/vendored/puppet/lib/puppet/parser/functions/with.rb +0 -28
- data/vendored/puppet/lib/puppet/parser/parser_factory.rb +0 -30
- data/vendored/puppet/lib/puppet/parser/relationship.rb +0 -83
- data/vendored/puppet/lib/puppet/parser/resource.rb +0 -416
- data/vendored/puppet/lib/puppet/parser/resource/param.rb +0 -29
- data/vendored/puppet/lib/puppet/parser/scope.rb +0 -1123
- data/vendored/puppet/lib/puppet/parser/script_compiler.rb +0 -123
- data/vendored/puppet/lib/puppet/parser/templatewrapper.rb +0 -102
- data/vendored/puppet/lib/puppet/parser/type_loader.rb +0 -149
- data/vendored/puppet/lib/puppet/plugins.rb +0 -9
- data/vendored/puppet/lib/puppet/plugins/configuration.rb +0 -25
- data/vendored/puppet/lib/puppet/plugins/syntax_checkers.rb +0 -98
- data/vendored/puppet/lib/puppet/pops.rb +0 -121
- data/vendored/puppet/lib/puppet/pops/adaptable.rb +0 -206
- data/vendored/puppet/lib/puppet/pops/adapters.rb +0 -152
- data/vendored/puppet/lib/puppet/pops/evaluator/access_operator.rb +0 -719
- data/vendored/puppet/lib/puppet/pops/evaluator/callable_signature.rb +0 -107
- data/vendored/puppet/lib/puppet/pops/evaluator/closure.rb +0 -373
- data/vendored/puppet/lib/puppet/pops/evaluator/collector_transformer.rb +0 -234
- data/vendored/puppet/lib/puppet/pops/evaluator/collectors/abstract_collector.rb +0 -86
- data/vendored/puppet/lib/puppet/pops/evaluator/collectors/catalog_collector.rb +0 -29
- data/vendored/puppet/lib/puppet/pops/evaluator/collectors/exported_collector.rb +0 -69
- data/vendored/puppet/lib/puppet/pops/evaluator/collectors/fixed_set_collector.rb +0 -37
- data/vendored/puppet/lib/puppet/pops/evaluator/compare_operator.rb +0 -254
- data/vendored/puppet/lib/puppet/pops/evaluator/deferred_resolver.rb +0 -130
- data/vendored/puppet/lib/puppet/pops/evaluator/epp_evaluator.rb +0 -120
- data/vendored/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb +0 -1299
- data/vendored/puppet/lib/puppet/pops/evaluator/external_syntax_support.rb +0 -45
- data/vendored/puppet/lib/puppet/pops/evaluator/json_strict_literal_evaluator.rb +0 -82
- data/vendored/puppet/lib/puppet/pops/evaluator/literal_evaluator.rb +0 -87
- data/vendored/puppet/lib/puppet/pops/evaluator/puppet_proc.rb +0 -69
- data/vendored/puppet/lib/puppet/pops/evaluator/relationship_operator.rb +0 -185
- data/vendored/puppet/lib/puppet/pops/evaluator/runtime3_converter.rb +0 -221
- data/vendored/puppet/lib/puppet/pops/evaluator/runtime3_resource_support.rb +0 -117
- data/vendored/puppet/lib/puppet/pops/evaluator/runtime3_support.rb +0 -534
- data/vendored/puppet/lib/puppet/pops/functions/dispatch.rb +0 -107
- data/vendored/puppet/lib/puppet/pops/functions/dispatcher.rb +0 -71
- data/vendored/puppet/lib/puppet/pops/functions/function.rb +0 -141
- data/vendored/puppet/lib/puppet/pops/issue_reporter.rb +0 -137
- data/vendored/puppet/lib/puppet/pops/issues.rb +0 -921
- data/vendored/puppet/lib/puppet/pops/label_provider.rb +0 -90
- data/vendored/puppet/lib/puppet/pops/loader/base_loader.rb +0 -166
- data/vendored/puppet/lib/puppet/pops/loader/dependency_loader.rb +0 -92
- data/vendored/puppet/lib/puppet/pops/loader/gem_support.rb +0 -49
- data/vendored/puppet/lib/puppet/pops/loader/loader.rb +0 -209
- data/vendored/puppet/lib/puppet/pops/loader/loader_paths.rb +0 -377
- data/vendored/puppet/lib/puppet/pops/loader/module_loaders.rb +0 -549
- data/vendored/puppet/lib/puppet/pops/loader/null_loader.rb +0 -60
- data/vendored/puppet/lib/puppet/pops/loader/predefined_loader.rb +0 -24
- data/vendored/puppet/lib/puppet/pops/loader/puppet_function_instantiator.rb +0 -84
- data/vendored/puppet/lib/puppet/pops/loader/puppet_plan_instantiator.rb +0 -84
- data/vendored/puppet/lib/puppet/pops/loader/puppet_resource_type_impl_instantiator.rb +0 -79
- data/vendored/puppet/lib/puppet/pops/loader/ruby_data_type_instantiator.rb +0 -39
- data/vendored/puppet/lib/puppet/pops/loader/ruby_function_instantiator.rb +0 -45
- data/vendored/puppet/lib/puppet/pops/loader/ruby_legacy_function_instantiator.rb +0 -62
- data/vendored/puppet/lib/puppet/pops/loader/runtime3_type_loader.rb +0 -101
- data/vendored/puppet/lib/puppet/pops/loader/simple_environment_loader.rb +0 -20
- data/vendored/puppet/lib/puppet/pops/loader/static_loader.rb +0 -127
- data/vendored/puppet/lib/puppet/pops/loader/task_instantiator.rb +0 -40
- data/vendored/puppet/lib/puppet/pops/loader/type_definition_instantiator.rb +0 -100
- data/vendored/puppet/lib/puppet/pops/loader/typed_name.rb +0 -54
- data/vendored/puppet/lib/puppet/pops/loader/uri_helper.rb +0 -22
- data/vendored/puppet/lib/puppet/pops/loaders.rb +0 -533
- data/vendored/puppet/lib/puppet/pops/lookup.rb +0 -96
- data/vendored/puppet/lib/puppet/pops/lookup/configured_data_provider.rb +0 -93
- data/vendored/puppet/lib/puppet/pops/lookup/context.rb +0 -200
- data/vendored/puppet/lib/puppet/pops/lookup/data_adapter.rb +0 -27
- data/vendored/puppet/lib/puppet/pops/lookup/data_dig_function_provider.rb +0 -145
- data/vendored/puppet/lib/puppet/pops/lookup/data_hash_function_provider.rb +0 -126
- data/vendored/puppet/lib/puppet/pops/lookup/data_provider.rb +0 -92
- data/vendored/puppet/lib/puppet/pops/lookup/environment_data_provider.rb +0 -35
- data/vendored/puppet/lib/puppet/pops/lookup/explainer.rb +0 -595
- data/vendored/puppet/lib/puppet/pops/lookup/function_provider.rb +0 -110
- data/vendored/puppet/lib/puppet/pops/lookup/global_data_provider.rb +0 -75
- data/vendored/puppet/lib/puppet/pops/lookup/hiera_config.rb +0 -761
- data/vendored/puppet/lib/puppet/pops/lookup/interpolation.rb +0 -154
- data/vendored/puppet/lib/puppet/pops/lookup/invocation.rb +0 -261
- data/vendored/puppet/lib/puppet/pops/lookup/location_resolver.rb +0 -99
- data/vendored/puppet/lib/puppet/pops/lookup/lookup_adapter.rb +0 -520
- data/vendored/puppet/lib/puppet/pops/lookup/lookup_key.rb +0 -99
- data/vendored/puppet/lib/puppet/pops/lookup/lookup_key_function_provider.rb +0 -92
- data/vendored/puppet/lib/puppet/pops/lookup/module_data_provider.rb +0 -89
- data/vendored/puppet/lib/puppet/pops/lookup/sub_lookup.rb +0 -92
- data/vendored/puppet/lib/puppet/pops/merge_strategy.rb +0 -437
- data/vendored/puppet/lib/puppet/pops/migration/migration_checker.rb +0 -58
- data/vendored/puppet/lib/puppet/pops/model/ast.rb +0 -4964
- data/vendored/puppet/lib/puppet/pops/model/ast_transformer.rb +0 -131
- data/vendored/puppet/lib/puppet/pops/model/factory.rb +0 -1163
- data/vendored/puppet/lib/puppet/pops/model/model_label_provider.rb +0 -139
- data/vendored/puppet/lib/puppet/pops/model/model_tree_dumper.rb +0 -467
- data/vendored/puppet/lib/puppet/pops/model/pn_transformer.rb +0 -400
- data/vendored/puppet/lib/puppet/pops/model/tree_dumper.rb +0 -59
- data/vendored/puppet/lib/puppet/pops/parser/code_merger.rb +0 -29
- data/vendored/puppet/lib/puppet/pops/parser/eparser.rb +0 -3361
- data/vendored/puppet/lib/puppet/pops/parser/epp_parser.rb +0 -51
- data/vendored/puppet/lib/puppet/pops/parser/epp_support.rb +0 -264
- data/vendored/puppet/lib/puppet/pops/parser/evaluating_parser.rb +0 -165
- data/vendored/puppet/lib/puppet/pops/parser/heredoc_support.rb +0 -143
- data/vendored/puppet/lib/puppet/pops/parser/interpolation_support.rb +0 -244
- data/vendored/puppet/lib/puppet/pops/parser/lexer2.rb +0 -772
- data/vendored/puppet/lib/puppet/pops/parser/lexer_support.rb +0 -221
- data/vendored/puppet/lib/puppet/pops/parser/locatable.rb +0 -23
- data/vendored/puppet/lib/puppet/pops/parser/locator.rb +0 -336
- data/vendored/puppet/lib/puppet/pops/parser/parser_support.rb +0 -247
- data/vendored/puppet/lib/puppet/pops/parser/pn_parser.rb +0 -316
- data/vendored/puppet/lib/puppet/pops/parser/slurp_support.rb +0 -117
- data/vendored/puppet/lib/puppet/pops/patterns.rb +0 -60
- data/vendored/puppet/lib/puppet/pops/pcore.rb +0 -135
- data/vendored/puppet/lib/puppet/pops/pn.rb +0 -236
- data/vendored/puppet/lib/puppet/pops/puppet_stack.rb +0 -57
- data/vendored/puppet/lib/puppet/pops/resource/param.rb +0 -55
- data/vendored/puppet/lib/puppet/pops/resource/resource_type_impl.rb +0 -314
- data/vendored/puppet/lib/puppet/pops/semantic_error.rb +0 -29
- data/vendored/puppet/lib/puppet/pops/serialization.rb +0 -43
- data/vendored/puppet/lib/puppet/pops/serialization/abstract_reader.rb +0 -180
- data/vendored/puppet/lib/puppet/pops/serialization/abstract_writer.rb +0 -222
- data/vendored/puppet/lib/puppet/pops/serialization/deserializer.rb +0 -80
- data/vendored/puppet/lib/puppet/pops/serialization/extension.rb +0 -158
- data/vendored/puppet/lib/puppet/pops/serialization/from_data_converter.rb +0 -224
- data/vendored/puppet/lib/puppet/pops/serialization/instance_reader.rb +0 -19
- data/vendored/puppet/lib/puppet/pops/serialization/instance_writer.rb +0 -14
- data/vendored/puppet/lib/puppet/pops/serialization/json.rb +0 -297
- data/vendored/puppet/lib/puppet/pops/serialization/json_path.rb +0 -127
- data/vendored/puppet/lib/puppet/pops/serialization/object.rb +0 -70
- data/vendored/puppet/lib/puppet/pops/serialization/serializer.rb +0 -140
- data/vendored/puppet/lib/puppet/pops/serialization/time_factory.rb +0 -67
- data/vendored/puppet/lib/puppet/pops/serialization/to_data_converter.rb +0 -313
- data/vendored/puppet/lib/puppet/pops/serialization/to_stringified_converter.rb +0 -226
- data/vendored/puppet/lib/puppet/pops/time/timespan.rb +0 -718
- data/vendored/puppet/lib/puppet/pops/time/timestamp.rb +0 -160
- data/vendored/puppet/lib/puppet/pops/types/annotatable.rb +0 -36
- data/vendored/puppet/lib/puppet/pops/types/annotation.rb +0 -71
- data/vendored/puppet/lib/puppet/pops/types/class_loader.rb +0 -132
- data/vendored/puppet/lib/puppet/pops/types/enumeration.rb +0 -16
- data/vendored/puppet/lib/puppet/pops/types/implementation_registry.rb +0 -134
- data/vendored/puppet/lib/puppet/pops/types/iterable.rb +0 -339
- data/vendored/puppet/lib/puppet/pops/types/p_binary_type.rb +0 -232
- data/vendored/puppet/lib/puppet/pops/types/p_init_type.rb +0 -238
- data/vendored/puppet/lib/puppet/pops/types/p_meta_type.rb +0 -94
- data/vendored/puppet/lib/puppet/pops/types/p_object_type.rb +0 -1117
- data/vendored/puppet/lib/puppet/pops/types/p_object_type_extension.rb +0 -218
- data/vendored/puppet/lib/puppet/pops/types/p_runtime_type.rb +0 -115
- data/vendored/puppet/lib/puppet/pops/types/p_sem_ver_range_type.rb +0 -190
- data/vendored/puppet/lib/puppet/pops/types/p_sem_ver_type.rb +0 -149
- data/vendored/puppet/lib/puppet/pops/types/p_sensitive_type.rb +0 -73
- data/vendored/puppet/lib/puppet/pops/types/p_timespan_type.rb +0 -192
- data/vendored/puppet/lib/puppet/pops/types/p_timestamp_type.rb +0 -73
- data/vendored/puppet/lib/puppet/pops/types/p_type_set_type.rb +0 -383
- data/vendored/puppet/lib/puppet/pops/types/p_uri_type.rb +0 -190
- data/vendored/puppet/lib/puppet/pops/types/puppet_object.rb +0 -40
- data/vendored/puppet/lib/puppet/pops/types/recursion_guard.rb +0 -136
- data/vendored/puppet/lib/puppet/pops/types/ruby_generator.rb +0 -472
- data/vendored/puppet/lib/puppet/pops/types/ruby_method.rb +0 -31
- data/vendored/puppet/lib/puppet/pops/types/string_converter.rb +0 -1123
- data/vendored/puppet/lib/puppet/pops/types/tree_iterators.rb +0 -254
- data/vendored/puppet/lib/puppet/pops/types/type_acceptor.rb +0 -25
- data/vendored/puppet/lib/puppet/pops/types/type_asserter.rb +0 -47
- data/vendored/puppet/lib/puppet/pops/types/type_assertion_error.rb +0 -27
- data/vendored/puppet/lib/puppet/pops/types/type_calculator.rb +0 -809
- data/vendored/puppet/lib/puppet/pops/types/type_conversion_error.rb +0 -15
- data/vendored/puppet/lib/puppet/pops/types/type_factory.rb +0 -631
- data/vendored/puppet/lib/puppet/pops/types/type_formatter.rb +0 -802
- data/vendored/puppet/lib/puppet/pops/types/type_mismatch_describer.rb +0 -1075
- data/vendored/puppet/lib/puppet/pops/types/type_parser.rb +0 -685
- data/vendored/puppet/lib/puppet/pops/types/type_set_reference.rb +0 -59
- data/vendored/puppet/lib/puppet/pops/types/type_with_members.rb +0 -43
- data/vendored/puppet/lib/puppet/pops/types/types.rb +0 -3631
- data/vendored/puppet/lib/puppet/pops/utils.rb +0 -119
- data/vendored/puppet/lib/puppet/pops/validation.rb +0 -466
- data/vendored/puppet/lib/puppet/pops/validation/checker4_0.rb +0 -1127
- data/vendored/puppet/lib/puppet/pops/validation/tasks_checker.rb +0 -101
- data/vendored/puppet/lib/puppet/pops/validation/validator_factory_4_0.rb +0 -43
- data/vendored/puppet/lib/puppet/pops/visitable.rb +0 -6
- data/vendored/puppet/lib/puppet/pops/visitor.rb +0 -116
- data/vendored/puppet/lib/puppet/property.rb +0 -608
- data/vendored/puppet/lib/puppet/property/boolean.rb +0 -7
- data/vendored/puppet/lib/puppet/property/ensure.rb +0 -105
- data/vendored/puppet/lib/puppet/property/keyvalue.rb +0 -157
- data/vendored/puppet/lib/puppet/property/list.rb +0 -69
- data/vendored/puppet/lib/puppet/property/ordered_list.rb +0 -29
- data/vendored/puppet/lib/puppet/provider.rb +0 -624
- data/vendored/puppet/lib/puppet/provider/aix_object.rb +0 -483
- data/vendored/puppet/lib/puppet/provider/command.rb +0 -25
- data/vendored/puppet/lib/puppet/provider/confine.rb +0 -6
- data/vendored/puppet/lib/puppet/provider/exec.rb +0 -96
- data/vendored/puppet/lib/puppet/provider/exec/posix.rb +0 -48
- data/vendored/puppet/lib/puppet/provider/exec/shell.rb +0 -25
- data/vendored/puppet/lib/puppet/provider/exec/windows.rb +0 -55
- data/vendored/puppet/lib/puppet/provider/file/posix.rb +0 -136
- data/vendored/puppet/lib/puppet/provider/file/windows.rb +0 -104
- data/vendored/puppet/lib/puppet/provider/group/aix.rb +0 -82
- data/vendored/puppet/lib/puppet/provider/group/directoryservice.rb +0 -22
- data/vendored/puppet/lib/puppet/provider/group/groupadd.rb +0 -111
- data/vendored/puppet/lib/puppet/provider/group/ldap.rb +0 -45
- data/vendored/puppet/lib/puppet/provider/group/pw.rb +0 -49
- data/vendored/puppet/lib/puppet/provider/group/windows_adsi.rb +0 -106
- data/vendored/puppet/lib/puppet/provider/ldap.rb +0 -137
- data/vendored/puppet/lib/puppet/provider/nameservice.rb +0 -325
- data/vendored/puppet/lib/puppet/provider/nameservice/directoryservice.rb +0 -508
- data/vendored/puppet/lib/puppet/provider/nameservice/objectadd.rb +0 -22
- data/vendored/puppet/lib/puppet/provider/nameservice/pw.rb +0 -21
- data/vendored/puppet/lib/puppet/provider/network_device.rb +0 -72
- data/vendored/puppet/lib/puppet/provider/package.rb +0 -56
- data/vendored/puppet/lib/puppet/provider/package/aix.rb +0 -152
- data/vendored/puppet/lib/puppet/provider/package/appdmg.rb +0 -109
- data/vendored/puppet/lib/puppet/provider/package/apple.rb +0 -46
- data/vendored/puppet/lib/puppet/provider/package/apt.rb +0 -116
- data/vendored/puppet/lib/puppet/provider/package/aptitude.rb +0 -29
- data/vendored/puppet/lib/puppet/provider/package/aptrpm.rb +0 -83
- data/vendored/puppet/lib/puppet/provider/package/blastwave.rb +0 -111
- data/vendored/puppet/lib/puppet/provider/package/dnf.rb +0 -47
- data/vendored/puppet/lib/puppet/provider/package/dpkg.rb +0 -165
- data/vendored/puppet/lib/puppet/provider/package/fink.rb +0 -79
- data/vendored/puppet/lib/puppet/provider/package/freebsd.rb +0 -47
- data/vendored/puppet/lib/puppet/provider/package/gem.rb +0 -175
- data/vendored/puppet/lib/puppet/provider/package/hpux.rb +0 -44
- data/vendored/puppet/lib/puppet/provider/package/macports.rb +0 -107
- data/vendored/puppet/lib/puppet/provider/package/nim.rb +0 -282
- data/vendored/puppet/lib/puppet/provider/package/openbsd.rb +0 -242
- data/vendored/puppet/lib/puppet/provider/package/opkg.rb +0 -81
- data/vendored/puppet/lib/puppet/provider/package/pacman.rb +0 -267
- data/vendored/puppet/lib/puppet/provider/package/pip.rb +0 -188
- data/vendored/puppet/lib/puppet/provider/package/pip3.rb +0 -20
- data/vendored/puppet/lib/puppet/provider/package/pkg.rb +0 -255
- data/vendored/puppet/lib/puppet/provider/package/pkgdmg.rb +0 -151
- data/vendored/puppet/lib/puppet/provider/package/pkgin.rb +0 -87
- data/vendored/puppet/lib/puppet/provider/package/pkgng.rb +0 -143
- data/vendored/puppet/lib/puppet/provider/package/pkgutil.rb +0 -186
- data/vendored/puppet/lib/puppet/provider/package/portage.rb +0 -300
- data/vendored/puppet/lib/puppet/provider/package/ports.rb +0 -91
- data/vendored/puppet/lib/puppet/provider/package/portupgrade.rb +0 -239
- data/vendored/puppet/lib/puppet/provider/package/puppet_gem.rb +0 -17
- data/vendored/puppet/lib/puppet/provider/package/rpm.rb +0 -405
- data/vendored/puppet/lib/puppet/provider/package/rug.rb +0 -51
- data/vendored/puppet/lib/puppet/provider/package/sun.rb +0 -133
- data/vendored/puppet/lib/puppet/provider/package/sunfreeware.rb +0 -9
- data/vendored/puppet/lib/puppet/provider/package/tdnf.rb +0 -28
- data/vendored/puppet/lib/puppet/provider/package/up2date.rb +0 -40
- data/vendored/puppet/lib/puppet/provider/package/urpmi.rb +0 -55
- data/vendored/puppet/lib/puppet/provider/package/windows.rb +0 -113
- data/vendored/puppet/lib/puppet/provider/package/windows/exe_package.rb +0 -71
- data/vendored/puppet/lib/puppet/provider/package/windows/msi_package.rb +0 -62
- data/vendored/puppet/lib/puppet/provider/package/windows/package.rb +0 -100
- data/vendored/puppet/lib/puppet/provider/package/yum.rb +0 -293
- data/vendored/puppet/lib/puppet/provider/package/zypper.rb +0 -145
- data/vendored/puppet/lib/puppet/provider/parsedfile.rb +0 -459
- data/vendored/puppet/lib/puppet/provider/service/base.rb +0 -134
- data/vendored/puppet/lib/puppet/provider/service/bsd.rb +0 -51
- data/vendored/puppet/lib/puppet/provider/service/daemontools.rb +0 -194
- data/vendored/puppet/lib/puppet/provider/service/debian.rb +0 -75
- data/vendored/puppet/lib/puppet/provider/service/freebsd.rb +0 -143
- data/vendored/puppet/lib/puppet/provider/service/gentoo.rb +0 -45
- data/vendored/puppet/lib/puppet/provider/service/init.rb +0 -194
- data/vendored/puppet/lib/puppet/provider/service/launchd.rb +0 -345
- data/vendored/puppet/lib/puppet/provider/service/openbsd.rb +0 -100
- data/vendored/puppet/lib/puppet/provider/service/openrc.rb +0 -71
- data/vendored/puppet/lib/puppet/provider/service/openwrt.rb +0 -36
- data/vendored/puppet/lib/puppet/provider/service/rcng.rb +0 -51
- data/vendored/puppet/lib/puppet/provider/service/redhat.rb +0 -72
- data/vendored/puppet/lib/puppet/provider/service/runit.rb +0 -112
- data/vendored/puppet/lib/puppet/provider/service/service.rb +0 -42
- data/vendored/puppet/lib/puppet/provider/service/smf.rb +0 -169
- data/vendored/puppet/lib/puppet/provider/service/src.rb +0 -147
- data/vendored/puppet/lib/puppet/provider/service/systemd.rb +0 -189
- data/vendored/puppet/lib/puppet/provider/service/upstart.rb +0 -369
- data/vendored/puppet/lib/puppet/provider/service/windows.rb +0 -103
- data/vendored/puppet/lib/puppet/provider/user/aix.rb +0 -271
- data/vendored/puppet/lib/puppet/provider/user/directoryservice.rb +0 -632
- data/vendored/puppet/lib/puppet/provider/user/hpux.rb +0 -95
- data/vendored/puppet/lib/puppet/provider/user/ldap.rb +0 -128
- data/vendored/puppet/lib/puppet/provider/user/openbsd.rb +0 -76
- data/vendored/puppet/lib/puppet/provider/user/pw.rb +0 -98
- data/vendored/puppet/lib/puppet/provider/user/user_role_add.rb +0 -233
- data/vendored/puppet/lib/puppet/provider/user/useradd.rb +0 -265
- data/vendored/puppet/lib/puppet/provider/user/windows_adsi.rb +0 -148
- data/vendored/puppet/lib/puppet/reference/configuration.rb +0 -92
- data/vendored/puppet/lib/puppet/reference/function.rb +0 -17
- data/vendored/puppet/lib/puppet/reference/indirection.rb +0 -71
- data/vendored/puppet/lib/puppet/reference/metaparameter.rb +0 -35
- data/vendored/puppet/lib/puppet/reference/providers.rb +0 -118
- data/vendored/puppet/lib/puppet/reference/report.rb +0 -20
- data/vendored/puppet/lib/puppet/reference/type.rb +0 -113
- data/vendored/puppet/lib/puppet/relationship.rb +0 -89
- data/vendored/puppet/lib/puppet/reports.rb +0 -93
- data/vendored/puppet/lib/puppet/reports/http.rb +0 -37
- data/vendored/puppet/lib/puppet/reports/log.rb +0 -14
- data/vendored/puppet/lib/puppet/reports/store.rb +0 -68
- data/vendored/puppet/lib/puppet/resource.rb +0 -687
- data/vendored/puppet/lib/puppet/resource/capability_finder.rb +0 -150
- data/vendored/puppet/lib/puppet/resource/catalog.rb +0 -675
- data/vendored/puppet/lib/puppet/resource/status.rb +0 -229
- data/vendored/puppet/lib/puppet/resource/type.rb +0 -528
- data/vendored/puppet/lib/puppet/resource/type_collection.rb +0 -263
- data/vendored/puppet/lib/puppet/rest/client.rb +0 -83
- data/vendored/puppet/lib/puppet/rest/errors.rb +0 -14
- data/vendored/puppet/lib/puppet/rest/response.rb +0 -34
- data/vendored/puppet/lib/puppet/rest/route.rb +0 -84
- data/vendored/puppet/lib/puppet/rest/routes.rb +0 -154
- data/vendored/puppet/lib/puppet/rest/ssl_context.rb +0 -13
- data/vendored/puppet/lib/puppet/scheduler.rb +0 -16
- data/vendored/puppet/lib/puppet/scheduler/job.rb +0 -53
- data/vendored/puppet/lib/puppet/scheduler/scheduler.rb +0 -44
- data/vendored/puppet/lib/puppet/scheduler/splay_job.rb +0 -32
- data/vendored/puppet/lib/puppet/scheduler/timer.rb +0 -13
- data/vendored/puppet/lib/puppet/settings.rb +0 -1485
- data/vendored/puppet/lib/puppet/settings/array_setting.rb +0 -17
- data/vendored/puppet/lib/puppet/settings/autosign_setting.rb +0 -22
- data/vendored/puppet/lib/puppet/settings/base_setting.rb +0 -197
- data/vendored/puppet/lib/puppet/settings/boolean_setting.rb +0 -32
- data/vendored/puppet/lib/puppet/settings/certificate_revocation_setting.rb +0 -21
- data/vendored/puppet/lib/puppet/settings/config_file.rb +0 -152
- data/vendored/puppet/lib/puppet/settings/directory_setting.rb +0 -18
- data/vendored/puppet/lib/puppet/settings/duration_setting.rb +0 -32
- data/vendored/puppet/lib/puppet/settings/enum_setting.rb +0 -16
- data/vendored/puppet/lib/puppet/settings/environment_conf.rb +0 -222
- data/vendored/puppet/lib/puppet/settings/errors.rb +0 -11
- data/vendored/puppet/lib/puppet/settings/file_or_directory_setting.rb +0 -40
- data/vendored/puppet/lib/puppet/settings/file_setting.rb +0 -245
- data/vendored/puppet/lib/puppet/settings/ini_file.rb +0 -225
- data/vendored/puppet/lib/puppet/settings/path_setting.rb +0 -8
- data/vendored/puppet/lib/puppet/settings/priority_setting.rb +0 -42
- data/vendored/puppet/lib/puppet/settings/server_list_setting.rb +0 -20
- data/vendored/puppet/lib/puppet/settings/string_setting.rb +0 -9
- data/vendored/puppet/lib/puppet/settings/symbolic_enum_setting.rb +0 -17
- data/vendored/puppet/lib/puppet/settings/terminus_setting.rb +0 -14
- data/vendored/puppet/lib/puppet/settings/ttl_setting.rb +0 -51
- data/vendored/puppet/lib/puppet/settings/value_translator.rb +0 -15
- data/vendored/puppet/lib/puppet/ssl.rb +0 -12
- data/vendored/puppet/lib/puppet/ssl/base.rb +0 -150
- data/vendored/puppet/lib/puppet/ssl/certificate.rb +0 -99
- data/vendored/puppet/lib/puppet/ssl/certificate_request.rb +0 -325
- data/vendored/puppet/lib/puppet/ssl/certificate_request_attributes.rb +0 -37
- data/vendored/puppet/lib/puppet/ssl/certificate_signer.rb +0 -33
- data/vendored/puppet/lib/puppet/ssl/digest.rb +0 -20
- data/vendored/puppet/lib/puppet/ssl/host.rb +0 -626
- data/vendored/puppet/lib/puppet/ssl/key.rb +0 -59
- data/vendored/puppet/lib/puppet/ssl/oids.rb +0 -193
- data/vendored/puppet/lib/puppet/ssl/validator.rb +0 -60
- data/vendored/puppet/lib/puppet/ssl/validator/default_validator.rb +0 -187
- data/vendored/puppet/lib/puppet/ssl/validator/no_validator.rb +0 -20
- data/vendored/puppet/lib/puppet/status.rb +0 -40
- data/vendored/puppet/lib/puppet/syntax_checkers.rb +0 -3
- data/vendored/puppet/lib/puppet/syntax_checkers/base64.rb +0 -40
- data/vendored/puppet/lib/puppet/syntax_checkers/json.rb +0 -35
- data/vendored/puppet/lib/puppet/test/test_helper.rb +0 -251
- data/vendored/puppet/lib/puppet/transaction.rb +0 -444
- data/vendored/puppet/lib/puppet/transaction/additional_resource_generator.rb +0 -220
- data/vendored/puppet/lib/puppet/transaction/event.rb +0 -167
- data/vendored/puppet/lib/puppet/transaction/event_manager.rb +0 -169
- data/vendored/puppet/lib/puppet/transaction/persistence.rb +0 -99
- data/vendored/puppet/lib/puppet/transaction/report.rb +0 -471
- data/vendored/puppet/lib/puppet/transaction/resource_harness.rb +0 -318
- data/vendored/puppet/lib/puppet/type.rb +0 -2673
- data/vendored/puppet/lib/puppet/type/component.rb +0 -88
- data/vendored/puppet/lib/puppet/type/exec.rb +0 -625
- data/vendored/puppet/lib/puppet/type/file.rb +0 -1042
- data/vendored/puppet/lib/puppet/type/file/checksum.rb +0 -50
- data/vendored/puppet/lib/puppet/type/file/checksum_value.rb +0 -54
- data/vendored/puppet/lib/puppet/type/file/content.rb +0 -172
- data/vendored/puppet/lib/puppet/type/file/ctime.rb +0 -20
- data/vendored/puppet/lib/puppet/type/file/data_sync.rb +0 -93
- data/vendored/puppet/lib/puppet/type/file/ensure.rb +0 -192
- data/vendored/puppet/lib/puppet/type/file/group.rb +0 -41
- data/vendored/puppet/lib/puppet/type/file/mode.rb +0 -177
- data/vendored/puppet/lib/puppet/type/file/mtime.rb +0 -18
- data/vendored/puppet/lib/puppet/type/file/owner.rb +0 -44
- data/vendored/puppet/lib/puppet/type/file/selcontext.rb +0 -141
- data/vendored/puppet/lib/puppet/type/file/source.rb +0 -369
- data/vendored/puppet/lib/puppet/type/file/target.rb +0 -87
- data/vendored/puppet/lib/puppet/type/file/type.rb +0 -19
- data/vendored/puppet/lib/puppet/type/filebucket.rb +0 -117
- data/vendored/puppet/lib/puppet/type/group.rb +0 -207
- data/vendored/puppet/lib/puppet/type/notify.rb +0 -46
- data/vendored/puppet/lib/puppet/type/package.rb +0 -568
- data/vendored/puppet/lib/puppet/type/resources.rb +0 -180
- data/vendored/puppet/lib/puppet/type/schedule.rb +0 -430
- data/vendored/puppet/lib/puppet/type/service.rb +0 -255
- data/vendored/puppet/lib/puppet/type/stage.rb +0 -27
- data/vendored/puppet/lib/puppet/type/tidy.rb +0 -349
- data/vendored/puppet/lib/puppet/type/user.rb +0 -818
- data/vendored/puppet/lib/puppet/type/whit.rb +0 -34
- data/vendored/puppet/lib/puppet/util.rb +0 -705
- data/vendored/puppet/lib/puppet/util/at_fork.rb +0 -35
- data/vendored/puppet/lib/puppet/util/at_fork/noop.rb +0 -18
- data/vendored/puppet/lib/puppet/util/at_fork/solaris.rb +0 -160
- data/vendored/puppet/lib/puppet/util/autoload.rb +0 -234
- data/vendored/puppet/lib/puppet/util/backups.rb +0 -86
- data/vendored/puppet/lib/puppet/util/character_encoding.rb +0 -76
- data/vendored/puppet/lib/puppet/util/checksums.rb +0 -361
- data/vendored/puppet/lib/puppet/util/classgen.rb +0 -222
- data/vendored/puppet/lib/puppet/util/colors.rb +0 -100
- data/vendored/puppet/lib/puppet/util/command_line.rb +0 -189
- data/vendored/puppet/lib/puppet/util/command_line/puppet_option_parser.rb +0 -87
- data/vendored/puppet/lib/puppet/util/command_line/trollop.rb +0 -825
- data/vendored/puppet/lib/puppet/util/connection.rb +0 -74
- data/vendored/puppet/lib/puppet/util/constant_inflector.rb +0 -24
- data/vendored/puppet/lib/puppet/util/diff.rb +0 -79
- data/vendored/puppet/lib/puppet/util/docs.rb +0 -128
- data/vendored/puppet/lib/puppet/util/errors.rb +0 -159
- data/vendored/puppet/lib/puppet/util/execution.rb +0 -412
- data/vendored/puppet/lib/puppet/util/execution_stub.rb +0 -26
- data/vendored/puppet/lib/puppet/util/feature.rb +0 -117
- data/vendored/puppet/lib/puppet/util/file_watcher.rb +0 -28
- data/vendored/puppet/lib/puppet/util/fileparsing.rb +0 -397
- data/vendored/puppet/lib/puppet/util/filetype.rb +0 -309
- data/vendored/puppet/lib/puppet/util/http_proxy.rb +0 -207
- data/vendored/puppet/lib/puppet/util/inifile.rb +0 -340
- data/vendored/puppet/lib/puppet/util/instance_loader.rb +0 -61
- data/vendored/puppet/lib/puppet/util/json.rb +0 -69
- data/vendored/puppet/lib/puppet/util/json_lockfile.rb +0 -44
- data/vendored/puppet/lib/puppet/util/ldap.rb +0 -2
- data/vendored/puppet/lib/puppet/util/ldap/connection.rb +0 -71
- data/vendored/puppet/lib/puppet/util/ldap/generator.rb +0 -42
- data/vendored/puppet/lib/puppet/util/ldap/manager.rb +0 -281
- data/vendored/puppet/lib/puppet/util/libuser.rb +0 -12
- data/vendored/puppet/lib/puppet/util/limits.rb +0 -12
- data/vendored/puppet/lib/puppet/util/lockfile.rb +0 -66
- data/vendored/puppet/lib/puppet/util/log.rb +0 -415
- data/vendored/puppet/lib/puppet/util/log/destination.rb +0 -49
- data/vendored/puppet/lib/puppet/util/log/destinations.rb +0 -258
- data/vendored/puppet/lib/puppet/util/logging.rb +0 -311
- data/vendored/puppet/lib/puppet/util/metaid.rb +0 -21
- data/vendored/puppet/lib/puppet/util/metric.rb +0 -64
- data/vendored/puppet/lib/puppet/util/monkey_patches.rb +0 -108
- data/vendored/puppet/lib/puppet/util/multi_match.rb +0 -51
- data/vendored/puppet/lib/puppet/util/network_device.rb +0 -17
- data/vendored/puppet/lib/puppet/util/network_device/base.rb +0 -23
- data/vendored/puppet/lib/puppet/util/network_device/config.rb +0 -105
- data/vendored/puppet/lib/puppet/util/network_device/transport.rb +0 -5
- data/vendored/puppet/lib/puppet/util/network_device/transport/base.rb +0 -26
- data/vendored/puppet/lib/puppet/util/package.rb +0 -31
- data/vendored/puppet/lib/puppet/util/pidlock.rb +0 -62
- data/vendored/puppet/lib/puppet/util/platform.rb +0 -38
- data/vendored/puppet/lib/puppet/util/plist.rb +0 -155
- data/vendored/puppet/lib/puppet/util/posix.rb +0 -137
- data/vendored/puppet/lib/puppet/util/profiler.rb +0 -53
- data/vendored/puppet/lib/puppet/util/profiler/aggregate.rb +0 -85
- data/vendored/puppet/lib/puppet/util/profiler/around_profiler.rb +0 -67
- data/vendored/puppet/lib/puppet/util/profiler/logging.rb +0 -48
- data/vendored/puppet/lib/puppet/util/profiler/object_counts.rb +0 -17
- data/vendored/puppet/lib/puppet/util/profiler/wall_clock.rb +0 -35
- data/vendored/puppet/lib/puppet/util/provider_features.rb +0 -181
- data/vendored/puppet/lib/puppet/util/psych_support.rb +0 -30
- data/vendored/puppet/lib/puppet/util/rdoc.rb +0 -60
- data/vendored/puppet/lib/puppet/util/rdoc/code_objects.rb +0 -294
- data/vendored/puppet/lib/puppet/util/rdoc/generators/puppet_generator.rb +0 -910
- data/vendored/puppet/lib/puppet/util/rdoc/generators/template/puppet/puppet.rb +0 -1085
- data/vendored/puppet/lib/puppet/util/rdoc/parser.rb +0 -12
- data/vendored/puppet/lib/puppet/util/rdoc/parser/puppet_parser_core.rb +0 -259
- data/vendored/puppet/lib/puppet/util/rdoc/parser/puppet_parser_rdoc2.rb +0 -14
- data/vendored/puppet/lib/puppet/util/reference.rb +0 -119
- data/vendored/puppet/lib/puppet/util/resource_template.rb +0 -61
- data/vendored/puppet/lib/puppet/util/retry_action.rb +0 -46
- data/vendored/puppet/lib/puppet/util/rubygems.rb +0 -63
- data/vendored/puppet/lib/puppet/util/run_mode.rb +0 -110
- data/vendored/puppet/lib/puppet/util/selinux.rb +0 -264
- data/vendored/puppet/lib/puppet/util/skip_tags.rb +0 -9
- data/vendored/puppet/lib/puppet/util/splayer.rb +0 -18
- data/vendored/puppet/lib/puppet/util/ssl.rb +0 -92
- data/vendored/puppet/lib/puppet/util/storage.rb +0 -89
- data/vendored/puppet/lib/puppet/util/suidmanager.rb +0 -167
- data/vendored/puppet/lib/puppet/util/symbolic_file_mode.rb +0 -144
- data/vendored/puppet/lib/puppet/util/tag_set.rb +0 -27
- data/vendored/puppet/lib/puppet/util/tagging.rb +0 -131
- data/vendored/puppet/lib/puppet/util/terminal.rb +0 -16
- data/vendored/puppet/lib/puppet/util/user_attr.rb +0 -21
- data/vendored/puppet/lib/puppet/util/warnings.rb +0 -31
- data/vendored/puppet/lib/puppet/util/watched_file.rb +0 -37
- data/vendored/puppet/lib/puppet/util/watcher.rb +0 -17
- data/vendored/puppet/lib/puppet/util/watcher/change_watcher.rb +0 -33
- data/vendored/puppet/lib/puppet/util/watcher/periodic_watcher.rb +0 -37
- data/vendored/puppet/lib/puppet/util/watcher/timer.rb +0 -19
- data/vendored/puppet/lib/puppet/util/windows.rb +0 -52
- data/vendored/puppet/lib/puppet/util/windows/access_control_entry.rb +0 -84
- data/vendored/puppet/lib/puppet/util/windows/access_control_list.rb +0 -113
- data/vendored/puppet/lib/puppet/util/windows/adsi.rb +0 -494
- data/vendored/puppet/lib/puppet/util/windows/api_types.rb +0 -282
- data/vendored/puppet/lib/puppet/util/windows/com.rb +0 -225
- data/vendored/puppet/lib/puppet/util/windows/error.rb +0 -83
- data/vendored/puppet/lib/puppet/util/windows/eventlog.rb +0 -197
- data/vendored/puppet/lib/puppet/util/windows/file.rb +0 -589
- data/vendored/puppet/lib/puppet/util/windows/principal.rb +0 -192
- data/vendored/puppet/lib/puppet/util/windows/process.rb +0 -497
- data/vendored/puppet/lib/puppet/util/windows/registry.rb +0 -374
- data/vendored/puppet/lib/puppet/util/windows/root_certs.rb +0 -108
- data/vendored/puppet/lib/puppet/util/windows/security.rb +0 -869
- data/vendored/puppet/lib/puppet/util/windows/security_descriptor.rb +0 -62
- data/vendored/puppet/lib/puppet/util/windows/service.rb +0 -770
- data/vendored/puppet/lib/puppet/util/windows/sid.rb +0 -282
- data/vendored/puppet/lib/puppet/util/windows/string.rb +0 -16
- data/vendored/puppet/lib/puppet/util/windows/user.rb +0 -309
- data/vendored/puppet/lib/puppet/util/yaml.rb +0 -72
- data/vendored/puppet/lib/puppet/vendor.rb +0 -57
- data/vendored/puppet/lib/puppet/vendor/deep_merge/lib/deep_merge.rb +0 -2
- data/vendored/puppet/lib/puppet/vendor/deep_merge/lib/deep_merge/core.rb +0 -210
- data/vendored/puppet/lib/puppet/vendor/deep_merge/lib/deep_merge/deep_merge_hash.rb +0 -28
- data/vendored/puppet/lib/puppet/vendor/deep_merge/lib/deep_merge/rails_compat.rb +0 -27
- data/vendored/puppet/lib/puppet/vendor/deep_merge/test/test_deep_merge.rb +0 -608
- data/vendored/puppet/lib/puppet/vendor/load_deep_merge.rb +0 -1
- data/vendored/puppet/lib/puppet/vendor/load_pathspec.rb +0 -1
- data/vendored/puppet/lib/puppet/vendor/pathspec/lib/pathspec.rb +0 -122
- data/vendored/puppet/lib/puppet/vendor/pathspec/lib/pathspec/gitignorespec.rb +0 -275
- data/vendored/puppet/lib/puppet/vendor/pathspec/lib/pathspec/regexspec.rb +0 -17
- data/vendored/puppet/lib/puppet/vendor/pathspec/lib/pathspec/spec.rb +0 -14
- data/vendored/puppet/lib/puppet/vendor/require_vendored.rb +0 -6
- data/vendored/puppet/lib/puppet/version.rb +0 -93
- data/vendored/puppet/lib/puppet_pal.rb +0 -1135
- data/vendored/puppet/lib/puppet_x.rb +0 -14
- data/vendored/require_vendored.rb +0 -3
@@ -1,105 +0,0 @@
|
|
1
|
-
require 'puppet/property'
|
2
|
-
|
3
|
-
# This property is automatically added to any {Puppet::Type} that responds
|
4
|
-
# to the methods 'exists?', 'create', and 'destroy'.
|
5
|
-
#
|
6
|
-
# Ensure defaults to having the wanted _(should)_ value `:present`.
|
7
|
-
#
|
8
|
-
# @api public
|
9
|
-
#
|
10
|
-
class Puppet::Property::Ensure < Puppet::Property
|
11
|
-
@name = :ensure
|
12
|
-
|
13
|
-
def self.defaultvalues
|
14
|
-
newvalue(:present) do
|
15
|
-
if @resource.provider and @resource.provider.respond_to?(:create)
|
16
|
-
@resource.provider.create
|
17
|
-
else
|
18
|
-
@resource.create
|
19
|
-
end
|
20
|
-
nil # return nil so the event is autogenerated
|
21
|
-
end
|
22
|
-
|
23
|
-
newvalue(:absent) do
|
24
|
-
if @resource.provider and @resource.provider.respond_to?(:destroy)
|
25
|
-
@resource.provider.destroy
|
26
|
-
else
|
27
|
-
@resource.destroy
|
28
|
-
end
|
29
|
-
nil # return nil so the event is autogenerated
|
30
|
-
end
|
31
|
-
|
32
|
-
defaultto do
|
33
|
-
if @resource.managed?
|
34
|
-
:present
|
35
|
-
else
|
36
|
-
nil
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
# This doc will probably get overridden
|
41
|
-
@doc ||= "The basic property that the resource should be in."
|
42
|
-
end
|
43
|
-
|
44
|
-
def self.inherited(sub)
|
45
|
-
# Add in the two properties that everyone will have.
|
46
|
-
sub.class_eval do
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
def change_to_s(currentvalue, newvalue)
|
51
|
-
begin
|
52
|
-
if currentvalue == :absent || currentvalue.nil?
|
53
|
-
return _("created")
|
54
|
-
elsif newvalue == :absent
|
55
|
-
return _("removed")
|
56
|
-
else
|
57
|
-
return _('%{name} changed %{is} to %{should}') % { name: name, is: is_to_s(currentvalue), should: should_to_s(newvalue) }
|
58
|
-
end
|
59
|
-
rescue Puppet::Error, Puppet::DevError
|
60
|
-
raise
|
61
|
-
rescue => detail
|
62
|
-
raise Puppet::DevError, _("Could not convert change %{name} to string: %{detail}") % { name: self.name, detail: detail }, detail.backtrace
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
# Retrieves the _is_ value for the ensure property.
|
67
|
-
# The existence of the resource is checked by first consulting the provider (if it responds to
|
68
|
-
# `:exists`), and secondly the resource. A a value of `:present` or `:absent` is returned
|
69
|
-
# depending on if the managed entity exists or not.
|
70
|
-
#
|
71
|
-
# @return [Symbol] a value of `:present` or `:absent` depending on if it exists or not
|
72
|
-
# @raise [Puppet::DevError] if neither the provider nor the resource responds to `:exists`
|
73
|
-
#
|
74
|
-
def retrieve
|
75
|
-
# XXX This is a problem -- whether the object exists or not often
|
76
|
-
# depends on the results of other properties, yet we're the first property
|
77
|
-
# to get checked, which means that those other properties do not have
|
78
|
-
# @is values set. This seems to be the source of quite a few bugs,
|
79
|
-
# although they're mostly logging bugs, not functional ones.
|
80
|
-
if prov = @resource.provider and prov.respond_to?(:exists?)
|
81
|
-
result = prov.exists?
|
82
|
-
elsif @resource.respond_to?(:exists?)
|
83
|
-
result = @resource.exists?
|
84
|
-
else
|
85
|
-
raise Puppet::DevError, _("No ability to determine if %{name} exists") % { name: @resource.class.name }
|
86
|
-
end
|
87
|
-
if result
|
88
|
-
return :present
|
89
|
-
else
|
90
|
-
return :absent
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
# If they're talking about the thing at all, they generally want to
|
95
|
-
# say it should exist.
|
96
|
-
#defaultto :present
|
97
|
-
defaultto do
|
98
|
-
if @resource.managed?
|
99
|
-
:present
|
100
|
-
else
|
101
|
-
nil
|
102
|
-
end
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
@@ -1,157 +0,0 @@
|
|
1
|
-
require 'puppet/property'
|
2
|
-
|
3
|
-
module Puppet
|
4
|
-
class Property
|
5
|
-
# This subclass of {Puppet::Property} manages string key value pairs.
|
6
|
-
# In order to use this property:
|
7
|
-
#
|
8
|
-
# * the _should_ value must be an array of key-value pairs separated by the 'separator'
|
9
|
-
# * the retrieve method should return a hash with the keys as symbols
|
10
|
-
# @note **IMPORTANT**: In order for this property to work there must also be a 'membership' parameter
|
11
|
-
# The class that inherits from property should override that method with the symbol for the membership
|
12
|
-
# @todo The node with an important message is not very clear.
|
13
|
-
#
|
14
|
-
class KeyValue < Property
|
15
|
-
class << self
|
16
|
-
# This is a class-level variable that child properties can override
|
17
|
-
# if they wish.
|
18
|
-
attr_accessor :log_only_changed_or_new_keys
|
19
|
-
end
|
20
|
-
|
21
|
-
self.log_only_changed_or_new_keys = false
|
22
|
-
|
23
|
-
def hash_to_key_value_s(hash)
|
24
|
-
if self.class.log_only_changed_or_new_keys
|
25
|
-
hash = hash.select { |k, _| @changed_or_new_keys.include?(k) }
|
26
|
-
end
|
27
|
-
|
28
|
-
hash.map { |*pair| pair.join(separator) }.join(delimiter)
|
29
|
-
end
|
30
|
-
|
31
|
-
def should_to_s(should_value)
|
32
|
-
hash_to_key_value_s(should_value)
|
33
|
-
end
|
34
|
-
|
35
|
-
def is_to_s(current_value)
|
36
|
-
hash_to_key_value_s(current_value)
|
37
|
-
end
|
38
|
-
|
39
|
-
def membership
|
40
|
-
:key_value_membership
|
41
|
-
end
|
42
|
-
|
43
|
-
def inclusive?
|
44
|
-
@resource[membership] == :inclusive
|
45
|
-
end
|
46
|
-
|
47
|
-
def hashify_should
|
48
|
-
# Puppet casts all should values to arrays. Thus, if the user
|
49
|
-
# passed in a hash for our property's should value, the should_value
|
50
|
-
# parameter will be a single element array so we just extract our value
|
51
|
-
# directly.
|
52
|
-
if ! @should.empty? && @should.first.is_a?(Hash)
|
53
|
-
return @should.first
|
54
|
-
end
|
55
|
-
|
56
|
-
# Here, should is an array of key/value pairs.
|
57
|
-
@should.inject({}) do |hash, key_value|
|
58
|
-
tmp = key_value.split(separator)
|
59
|
-
hash[tmp[0].strip.intern] = tmp[1]
|
60
|
-
hash
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
def process_current_hash(current)
|
65
|
-
return {} if current == :absent
|
66
|
-
|
67
|
-
#inclusive means we are managing everything so if it isn't in should, its gone
|
68
|
-
current.each_key { |key| current[key] = nil } if inclusive?
|
69
|
-
current
|
70
|
-
end
|
71
|
-
|
72
|
-
def should
|
73
|
-
return nil unless @should
|
74
|
-
|
75
|
-
members = hashify_should
|
76
|
-
current = process_current_hash(retrieve)
|
77
|
-
|
78
|
-
#shared keys will get overwritten by members
|
79
|
-
should_value = current.merge(members)
|
80
|
-
|
81
|
-
# Figure out the keys that will actually change in our Puppet run.
|
82
|
-
# This lets us reduce the verbosity of Puppet's logging for instances
|
83
|
-
# of this class when we want to.
|
84
|
-
#
|
85
|
-
# NOTE: We use ||= here because we only need to compute the
|
86
|
-
# changed_or_new_keys once (since this property will only be synced once).
|
87
|
-
#
|
88
|
-
@changed_or_new_keys ||= should_value.keys.select do |key|
|
89
|
-
! current.key?(key) || current[key] != should_value[key]
|
90
|
-
end
|
91
|
-
|
92
|
-
should_value
|
93
|
-
end
|
94
|
-
|
95
|
-
# @return [String] Returns a default separator of "="
|
96
|
-
def separator
|
97
|
-
"="
|
98
|
-
end
|
99
|
-
|
100
|
-
# @return [String] Returns a default delimiter of ";"
|
101
|
-
def delimiter
|
102
|
-
";"
|
103
|
-
end
|
104
|
-
|
105
|
-
# Retrieves the key-hash from the provider by invoking its method named the same as this property.
|
106
|
-
# @return [Hash] the hash from the provider, or `:absent`
|
107
|
-
#
|
108
|
-
def retrieve
|
109
|
-
#ok, some 'convention' if the keyvalue property is named properties, provider should implement a properties method
|
110
|
-
if key_hash = provider.send(name) and key_hash != :absent
|
111
|
-
return key_hash
|
112
|
-
else
|
113
|
-
return :absent
|
114
|
-
end
|
115
|
-
end
|
116
|
-
|
117
|
-
# Returns true if there is no _is_ value, else returns if _is_ is equal to _should_ using == as comparison.
|
118
|
-
# @return [Boolean] whether the property is in sync or not.
|
119
|
-
def insync?(is)
|
120
|
-
return true unless is
|
121
|
-
|
122
|
-
(is == self.should)
|
123
|
-
end
|
124
|
-
|
125
|
-
# We only accept an array of key/value pairs (strings), a single
|
126
|
-
# key/value pair (string) or a Hash as valid values for our property.
|
127
|
-
# Note that for an array property value, the 'value' passed into the
|
128
|
-
# block corresponds to the array element.
|
129
|
-
validate do |value|
|
130
|
-
unless value.is_a?(String) || value.is_a?(Hash)
|
131
|
-
raise ArgumentError, _("The %{name} property must be specified as a hash or an array of key/value pairs (strings)!") % { name: name }
|
132
|
-
end
|
133
|
-
|
134
|
-
next if value.is_a?(Hash)
|
135
|
-
|
136
|
-
unless value.include?("#{separator}")
|
137
|
-
raise ArgumentError, _("Key/value pairs must be separated by '%{separator}'") % {separator: separator}
|
138
|
-
end
|
139
|
-
end
|
140
|
-
|
141
|
-
# The validate step ensures that our passed-in value is
|
142
|
-
# either a String or a Hash. If our value's a string,
|
143
|
-
# then nothing else needs to be done. Otherwise, we need
|
144
|
-
# to stringify the hash's keys and values to match our
|
145
|
-
# internal representation of the property's value.
|
146
|
-
munge do |value|
|
147
|
-
next value if value.is_a?(String)
|
148
|
-
|
149
|
-
munged_value = value.to_a.map! do |hash_key, hash_value|
|
150
|
-
[hash_key.to_s.strip.to_sym, hash_value.to_s]
|
151
|
-
end
|
152
|
-
|
153
|
-
Hash[munged_value]
|
154
|
-
end
|
155
|
-
end
|
156
|
-
end
|
157
|
-
end
|
@@ -1,69 +0,0 @@
|
|
1
|
-
require 'puppet/property'
|
2
|
-
|
3
|
-
module Puppet
|
4
|
-
class Property
|
5
|
-
# This subclass of {Puppet::Property} manages an unordered list of values.
|
6
|
-
# For an ordered list see {Puppet::Property::OrderedList}.
|
7
|
-
#
|
8
|
-
class List < Property
|
9
|
-
|
10
|
-
def is_to_s(currentvalue)
|
11
|
-
currentvalue == :absent ? super(currentvalue) : currentvalue.join(delimiter)
|
12
|
-
end
|
13
|
-
|
14
|
-
def membership
|
15
|
-
:membership
|
16
|
-
end
|
17
|
-
|
18
|
-
def add_should_with_current(should, current)
|
19
|
-
should += current if current.is_a?(Array)
|
20
|
-
should.uniq
|
21
|
-
end
|
22
|
-
|
23
|
-
def inclusive?
|
24
|
-
@resource[membership] == :inclusive
|
25
|
-
end
|
26
|
-
|
27
|
-
#dearrayify was motivated because to simplify the implementation of the OrderedList property
|
28
|
-
def dearrayify(array)
|
29
|
-
array.sort.join(delimiter)
|
30
|
-
end
|
31
|
-
|
32
|
-
def should
|
33
|
-
return nil unless @should
|
34
|
-
|
35
|
-
members = @should
|
36
|
-
#inclusive means we are managing everything so if it isn't in should, its gone
|
37
|
-
members = add_should_with_current(members, retrieve) if ! inclusive?
|
38
|
-
|
39
|
-
dearrayify(members)
|
40
|
-
end
|
41
|
-
|
42
|
-
def delimiter
|
43
|
-
","
|
44
|
-
end
|
45
|
-
|
46
|
-
def retrieve
|
47
|
-
#ok, some 'convention' if the list property is named groups, provider should implement a groups method
|
48
|
-
if provider and tmp = provider.send(name) and tmp != :absent
|
49
|
-
return tmp.split(delimiter)
|
50
|
-
else
|
51
|
-
return :absent
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
def prepare_is_for_comparison(is)
|
56
|
-
if is == :absent
|
57
|
-
is = []
|
58
|
-
end
|
59
|
-
dearrayify(is)
|
60
|
-
end
|
61
|
-
|
62
|
-
def insync?(is)
|
63
|
-
return true unless is
|
64
|
-
|
65
|
-
(prepare_is_for_comparison(is) == self.should)
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
69
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
require 'puppet/property/list'
|
2
|
-
|
3
|
-
module Puppet
|
4
|
-
class Property
|
5
|
-
# This subclass of {Puppet::Property} manages an ordered list of values.
|
6
|
-
# The maintained order is the order defined by the 'current' set of values (i.e. the
|
7
|
-
# original order is not disrupted). Any additions are added after the current values
|
8
|
-
# in their given order).
|
9
|
-
#
|
10
|
-
# For an unordered list see {Puppet::Property::List}.
|
11
|
-
#
|
12
|
-
class OrderedList < List
|
13
|
-
|
14
|
-
def add_should_with_current(should, current)
|
15
|
-
if current.is_a?(Array)
|
16
|
-
#tricky trick
|
17
|
-
#Preserve all the current items in the list
|
18
|
-
#but move them to the back of the line
|
19
|
-
should = should + (current - should)
|
20
|
-
end
|
21
|
-
should
|
22
|
-
end
|
23
|
-
|
24
|
-
def dearrayify(array)
|
25
|
-
array.join(delimiter)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
@@ -1,624 +0,0 @@
|
|
1
|
-
# A Provider is an implementation of the actions that manage resources (of some type) on a system.
|
2
|
-
# This class is the base class for all implementation of a Puppet Provider.
|
3
|
-
#
|
4
|
-
# Concepts:
|
5
|
-
#--
|
6
|
-
# * **Confinement** - confinement restricts providers to only be applicable under certain conditions.
|
7
|
-
# It is possible to confine a provider several different ways:
|
8
|
-
# * the included {#confine} method which provides filtering on fact, feature, existence of files, or a free form
|
9
|
-
# predicate.
|
10
|
-
# * the {commands} method that filters on the availability of given system commands.
|
11
|
-
# * **Property hash** - the important instance variable `@property_hash` contains all current state values
|
12
|
-
# for properties (it is lazily built). It is important that these values are managed appropriately in the
|
13
|
-
# methods {instances}, {prefetch}, and in methods that alters the current state (those that change the
|
14
|
-
# lifecycle (creates, destroys), or alters some value reflected backed by a property).
|
15
|
-
# * **Flush** - is a hook that is called once per resource when everything has been applied. The intent is
|
16
|
-
# that an implementation may defer modification of the current state typically done in property setters
|
17
|
-
# and instead record information that allows flush to perform the changes more efficiently.
|
18
|
-
# * **Execution Methods** - The execution methods provides access to execution of arbitrary commands.
|
19
|
-
# As a convenience execution methods are available on both the instance and the class of a provider since a
|
20
|
-
# lot of provider logic switch between these contexts fairly freely.
|
21
|
-
# * **System Entity/Resource** - this documentation uses the term "system entity" for system resources to make
|
22
|
-
# it clear if talking about a resource on the system being managed (e.g. a file in the file system)
|
23
|
-
# or about a description of such a resource (e.g. a Puppet Resource).
|
24
|
-
# * **Resource Type** - this is an instance of Type that describes a classification of instances of Resource (e.g.
|
25
|
-
# the `File` resource type describes all instances of `file` resources).
|
26
|
-
# (The term is used to contrast with "type" in general, and specifically to contrast with the implementation
|
27
|
-
# class of Resource or a specific Type).
|
28
|
-
#
|
29
|
-
# @note An instance of a Provider is associated with one resource.
|
30
|
-
#
|
31
|
-
# @note Class level methods are only called once to configure the provider (when the type is created), and not
|
32
|
-
# for each resource the provider is operating on.
|
33
|
-
# The instance methods are however called for each resource.
|
34
|
-
#
|
35
|
-
# @api public
|
36
|
-
#
|
37
|
-
class Puppet::Provider
|
38
|
-
include Puppet::Util
|
39
|
-
include Puppet::Util::Errors
|
40
|
-
include Puppet::Util::Warnings
|
41
|
-
extend Puppet::Util::Warnings
|
42
|
-
|
43
|
-
require 'puppet/confiner'
|
44
|
-
require 'puppet/provider/command'
|
45
|
-
|
46
|
-
extend Puppet::Confiner
|
47
|
-
|
48
|
-
Puppet::Util.logmethods(self, true)
|
49
|
-
|
50
|
-
class << self
|
51
|
-
# Include the util module so we have access to things like 'which'
|
52
|
-
include Puppet::Util, Puppet::Util::Docs
|
53
|
-
include Puppet::Util::Logging
|
54
|
-
|
55
|
-
# @return [String] The name of the provider
|
56
|
-
attr_accessor :name
|
57
|
-
|
58
|
-
#
|
59
|
-
# @todo Original = _"The source parameter exists so that providers using the same
|
60
|
-
# source can specify this, so reading doesn't attempt to read the
|
61
|
-
# same package multiple times."_ This seems to be a package type specific attribute. Is this really
|
62
|
-
# used?
|
63
|
-
#
|
64
|
-
# @return [???] The source is WHAT?
|
65
|
-
attr_writer :source
|
66
|
-
|
67
|
-
# @todo What is this type? A reference to a Puppet::Type ?
|
68
|
-
# @return [Puppet::Type] the resource type (that this provider is ... WHAT?)
|
69
|
-
#
|
70
|
-
attr_accessor :resource_type
|
71
|
-
|
72
|
-
# @!attribute [r] doc
|
73
|
-
# The (full) documentation for this provider class. The documentation for the provider class itself
|
74
|
-
# should be set with the DSL method {desc=}. Setting the documentation with with {doc=} has the same effect
|
75
|
-
# as setting it with {desc=} (only the class documentation part is set). In essence this means that
|
76
|
-
# there is no getter for the class documentation part (since the getter returns the full
|
77
|
-
# documentation when there are additional contributors).
|
78
|
-
#
|
79
|
-
# @return [String] Returns the full documentation for the provider.
|
80
|
-
# @see Puppet::Utils::Docs
|
81
|
-
# @comment This is puzzling ... a write only doc attribute??? The generated setter never seems to be
|
82
|
-
# used, instead the instance variable @doc is set in the `desc` method. This seems wrong. It is instead
|
83
|
-
# documented as a read only attribute (to get the full documentation). Also see doc below for
|
84
|
-
# desc.
|
85
|
-
# @!attribute [w] desc
|
86
|
-
# Sets the documentation of this provider class. (The full documentation is read via the
|
87
|
-
# {doc} attribute).
|
88
|
-
#
|
89
|
-
# @dsl type
|
90
|
-
#
|
91
|
-
attr_writer :doc
|
92
|
-
end
|
93
|
-
|
94
|
-
# @return [???] This resource is what? Is an instance of a provider attached to one particular Puppet::Resource?
|
95
|
-
#
|
96
|
-
attr_accessor :resource
|
97
|
-
|
98
|
-
# Convenience methods - see class method with the same name.
|
99
|
-
# @return (see self.execute)
|
100
|
-
def execute(*args)
|
101
|
-
Puppet::Util::Execution.execute(*args)
|
102
|
-
end
|
103
|
-
|
104
|
-
# (see Puppet::Util::Execution.execute)
|
105
|
-
def self.execute(*args)
|
106
|
-
Puppet::Util::Execution.execute(*args)
|
107
|
-
end
|
108
|
-
|
109
|
-
# Convenience methods - see class method with the same name.
|
110
|
-
# @return (see self.execpipe)
|
111
|
-
def execpipe(*args, &block)
|
112
|
-
Puppet::Util::Execution.execpipe(*args, &block)
|
113
|
-
end
|
114
|
-
|
115
|
-
# (see Puppet::Util::Execution.execpipe)
|
116
|
-
def self.execpipe(*args, &block)
|
117
|
-
Puppet::Util::Execution.execpipe(*args, &block)
|
118
|
-
end
|
119
|
-
|
120
|
-
# Convenience methods - see class method with the same name.
|
121
|
-
# @return (see self.execfail)
|
122
|
-
# @deprecated
|
123
|
-
def execfail(*args)
|
124
|
-
Puppet::Util::Execution.execfail(*args)
|
125
|
-
end
|
126
|
-
|
127
|
-
# (see Puppet::Util::Execution.execfail)
|
128
|
-
# @deprecated
|
129
|
-
def self.execfail(*args)
|
130
|
-
Puppet::Util::Execution.execfail(*args)
|
131
|
-
end
|
132
|
-
|
133
|
-
# Returns the absolute path to the executable for the command referenced by the given name.
|
134
|
-
# @raise [Puppet::DevError] if the name does not reference an existing command.
|
135
|
-
# @return [String] the absolute path to the found executable for the command
|
136
|
-
# @see which
|
137
|
-
# @api public
|
138
|
-
def self.command(name)
|
139
|
-
name = name.intern
|
140
|
-
|
141
|
-
if defined?(@commands) and command = @commands[name]
|
142
|
-
# nothing
|
143
|
-
elsif superclass.respond_to? :command and command = superclass.command(name)
|
144
|
-
# nothing
|
145
|
-
else
|
146
|
-
raise Puppet::DevError, _("No command %{command} defined for provider %{provider}") % { command: name, provider: self.name }
|
147
|
-
end
|
148
|
-
|
149
|
-
which(command)
|
150
|
-
end
|
151
|
-
|
152
|
-
# Confines this provider to be suitable only on hosts where the given commands are present.
|
153
|
-
# Also see {Puppet::Confiner#confine} for other types of confinement of a provider by use of other types of
|
154
|
-
# predicates.
|
155
|
-
#
|
156
|
-
# @note It is preferred if the commands are not entered with absolute paths as this allows puppet
|
157
|
-
# to search for them using the PATH variable.
|
158
|
-
#
|
159
|
-
# @param command_specs [Hash{String => String}] Map of name to command that the provider will
|
160
|
-
# be executing on the system. Each command is specified with a name and the path of the executable.
|
161
|
-
# @return [void]
|
162
|
-
# @see optional_commands
|
163
|
-
# @api public
|
164
|
-
#
|
165
|
-
def self.commands(command_specs)
|
166
|
-
command_specs.each do |name, path|
|
167
|
-
has_command(name, path)
|
168
|
-
end
|
169
|
-
end
|
170
|
-
|
171
|
-
# Defines optional commands.
|
172
|
-
# Since Puppet 2.7.8 this is typically not needed as evaluation of provider suitability
|
173
|
-
# is lazy (when a resource is evaluated) and the absence of commands
|
174
|
-
# that will be present after other resources have been applied no longer needs to be specified as
|
175
|
-
# optional.
|
176
|
-
# @param [Hash{String => String}] hash Named commands that the provider will
|
177
|
-
# be executing on the system. Each command is specified with a name and the path of the executable.
|
178
|
-
# (@see #has_command)
|
179
|
-
# @see commands
|
180
|
-
# @api public
|
181
|
-
def self.optional_commands(hash)
|
182
|
-
hash.each do |name, target|
|
183
|
-
has_command(name, target) do
|
184
|
-
is_optional
|
185
|
-
end
|
186
|
-
end
|
187
|
-
end
|
188
|
-
|
189
|
-
# Creates a convenience method for invocation of a command.
|
190
|
-
#
|
191
|
-
# This generates a Provider method that allows easy execution of the command. The generated
|
192
|
-
# method may take arguments that will be passed through to the executable as the command line arguments
|
193
|
-
# when it is invoked.
|
194
|
-
#
|
195
|
-
# @example Use it like this:
|
196
|
-
# has_command(:echo, "/bin/echo")
|
197
|
-
# def some_method
|
198
|
-
# echo("arg 1", "arg 2")
|
199
|
-
# end
|
200
|
-
# @comment the . . . below is intentional to avoid the three dots to become an illegible ellipsis char.
|
201
|
-
# @example . . . or like this
|
202
|
-
# has_command(:echo, "/bin/echo") do
|
203
|
-
# is_optional
|
204
|
-
# environment :HOME => "/var/tmp", :PWD => "/tmp"
|
205
|
-
# end
|
206
|
-
#
|
207
|
-
# @param name [Symbol] The name of the command (will become the name of the generated method that executes the command)
|
208
|
-
# @param path [String] The path to the executable for the command
|
209
|
-
# @yield [ ] A block that configures the command (see {Puppet::Provider::Command})
|
210
|
-
# @comment a yield [ ] produces {|| ...} in the signature, do not remove the space.
|
211
|
-
# @note the name ´has_command´ looks odd in an API context, but makes more sense when seen in the internal
|
212
|
-
# DSL context where a Provider is declaratively defined.
|
213
|
-
# @api public
|
214
|
-
#
|
215
|
-
def self.has_command(name, path, &block)
|
216
|
-
name = name.intern
|
217
|
-
command = CommandDefiner.define(name, path, self, &block)
|
218
|
-
|
219
|
-
@commands[name] = command.executable
|
220
|
-
|
221
|
-
# Now define the class and instance methods.
|
222
|
-
create_class_and_instance_method(name) do |*args|
|
223
|
-
return command.execute(*args)
|
224
|
-
end
|
225
|
-
end
|
226
|
-
|
227
|
-
# Internal helper class when creating commands - undocumented.
|
228
|
-
# @api private
|
229
|
-
class CommandDefiner
|
230
|
-
private_class_method :new
|
231
|
-
|
232
|
-
def self.define(name, path, confiner, &block)
|
233
|
-
definer = new(name, path, confiner)
|
234
|
-
definer.instance_eval(&block) if block
|
235
|
-
definer.command
|
236
|
-
end
|
237
|
-
|
238
|
-
def initialize(name, path, confiner)
|
239
|
-
@name = name
|
240
|
-
@path = path
|
241
|
-
@optional = false
|
242
|
-
@confiner = confiner
|
243
|
-
@custom_environment = {}
|
244
|
-
end
|
245
|
-
|
246
|
-
def is_optional
|
247
|
-
@optional = true
|
248
|
-
end
|
249
|
-
|
250
|
-
def environment(env)
|
251
|
-
@custom_environment = @custom_environment.merge(env)
|
252
|
-
end
|
253
|
-
|
254
|
-
def command
|
255
|
-
if not @optional
|
256
|
-
@confiner.confine :exists => @path, :for_binary => true
|
257
|
-
end
|
258
|
-
|
259
|
-
Puppet::Provider::Command.new(@name, @path, Puppet::Util, Puppet::Util::Execution, { :failonfail => true, :combine => true, :custom_environment => @custom_environment })
|
260
|
-
end
|
261
|
-
end
|
262
|
-
|
263
|
-
# @return [Boolean] Return whether the given feature has been declared or not.
|
264
|
-
def self.declared_feature?(name)
|
265
|
-
defined?(@declared_features) and @declared_features.include?(name)
|
266
|
-
end
|
267
|
-
|
268
|
-
# @return [Boolean] Returns whether this implementation satisfies all of the default requirements or not.
|
269
|
-
# Returns false if there is no matching defaultfor
|
270
|
-
# @see Provider.defaultfor
|
271
|
-
#
|
272
|
-
def self.default?
|
273
|
-
default_match ? true : false
|
274
|
-
end
|
275
|
-
|
276
|
-
# Look through the array of defaultfor hashes and return the first match.
|
277
|
-
# @return [Hash<{String => Object}>] the matching hash specified by a defaultfor
|
278
|
-
# @see Provider.defaultfor
|
279
|
-
# @api private
|
280
|
-
def self.default_match
|
281
|
-
return nil if some_default_match(@notdefaults) # Blacklist means this provider cannot be a default
|
282
|
-
some_default_match(@defaults)
|
283
|
-
end
|
284
|
-
|
285
|
-
def self.some_default_match(defaultlist)
|
286
|
-
defaultlist.find do |default|
|
287
|
-
default.all? do |key, values|
|
288
|
-
case key
|
289
|
-
when :feature
|
290
|
-
feature_match(values)
|
291
|
-
else
|
292
|
-
fact_match(key, values)
|
293
|
-
end
|
294
|
-
end
|
295
|
-
end
|
296
|
-
end
|
297
|
-
|
298
|
-
# Compare a fact value against one or more supplied value
|
299
|
-
# @param [Symbol] fact a fact to query to match against one of the given values
|
300
|
-
# @param [Array, Regexp, String] values one or more values to compare to the
|
301
|
-
# value of the given fact
|
302
|
-
# @return [Boolean] whether or not the fact value matches one of the supplied
|
303
|
-
# values. Given one or more Regexp instances, fact is compared via the basic
|
304
|
-
# pattern-matching operator.
|
305
|
-
def self.fact_match(fact, values)
|
306
|
-
fact_val = Facter.value(fact).to_s.downcase
|
307
|
-
if fact_val.empty?
|
308
|
-
return false
|
309
|
-
else
|
310
|
-
values = [values] unless values.is_a?(Array)
|
311
|
-
values.any? do |value|
|
312
|
-
if value.is_a?(Regexp)
|
313
|
-
fact_val =~ value
|
314
|
-
else
|
315
|
-
fact_val.intern == value.to_s.downcase.intern
|
316
|
-
end
|
317
|
-
end
|
318
|
-
end
|
319
|
-
end
|
320
|
-
|
321
|
-
def self.feature_match(value)
|
322
|
-
Puppet.features.send(value.to_s + "?")
|
323
|
-
end
|
324
|
-
|
325
|
-
# Sets a facts filter that determine which of several suitable providers should be picked by default.
|
326
|
-
# This selection only kicks in if there is more than one suitable provider.
|
327
|
-
# To filter on multiple facts the given hash may contain more than one fact name/value entry.
|
328
|
-
# The filter picks the provider if all the fact/value entries match the current set of facts. (In case
|
329
|
-
# there are still more than one provider after this filtering, the first found is picked).
|
330
|
-
# @param hash [Hash<{String => Object}>] hash of fact name to fact value.
|
331
|
-
# @return [void]
|
332
|
-
#
|
333
|
-
def self.defaultfor(hash)
|
334
|
-
@defaults << hash
|
335
|
-
end
|
336
|
-
|
337
|
-
def self.notdefaultfor(hash)
|
338
|
-
@notdefaults << hash
|
339
|
-
end
|
340
|
-
|
341
|
-
# @return [Integer] Returns a numeric specificity for this provider based on how many requirements it has
|
342
|
-
# and number of _ancestors_. The higher the number the more specific the provider.
|
343
|
-
# The number of requirements is based on the hash size of the matching {Provider.defaultfor}.
|
344
|
-
#
|
345
|
-
# The _ancestors_ is the Ruby Module::ancestors method and the number of classes returned is used
|
346
|
-
# to boost the score. The intent is that if two providers are equal, but one is more "derived" than the other
|
347
|
-
# (i.e. includes more classes), it should win because it is more specific).
|
348
|
-
# @note Because of how this value is
|
349
|
-
# calculated there could be surprising side effects if a provider included an excessive amount of classes.
|
350
|
-
#
|
351
|
-
def self.specificity
|
352
|
-
# This strange piece of logic attempts to figure out how many parent providers there
|
353
|
-
# are to increase the score. What is will actually do is count all classes that Ruby Module::ancestors
|
354
|
-
# returns (which can be other classes than those the parent chain) - in a way, an odd measure of the
|
355
|
-
# complexity of a provider).
|
356
|
-
match = default_match
|
357
|
-
length = match ? match.length : 0
|
358
|
-
|
359
|
-
(length * 100) + ancestors.select { |a| a.is_a? Class }.length
|
360
|
-
end
|
361
|
-
|
362
|
-
# Initializes defaults and commands (i.e. clears them).
|
363
|
-
# @return [void]
|
364
|
-
def self.initvars
|
365
|
-
@defaults = []
|
366
|
-
@notdefaults = []
|
367
|
-
@commands = {}
|
368
|
-
end
|
369
|
-
|
370
|
-
# Returns a list of system resources (entities) this provider may/can manage.
|
371
|
-
# This is a query mechanism that lists entities that the provider may manage on a given system. It is
|
372
|
-
# is directly used in query services, but is also the foundation for other services; prefetching, and
|
373
|
-
# purging.
|
374
|
-
#
|
375
|
-
# As an example, a package provider lists all installed packages. (In contrast, the File provider does
|
376
|
-
# not list all files on the file-system as that would make execution incredibly slow). An implementation
|
377
|
-
# of this method should be made if it is possible to quickly (with a single system call) provide all
|
378
|
-
# instances.
|
379
|
-
#
|
380
|
-
# An implementation of this method should only cache the values of properties
|
381
|
-
# if they are discovered as part of the process for finding existing resources.
|
382
|
-
# Resource properties that require additional commands (than those used to determine existence/identity)
|
383
|
-
# should be implemented in their respective getter method. (This is important from a performance perspective;
|
384
|
-
# it may be expensive to compute, as well as wasteful as all discovered resources may perhaps not be managed).
|
385
|
-
#
|
386
|
-
# An implementation may return an empty list (naturally with the effect that it is not possible to query
|
387
|
-
# for manageable entities).
|
388
|
-
#
|
389
|
-
# By implementing this method, it is possible to use the `resources´ resource type to specify purging
|
390
|
-
# of all non managed entities.
|
391
|
-
#
|
392
|
-
# @note The returned instances are instance of some subclass of Provider, not resources.
|
393
|
-
# @return [Array<Puppet::Provider>] a list of providers referencing the system entities
|
394
|
-
# @abstract this method must be implemented by a subclass and this super method should never be called as it raises an exception.
|
395
|
-
# @raise [Puppet::DevError] Error indicating that the method should have been implemented by subclass.
|
396
|
-
# @see prefetch
|
397
|
-
def self.instances
|
398
|
-
raise Puppet::DevError, _("Provider %{provider} has not defined the 'instances' class method") % { provider: self.name }
|
399
|
-
end
|
400
|
-
|
401
|
-
# Creates getter- and setter- methods for each property supported by the resource type.
|
402
|
-
# Call this method to generate simple accessors for all properties supported by the
|
403
|
-
# resource type. These simple accessors lookup and sets values in the property hash.
|
404
|
-
# The generated methods may be overridden by more advanced implementations if something
|
405
|
-
# else than a straight forward getter/setter pair of methods is required.
|
406
|
-
# (i.e. define such overriding methods after this method has been called)
|
407
|
-
#
|
408
|
-
# An implementor of a provider that makes use of `prefetch` and `flush` can use this method since it uses
|
409
|
-
# the internal `@property_hash` variable to store values. An implementation would then update the system
|
410
|
-
# state on a call to `flush` based on the current values in the `@property_hash`.
|
411
|
-
#
|
412
|
-
# @return [void]
|
413
|
-
#
|
414
|
-
def self.mk_resource_methods
|
415
|
-
[resource_type.validproperties, resource_type.parameters].flatten.each do |attr|
|
416
|
-
attr = attr.intern
|
417
|
-
next if attr == :name
|
418
|
-
define_method(attr) do
|
419
|
-
if @property_hash[attr].nil?
|
420
|
-
:absent
|
421
|
-
else
|
422
|
-
@property_hash[attr]
|
423
|
-
end
|
424
|
-
end
|
425
|
-
|
426
|
-
define_method(attr.to_s + "=") do |val|
|
427
|
-
@property_hash[attr] = val
|
428
|
-
end
|
429
|
-
end
|
430
|
-
end
|
431
|
-
|
432
|
-
self.initvars
|
433
|
-
|
434
|
-
# This method is used to generate a method for a command.
|
435
|
-
# @return [void]
|
436
|
-
# @api private
|
437
|
-
#
|
438
|
-
def self.create_class_and_instance_method(name, &block)
|
439
|
-
unless singleton_class.method_defined?(name)
|
440
|
-
meta_def(name, &block)
|
441
|
-
end
|
442
|
-
|
443
|
-
unless method_defined?(name)
|
444
|
-
define_method(name) do |*args|
|
445
|
-
self.class.send(name, *args)
|
446
|
-
end
|
447
|
-
end
|
448
|
-
end
|
449
|
-
private_class_method :create_class_and_instance_method
|
450
|
-
|
451
|
-
# @return [String] Returns the data source, which is the provider name if no other source has been set.
|
452
|
-
# @todo Unclear what "the source" is used for?
|
453
|
-
def self.source
|
454
|
-
@source ||= self.name
|
455
|
-
end
|
456
|
-
|
457
|
-
# Returns true if the given attribute/parameter is supported by the provider.
|
458
|
-
# The check is made that the parameter is a valid parameter for the resource type, and then
|
459
|
-
# if all its required features (if any) are supported by the provider.
|
460
|
-
#
|
461
|
-
# @param param [Class, Puppet::Parameter] the parameter class, or a parameter instance
|
462
|
-
# @return [Boolean] Returns whether this provider supports the given parameter or not.
|
463
|
-
# @raise [Puppet::DevError] if the given parameter is not valid for the resource type
|
464
|
-
#
|
465
|
-
def self.supports_parameter?(param)
|
466
|
-
if param.is_a?(Class)
|
467
|
-
klass = param
|
468
|
-
else
|
469
|
-
unless klass = resource_type.attrclass(param)
|
470
|
-
raise Puppet::DevError, _("'%{parameter_name}' is not a valid parameter for %{resource_type}") % { parameter_name: param, resource_type: resource_type.name }
|
471
|
-
end
|
472
|
-
end
|
473
|
-
return true unless features = klass.required_features
|
474
|
-
|
475
|
-
!!satisfies?(*features)
|
476
|
-
end
|
477
|
-
|
478
|
-
dochook(:defaults) do
|
479
|
-
if @defaults.length > 0
|
480
|
-
return @defaults.collect do |d|
|
481
|
-
"Default for " + d.collect do |f, v|
|
482
|
-
"`#{f}` == `#{[v].flatten.join(', ')}`"
|
483
|
-
end.sort.join(" and ") + "."
|
484
|
-
end.join(" ")
|
485
|
-
end
|
486
|
-
end
|
487
|
-
|
488
|
-
dochook(:commands) do
|
489
|
-
if @commands.length > 0
|
490
|
-
return "Required binaries: " + @commands.collect do |n, c|
|
491
|
-
"`#{c}`"
|
492
|
-
end.sort.join(", ") + "."
|
493
|
-
end
|
494
|
-
end
|
495
|
-
|
496
|
-
dochook(:features) do
|
497
|
-
if features.length > 0
|
498
|
-
return "Supported features: " + features.collect do |f|
|
499
|
-
"`#{f}`"
|
500
|
-
end.sort.join(", ") + "."
|
501
|
-
end
|
502
|
-
end
|
503
|
-
|
504
|
-
# Clears this provider instance to allow GC to clean up.
|
505
|
-
def clear
|
506
|
-
@resource = nil
|
507
|
-
end
|
508
|
-
|
509
|
-
# (see command)
|
510
|
-
def command(name)
|
511
|
-
self.class.command(name)
|
512
|
-
end
|
513
|
-
|
514
|
-
# Returns the value of a parameter value, or `:absent` if it is not defined.
|
515
|
-
# @param param [Puppet::Parameter] the parameter to obtain the value of
|
516
|
-
# @return [Object] the value of the parameter or `:absent` if not defined.
|
517
|
-
#
|
518
|
-
def get(param)
|
519
|
-
@property_hash[param.intern] || :absent
|
520
|
-
end
|
521
|
-
|
522
|
-
# Creates a new provider that is optionally initialized from a resource or a hash of properties.
|
523
|
-
# If no argument is specified, a new non specific provider is initialized. If a resource is given
|
524
|
-
# it is remembered for further operations. If a hash is used it becomes the internal `@property_hash`
|
525
|
-
# structure of the provider - this hash holds the current state property values of system entities
|
526
|
-
# as they are being discovered by querying or other operations (typically getters).
|
527
|
-
#
|
528
|
-
# @todo The use of a hash as a parameter needs a better explanation; why is this done? What is the intent?
|
529
|
-
# @param resource [Puppet::Resource, Hash] optional resource or hash
|
530
|
-
#
|
531
|
-
def initialize(resource = nil)
|
532
|
-
if resource.is_a?(Hash)
|
533
|
-
# We don't use a duplicate here, because some providers (ParsedFile, at least)
|
534
|
-
# use the hash here for later events.
|
535
|
-
@property_hash = resource
|
536
|
-
elsif resource
|
537
|
-
@resource = resource
|
538
|
-
@property_hash = {}
|
539
|
-
else
|
540
|
-
@property_hash = {}
|
541
|
-
end
|
542
|
-
end
|
543
|
-
|
544
|
-
# Returns the name of the resource this provider is operating on.
|
545
|
-
# @return [String] the name of the resource instance (e.g. the file path of a File).
|
546
|
-
# @raise [Puppet::DevError] if no resource is set, or no name defined.
|
547
|
-
#
|
548
|
-
def name
|
549
|
-
if n = @property_hash[:name]
|
550
|
-
return n
|
551
|
-
elsif self.resource
|
552
|
-
resource.name
|
553
|
-
else
|
554
|
-
raise Puppet::DevError, _("No resource and no name in property hash in %{class_name} instance") % { class_name: self.class.name }
|
555
|
-
end
|
556
|
-
end
|
557
|
-
|
558
|
-
# Sets the given parameters values as the current values for those parameters.
|
559
|
-
# Other parameters are unchanged.
|
560
|
-
# @param [Array<Puppet::Parameter>] params the parameters with values that should be set
|
561
|
-
# @return [void]
|
562
|
-
#
|
563
|
-
def set(params)
|
564
|
-
params.each do |param, value|
|
565
|
-
@property_hash[param.intern] = value
|
566
|
-
end
|
567
|
-
end
|
568
|
-
|
569
|
-
# @return [String] Returns a human readable string with information about the resource and the provider.
|
570
|
-
def to_s
|
571
|
-
"#{@resource}(provider=#{self.class.name})"
|
572
|
-
end
|
573
|
-
|
574
|
-
# @return [String] Returns a human readable string with information about the resource and the provider.
|
575
|
-
def inspect
|
576
|
-
to_s
|
577
|
-
end
|
578
|
-
|
579
|
-
# Makes providers comparable.
|
580
|
-
include Comparable
|
581
|
-
# Compares this provider against another provider.
|
582
|
-
# Comparison is only possible with another provider (no other class).
|
583
|
-
# The ordering is based on the class name of the two providers.
|
584
|
-
#
|
585
|
-
# @return [-1,0,+1, nil] A comparison result -1, 0, +1 if this is before other, equal or after other. Returns
|
586
|
-
# nil oif not comparable to other.
|
587
|
-
# @see Comparable
|
588
|
-
def <=>(other)
|
589
|
-
# We can only have ordering against other providers.
|
590
|
-
return nil unless other.is_a? Puppet::Provider
|
591
|
-
# Otherwise, order by the providers class name.
|
592
|
-
return self.class.name <=> other.class.name
|
593
|
-
end
|
594
|
-
|
595
|
-
# @comment Document prefetch here as it does not exist anywhere else (called from transaction if implemented)
|
596
|
-
# @!method self.prefetch(resource_hash)
|
597
|
-
# @abstract A subclass may implement this - it is not implemented in the Provider class
|
598
|
-
# This method may be implemented by a provider in order to pre-fetch resource properties.
|
599
|
-
# If implemented it should set the provider instance of the managed resources to a provider with the
|
600
|
-
# fetched state (i.e. what is returned from the {instances} method).
|
601
|
-
# @param resources_hash [Hash<{String => Puppet::Resource}>] map from name to resource of resources to prefetch
|
602
|
-
# @return [void]
|
603
|
-
# @api public
|
604
|
-
|
605
|
-
# @comment Document post_resource_eval here as it does not exist anywhere else (called from transaction if implemented)
|
606
|
-
# @!method self.post_resource_eval()
|
607
|
-
# @since 3.4.0
|
608
|
-
# @api public
|
609
|
-
# @abstract A subclass may implement this - it is not implemented in the Provider class
|
610
|
-
# This method may be implemented by a provider in order to perform any
|
611
|
-
# cleanup actions needed. It will be called at the end of the transaction if
|
612
|
-
# any resources in the catalog make use of the provider, regardless of
|
613
|
-
# whether the resources are changed or not and even if resource failures occur.
|
614
|
-
# @return [void]
|
615
|
-
|
616
|
-
# @comment Document flush here as it does not exist anywhere (called from transaction if implemented)
|
617
|
-
# @!method flush()
|
618
|
-
# @abstract A subclass may implement this - it is not implemented in the Provider class
|
619
|
-
# This method may be implemented by a provider in order to flush properties that has not been individually
|
620
|
-
# applied to the managed entity's current state.
|
621
|
-
# @return [void]
|
622
|
-
# @api public
|
623
|
-
end
|
624
|
-
|