puppet 2.7.3 → 2.7.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of puppet might be problematic. Click here for more details.
- data/CHANGELOG +166 -0
- data/install.rb +27 -7
- data/lib/puppet/application/agent.rb +29 -29
- data/lib/puppet/application/doc.rb +1 -1
- data/lib/puppet/application/inspect.rb +9 -1
- data/lib/puppet/application/master.rb +2 -0
- data/lib/puppet/application/queue.rb +1 -1
- data/lib/puppet/application/resource.rb +3 -0
- data/lib/puppet/application.rb +4 -5
- data/lib/puppet/configurer.rb +1 -4
- data/lib/puppet/defaults.rb +45 -15
- data/lib/puppet/feature/base.rb +28 -17
- data/lib/puppet/feature/rails.rb +0 -3
- data/lib/puppet/feature/rubygems.rb +0 -3
- data/lib/puppet/file_bucket/dipper.rb +3 -2
- data/lib/puppet/file_bucket/file.rb +3 -3
- data/lib/puppet/file_serving/base.rb +4 -5
- data/lib/puppet/file_serving/configuration.rb +7 -13
- data/lib/puppet/file_serving/content.rb +0 -4
- data/lib/puppet/file_serving/fileset.rb +7 -6
- data/lib/puppet/file_serving/indirection_hooks.rb +1 -4
- data/lib/puppet/file_serving/metadata.rb +0 -4
- data/lib/puppet/file_serving/mount/file.rb +9 -12
- data/lib/puppet/file_serving/mount.rb +0 -5
- data/lib/puppet/file_serving/terminus_helper.rb +0 -4
- data/lib/puppet/file_serving.rb +0 -4
- data/lib/puppet/indirector/catalog/compiler.rb +0 -18
- data/lib/puppet/indirector/catalog/store_configs.rb +5 -0
- data/lib/puppet/indirector/direct_file_server.rb +0 -4
- data/lib/puppet/indirector/facts/facter.rb +2 -2
- data/lib/puppet/indirector/facts/store_configs.rb +5 -0
- data/lib/puppet/indirector/file_content/file.rb +0 -4
- data/lib/puppet/indirector/file_content/file_server.rb +0 -4
- data/lib/puppet/indirector/file_content/rest.rb +0 -4
- data/lib/puppet/indirector/file_metadata/file.rb +0 -4
- data/lib/puppet/indirector/file_metadata/file_server.rb +0 -4
- data/lib/puppet/indirector/file_metadata/rest.rb +0 -4
- data/lib/puppet/indirector/file_server.rb +1 -5
- data/lib/puppet/indirector/indirection.rb +3 -5
- data/lib/puppet/indirector/node/store_configs.rb +5 -0
- data/lib/puppet/indirector/request.rb +3 -1
- data/lib/puppet/indirector/resource/active_record.rb +97 -0
- data/lib/puppet/indirector/resource/store_configs.rb +3 -0
- data/lib/puppet/indirector/ssl_file.rb +5 -1
- data/lib/puppet/indirector/store_configs.rb +30 -0
- data/lib/puppet/indirector/yaml.rb +5 -0
- data/lib/puppet/indirector.rb +7 -0
- data/lib/puppet/network/client.rb +0 -5
- data/lib/puppet/network/http_pool.rb +0 -56
- data/lib/puppet/node/environment.rb +9 -11
- data/lib/puppet/parameter/path.rb +1 -5
- data/lib/puppet/parameter.rb +1 -7
- data/lib/puppet/parser/ast/collection.rb +2 -2
- data/lib/puppet/parser/ast/collexpr.rb +10 -39
- data/lib/puppet/parser/collector.rb +41 -90
- data/lib/puppet/parser/compiler.rb +0 -3
- data/lib/puppet/parser/functions/create_resources.rb +22 -10
- data/lib/puppet/parser/functions/versioncmp.rb +9 -6
- data/lib/puppet/parser/resource.rb +1 -1
- data/lib/puppet/parser/type_loader.rb +2 -1
- data/lib/puppet/provider/augeas/augeas.rb +5 -3
- data/lib/puppet/provider/cron/crontab.rb +2 -2
- data/lib/puppet/provider/exec/posix.rb +23 -96
- data/lib/puppet/provider/exec/shell.rb +11 -2
- data/lib/puppet/provider/exec/windows.rb +35 -0
- data/lib/puppet/provider/exec.rb +79 -0
- data/lib/puppet/provider/group/windows_adsi.rb +48 -0
- data/lib/puppet/provider/host/parsed.rb +3 -0
- data/lib/puppet/provider/macauthorization/macauthorization.rb +4 -4
- data/lib/puppet/provider/mount.rb +0 -3
- data/lib/puppet/provider/naginator.rb +0 -3
- data/lib/puppet/provider/package/appdmg.rb +0 -1
- data/lib/puppet/provider/package/apple.rb +3 -7
- data/lib/puppet/provider/package/apt.rb +0 -1
- data/lib/puppet/provider/package/aptitude.rb +0 -1
- data/lib/puppet/provider/package/aptrpm.rb +0 -1
- data/lib/puppet/provider/package/blastwave.rb +0 -1
- data/lib/puppet/provider/package/dpkg.rb +5 -6
- data/lib/puppet/provider/package/fink.rb +3 -4
- data/lib/puppet/provider/package/freebsd.rb +0 -1
- data/lib/puppet/provider/package/gem.rb +0 -1
- data/lib/puppet/provider/package/hpux.rb +3 -3
- data/lib/puppet/provider/package/macports.rb +0 -1
- data/lib/puppet/provider/package/msi.rb +82 -0
- data/lib/puppet/provider/package/openbsd.rb +18 -19
- data/lib/puppet/provider/package/pip.rb +0 -1
- data/lib/puppet/provider/package/pkg.rb +0 -1
- data/lib/puppet/provider/package/pkgdmg.rb +9 -7
- data/lib/puppet/provider/package/pkgutil.rb +0 -1
- data/lib/puppet/provider/package/ports.rb +0 -1
- data/lib/puppet/provider/package/portupgrade.rb +183 -193
- data/lib/puppet/provider/package/rpm.rb +1 -1
- data/lib/puppet/provider/package/sun.rb +0 -1
- data/lib/puppet/provider/package/sunfreeware.rb +0 -2
- data/lib/puppet/provider/package/up2date.rb +0 -1
- data/lib/puppet/provider/package/urpmi.rb +0 -1
- data/lib/puppet/provider/package/yum.rb +1 -1
- data/lib/puppet/provider/package.rb +4 -3
- data/lib/puppet/provider/service/systemd.rb +64 -0
- data/lib/puppet/provider/service/windows.rb +110 -0
- data/lib/puppet/provider/user/windows_adsi.rb +71 -0
- data/lib/puppet/rails/resource.rb +1 -1
- data/lib/puppet/relationship.rb +0 -3
- data/lib/puppet/reports/tagmail.rb +15 -11
- data/lib/puppet/resource/catalog.rb +17 -24
- data/lib/puppet/ssl/certificate_authority.rb +7 -5
- data/lib/puppet/ssl/host.rb +6 -10
- data/lib/puppet/type/augeas.rb +19 -13
- data/lib/puppet/type/cron.rb +13 -12
- data/lib/puppet/type/exec.rb +17 -17
- data/lib/puppet/type/file/content.rb +7 -3
- data/lib/puppet/type/file/source.rb +14 -9
- data/lib/puppet/type/file.rb +44 -23
- data/lib/puppet/type/filebucket.rb +13 -5
- data/lib/puppet/type/package.rb +14 -1
- data/lib/puppet/type/service.rb +11 -1
- data/lib/puppet/type/ssh_authorized_key.rb +3 -1
- data/lib/puppet/type.rb +8 -17
- data/lib/puppet/util/adsi.rb +278 -0
- data/lib/puppet/util/autoload.rb +0 -2
- data/lib/puppet/util/cacher.rb +15 -67
- data/lib/puppet/util/feature.rb +0 -3
- data/lib/puppet/util/graph.rb +0 -3
- data/lib/puppet/util/ldap/connection.rb +0 -3
- data/lib/puppet/util/ldap/generator.rb +0 -3
- data/lib/puppet/util/ldap.rb +0 -3
- data/lib/puppet/util/log_paths.rb +0 -3
- data/lib/puppet/util/network_device/cisco/device.rb +2 -1
- data/lib/puppet/util/network_device/cisco/facts.rb +1 -1
- data/lib/puppet/util/pidlock.rb +5 -1
- data/lib/puppet/util/rdoc/parser.rb +3 -1
- data/lib/puppet/util/run_mode.rb +2 -2
- data/lib/puppet/util/settings/file_setting.rb +3 -2
- data/lib/puppet/util/settings.rb +4 -6
- data/lib/puppet/util/suidmanager.rb +62 -15
- data/lib/puppet/util.rb +113 -131
- data/lib/puppet.rb +1 -1
- data/spec/integration/application/doc_spec.rb +1 -1
- data/spec/integration/defaults_spec.rb +22 -17
- data/spec/integration/file_serving/content_spec.rb +0 -6
- data/spec/integration/file_serving/metadata_spec.rb +0 -6
- data/spec/integration/file_serving/terminus_helper_spec.rb +1 -1
- data/spec/integration/indirector/direct_file_server_spec.rb +5 -7
- data/spec/integration/indirector/file_content/file_server_spec.rb +2 -6
- data/spec/integration/indirector/file_metadata/file_server_spec.rb +1 -5
- data/spec/integration/network/server/webrick_spec.rb +6 -9
- data/spec/integration/node/facts_spec.rb +0 -6
- data/spec/integration/node_spec.rb +3 -4
- data/spec/integration/parser/compiler_spec.rb +2 -1
- data/spec/integration/parser/parser_spec.rb +2 -4
- data/spec/integration/provider/mount_spec.rb +1 -1
- data/spec/integration/provider/package_spec.rb +13 -3
- data/spec/integration/provider/ssh_authorized_key_spec.rb +4 -4
- data/spec/integration/reports_spec.rb +0 -4
- data/spec/integration/resource/catalog_spec.rb +0 -5
- data/spec/integration/ssl/certificate_authority_spec.rb +6 -14
- data/spec/integration/ssl/certificate_request_spec.rb +10 -17
- data/spec/integration/ssl/certificate_revocation_list_spec.rb +8 -13
- data/spec/integration/ssl/host_spec.rb +8 -14
- data/spec/integration/transaction/report_spec.rb +0 -5
- data/spec/integration/transaction_spec.rb +11 -13
- data/spec/integration/type/file_spec.rb +16 -16
- data/spec/integration/type/tidy_spec.rb +1 -1
- data/spec/integration/util/settings_spec.rb +2 -2
- data/spec/integration/util_spec.rb +13 -0
- data/spec/lib/puppet_spec/files.rb +18 -10
- data/spec/shared_behaviours/file_server_terminus.rb +1 -5
- data/spec/shared_behaviours/file_serving.rb +0 -4
- data/spec/shared_behaviours/memory_terminus.rb +0 -4
- data/spec/shared_behaviours/path_parameters.rb +20 -18
- data/spec/shared_behaviours/store_configs_terminus.rb +21 -0
- data/spec/spec_helper.rb +31 -0
- data/spec/unit/agent_spec.rb +0 -4
- data/spec/unit/application/apply_spec.rb +8 -2
- data/spec/unit/application/certificate_spec.rb +2 -0
- data/spec/unit/application/device_spec.rb +8 -6
- data/spec/unit/application/inspect_spec.rb +2 -1
- data/spec/unit/application/master_spec.rb +7 -2
- data/spec/unit/application/queue_spec.rb +3 -4
- data/spec/unit/application/resource_spec.rb +26 -0
- data/spec/unit/application/secret_agent_spec.rb +3 -1
- data/spec/unit/application_spec.rb +4 -0
- data/spec/unit/configurer/downloader_spec.rb +4 -3
- data/spec/unit/configurer_spec.rb +11 -4
- data/spec/unit/daemon_spec.rb +3 -1
- data/spec/unit/face/ca_spec.rb +1 -1
- data/spec/unit/face/node_spec.rb +5 -1
- data/spec/unit/face/secret_agent_spec.rb +3 -1
- data/spec/unit/file_bucket/dipper_spec.rb +4 -4
- data/spec/unit/file_bucket/file_spec.rb +9 -3
- data/spec/unit/file_serving/configuration_spec.rb +26 -37
- data/spec/unit/file_serving/fileset_spec.rb +71 -55
- data/spec/unit/file_serving/indirection_hooks_spec.rb +0 -4
- data/spec/unit/file_serving/mount/file_spec.rb +163 -169
- data/spec/unit/file_serving/terminus_helper_spec.rb +0 -4
- data/spec/unit/indirector/catalog/compiler_spec.rb +0 -22
- data/spec/unit/indirector/catalog/store_configs_spec.rb +17 -0
- data/spec/unit/indirector/certificate/ca_spec.rb +0 -4
- data/spec/unit/indirector/certificate/file_spec.rb +0 -4
- data/spec/unit/indirector/certificate_request/ca_spec.rb +1 -5
- data/spec/unit/indirector/certificate_request/file_spec.rb +0 -4
- data/spec/unit/indirector/certificate_revocation_list/ca_spec.rb +0 -4
- data/spec/unit/indirector/certificate_revocation_list/file_spec.rb +0 -4
- data/spec/unit/indirector/certificate_status/file_spec.rb +1 -1
- data/spec/unit/indirector/direct_file_server_spec.rb +0 -4
- data/spec/unit/indirector/facts/facter_spec.rb +0 -4
- data/spec/unit/indirector/facts/inventory_active_record_spec.rb +3 -0
- data/spec/unit/indirector/facts/store_configs_spec.rb +17 -0
- data/spec/unit/indirector/file_bucket_file/file_spec.rb +3 -3
- data/spec/unit/indirector/file_content/file_server_spec.rb +0 -4
- data/spec/unit/indirector/file_content/file_spec.rb +0 -4
- data/spec/unit/indirector/file_metadata/file_server_spec.rb +0 -4
- data/spec/unit/indirector/file_metadata/file_spec.rb +0 -4
- data/spec/unit/indirector/file_server_spec.rb +1 -5
- data/spec/unit/indirector/indirection_spec.rb +0 -4
- data/spec/unit/indirector/key/ca_spec.rb +0 -4
- data/spec/unit/indirector/key/file_spec.rb +0 -4
- data/spec/unit/indirector/node/store_configs_spec.rb +16 -0
- data/spec/unit/indirector/report/processor_spec.rb +0 -4
- data/spec/unit/indirector/resource/active_record_spec.rb +192 -0
- data/spec/unit/indirector/resource/ral_spec.rb +1 -1
- data/spec/unit/indirector/resource/store_configs_spec.rb +12 -0
- data/spec/unit/indirector/resource_type/parser_spec.rb +3 -3
- data/spec/unit/indirector/ssl_file_spec.rb +25 -6
- data/spec/unit/indirector/store_configs_spec.rb +8 -0
- data/spec/unit/indirector/yaml_spec.rb +14 -0
- data/spec/unit/module_spec.rb +2 -2
- data/spec/unit/network/handler/fileserver_spec.rb +5 -5
- data/spec/unit/network/http/mongrel_spec.rb +0 -4
- data/spec/unit/network/http/webrick_spec.rb +5 -9
- data/spec/unit/network/http_pool_spec.rb +4 -75
- data/spec/unit/network/http_spec.rb +0 -4
- data/spec/unit/network/server_spec.rb +0 -4
- data/spec/unit/node/environment_spec.rb +18 -31
- data/spec/unit/node/facts_spec.rb +0 -4
- data/spec/unit/node_spec.rb +1 -8
- data/spec/unit/other/selinux_spec.rb +3 -1
- data/spec/unit/parameter_spec.rb +0 -10
- data/spec/unit/parser/ast/collexpr_spec.rb +17 -13
- data/spec/unit/parser/collector_spec.rb +147 -263
- data/spec/unit/parser/compiler_spec.rb +3 -1
- data/spec/unit/parser/files_spec.rb +7 -4
- data/spec/unit/parser/functions/extlookup_spec.rb +6 -3
- data/spec/unit/parser/functions/sprintf_spec.rb +2 -1
- data/spec/unit/parser/type_loader_spec.rb +7 -7
- data/spec/unit/property_spec.rb +1 -1
- data/spec/unit/provider/augeas/augeas_spec.rb +14 -0
- data/spec/unit/provider/exec/posix_spec.rb +102 -106
- data/spec/unit/provider/exec/shell_spec.rb +1 -1
- data/spec/unit/provider/exec/windows_spec.rb +119 -0
- data/spec/unit/provider/group/ldap_spec.rb +0 -4
- data/spec/unit/provider/group/windows_adsi_spec.rb +79 -0
- data/spec/unit/provider/ldap_spec.rb +0 -4
- data/spec/unit/provider/macauthorization_spec.rb +5 -0
- data/spec/unit/provider/mount/parsed_spec.rb +1 -5
- data/spec/unit/provider/package/msi_spec.rb +170 -0
- data/spec/unit/provider/service/redhat_spec.rb +2 -0
- data/spec/unit/provider/service/smf_spec.rb +3 -0
- data/spec/unit/provider/service/systemd_spec.rb +25 -0
- data/spec/unit/provider/service/windows_spec.rb +166 -0
- data/spec/unit/provider/ssh_authorized_key/parsed_spec.rb +2 -2
- data/spec/unit/provider/user/ldap_spec.rb +0 -4
- data/spec/unit/provider/user/user_role_add_spec.rb +1 -1
- data/spec/unit/provider/user/useradd_spec.rb +1 -1
- data/spec/unit/provider/user/windows_adsi_spec.rb +110 -0
- data/spec/unit/relationship_spec.rb +0 -4
- data/spec/unit/resource/catalog_spec.rb +37 -25
- data/spec/unit/resource/status_spec.rb +4 -2
- data/spec/unit/resource_spec.rb +5 -5
- data/spec/unit/simple_graph_spec.rb +0 -4
- data/spec/unit/ssl/certificate_authority_spec.rb +2 -2
- data/spec/unit/ssl/host_spec.rb +12 -13
- data/spec/unit/ssl/inventory_spec.rb +2 -2
- data/spec/unit/sslcertificates/ca_spec.rb +6 -10
- data/spec/unit/transaction/event_manager_spec.rb +4 -2
- data/spec/unit/transaction/event_spec.rb +3 -1
- data/spec/unit/transaction/report_spec.rb +2 -6
- data/spec/unit/transaction/resource_harness_spec.rb +9 -5
- data/spec/unit/transaction_spec.rb +3 -1
- data/spec/unit/type/cron_spec.rb +1 -1
- data/spec/unit/type/exec_spec.rb +80 -47
- data/spec/unit/type/file/checksum_spec.rb +9 -8
- data/spec/unit/type/file/content_spec.rb +2 -1
- data/spec/unit/type/file/selinux_spec.rb +10 -8
- data/spec/unit/type/file/source_spec.rb +18 -36
- data/spec/unit/type/file_spec.rb +170 -217
- data/spec/unit/type/group_spec.rb +1 -1
- data/spec/unit/type/mount_spec.rb +5 -5
- data/spec/unit/type/noop_metaparam_spec.rb +3 -1
- data/spec/unit/type/package_spec.rb +15 -3
- data/spec/unit/type/resources_spec.rb +2 -2
- data/spec/unit/type/service_spec.rb +19 -4
- data/spec/unit/type/ssh_authorized_key_spec.rb +10 -4
- data/spec/unit/type/tidy_spec.rb +3 -1
- data/spec/unit/type/user_spec.rb +1 -1
- data/spec/unit/type_spec.rb +29 -34
- data/spec/unit/util/adsi_spec.rb +202 -0
- data/spec/unit/util/autoload_spec.rb +23 -19
- data/spec/unit/util/backups_spec.rb +16 -13
- data/spec/unit/util/cacher_spec.rb +64 -141
- data/spec/unit/util/checksums_spec.rb +0 -4
- data/spec/unit/util/constant_inflector_spec.rb +0 -4
- data/spec/unit/util/execution_stub_spec.rb +1 -1
- data/spec/unit/util/ldap/connection_spec.rb +0 -4
- data/spec/unit/util/ldap/generator_spec.rb +0 -4
- data/spec/unit/util/ldap/manager_spec.rb +0 -4
- data/spec/unit/util/log_spec.rb +4 -2
- data/spec/unit/util/logging_spec.rb +2 -2
- data/spec/unit/util/nagios_maker_spec.rb +0 -4
- data/spec/unit/util/network_device/cisco/device_spec.rb +2 -1
- data/spec/unit/util/network_device/cisco/facts_spec.rb +3 -1
- data/spec/unit/util/network_device/config_spec.rb +5 -3
- data/spec/unit/util/rdoc/parser_spec.rb +7 -1
- data/spec/unit/util/run_mode_spec.rb +6 -2
- data/spec/unit/util/settings/file_setting_spec.rb +29 -2
- data/spec/unit/util/settings_spec.rb +28 -15
- data/spec/unit/util/storage_spec.rb +1 -1
- data/spec/unit/util/suidmanager_spec.rb +310 -0
- data/spec/unit/util/tagging_spec.rb +0 -4
- data/spec/unit/util_spec.rb +335 -0
- data/test/language/ast/variable.rb +0 -4
- data/test/lib/puppettest/support/resources.rb +0 -4
- data/test/lib/puppettest/testcase.rb +0 -4
- data/test/lib/puppettest.rb +0 -1
- data/test/network/handler/master.rb +0 -5
- data/test/network/server/webrick.rb +5 -22
- data/test/ral/manager/attributes.rb +0 -4
- data/test/ral/manager/instances.rb +0 -4
- data/test/ral/manager/manager.rb +0 -4
- data/test/ral/providers/cron/crontab.rb +1 -0
- data/test/ral/providers/service/base.rb +0 -4
- data/test/ral/type/filesources.rb +0 -1
- data/test/ral/type/resources.rb +0 -4
- data/test/util/utiltest.rb +0 -13
- metadata +36 -9
- data/spec/unit/network/client_spec.rb +0 -45
- data/test/puppet/tc_suidmanager.rb +0 -120
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 2.7.
|
9
|
+
- 4
|
10
|
+
version: 2.7.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Puppet Labs
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
19
|
-
default_executable:
|
18
|
+
date: 2011-09-28 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: facter
|
@@ -187,6 +186,7 @@ files:
|
|
187
186
|
- lib/puppet/indirector/catalog/queue.rb
|
188
187
|
- lib/puppet/indirector/catalog/rest.rb
|
189
188
|
- lib/puppet/indirector/catalog/static_compiler.rb
|
189
|
+
- lib/puppet/indirector/catalog/store_configs.rb
|
190
190
|
- lib/puppet/indirector/catalog/yaml.rb
|
191
191
|
- lib/puppet/indirector/certificate/ca.rb
|
192
192
|
- lib/puppet/indirector/certificate/file.rb
|
@@ -213,6 +213,7 @@ files:
|
|
213
213
|
- lib/puppet/indirector/facts/memory.rb
|
214
214
|
- lib/puppet/indirector/facts/network_device.rb
|
215
215
|
- lib/puppet/indirector/facts/rest.rb
|
216
|
+
- lib/puppet/indirector/facts/store_configs.rb
|
216
217
|
- lib/puppet/indirector/facts/yaml.rb
|
217
218
|
- lib/puppet/indirector/file.rb
|
218
219
|
- lib/puppet/indirector/file_bucket_file/file.rb
|
@@ -238,6 +239,7 @@ files:
|
|
238
239
|
- lib/puppet/indirector/node/memory.rb
|
239
240
|
- lib/puppet/indirector/node/plain.rb
|
240
241
|
- lib/puppet/indirector/node/rest.rb
|
242
|
+
- lib/puppet/indirector/node/store_configs.rb
|
241
243
|
- lib/puppet/indirector/node/yaml.rb
|
242
244
|
- lib/puppet/indirector/plain.rb
|
243
245
|
- lib/puppet/indirector/queue.rb
|
@@ -245,8 +247,10 @@ files:
|
|
245
247
|
- lib/puppet/indirector/report/rest.rb
|
246
248
|
- lib/puppet/indirector/report/yaml.rb
|
247
249
|
- lib/puppet/indirector/request.rb
|
250
|
+
- lib/puppet/indirector/resource/active_record.rb
|
248
251
|
- lib/puppet/indirector/resource/ral.rb
|
249
252
|
- lib/puppet/indirector/resource/rest.rb
|
253
|
+
- lib/puppet/indirector/resource/store_configs.rb
|
250
254
|
- lib/puppet/indirector/resource_type/parser.rb
|
251
255
|
- lib/puppet/indirector/resource_type/rest.rb
|
252
256
|
- lib/puppet/indirector/resource_type.rb
|
@@ -257,6 +261,7 @@ files:
|
|
257
261
|
- lib/puppet/indirector/status/local.rb
|
258
262
|
- lib/puppet/indirector/status/rest.rb
|
259
263
|
- lib/puppet/indirector/status.rb
|
264
|
+
- lib/puppet/indirector/store_configs.rb
|
260
265
|
- lib/puppet/indirector/terminus.rb
|
261
266
|
- lib/puppet/indirector/yaml.rb
|
262
267
|
- lib/puppet/indirector.rb
|
@@ -421,6 +426,8 @@ files:
|
|
421
426
|
- lib/puppet/provider/cron/crontab.rb
|
422
427
|
- lib/puppet/provider/exec/posix.rb
|
423
428
|
- lib/puppet/provider/exec/shell.rb
|
429
|
+
- lib/puppet/provider/exec/windows.rb
|
430
|
+
- lib/puppet/provider/exec.rb
|
424
431
|
- lib/puppet/provider/file/posix.rb
|
425
432
|
- lib/puppet/provider/file/win32.rb
|
426
433
|
- lib/puppet/provider/group/aix.rb
|
@@ -428,6 +435,7 @@ files:
|
|
428
435
|
- lib/puppet/provider/group/groupadd.rb
|
429
436
|
- lib/puppet/provider/group/ldap.rb
|
430
437
|
- lib/puppet/provider/group/pw.rb
|
438
|
+
- lib/puppet/provider/group/windows_adsi.rb
|
431
439
|
- lib/puppet/provider/host/parsed.rb
|
432
440
|
- lib/puppet/provider/interface/base.rb
|
433
441
|
- lib/puppet/provider/interface/cisco.rb
|
@@ -457,6 +465,7 @@ files:
|
|
457
465
|
- lib/puppet/provider/package/gem.rb
|
458
466
|
- lib/puppet/provider/package/hpux.rb
|
459
467
|
- lib/puppet/provider/package/macports.rb
|
468
|
+
- lib/puppet/provider/package/msi.rb
|
460
469
|
- lib/puppet/provider/package/nim.rb
|
461
470
|
- lib/puppet/provider/package/openbsd.rb
|
462
471
|
- lib/puppet/provider/package/pacman.rb
|
@@ -493,7 +502,9 @@ files:
|
|
493
502
|
- lib/puppet/provider/service/runit.rb
|
494
503
|
- lib/puppet/provider/service/smf.rb
|
495
504
|
- lib/puppet/provider/service/src.rb
|
505
|
+
- lib/puppet/provider/service/systemd.rb
|
496
506
|
- lib/puppet/provider/service/upstart.rb
|
507
|
+
- lib/puppet/provider/service/windows.rb
|
497
508
|
- lib/puppet/provider/ssh_authorized_key/parsed.rb
|
498
509
|
- lib/puppet/provider/sshkey/parsed.rb
|
499
510
|
- lib/puppet/provider/user/aix.rb
|
@@ -503,6 +514,7 @@ files:
|
|
503
514
|
- lib/puppet/provider/user/pw.rb
|
504
515
|
- lib/puppet/provider/user/user_role_add.rb
|
505
516
|
- lib/puppet/provider/user/useradd.rb
|
517
|
+
- lib/puppet/provider/user/windows_adsi.rb
|
506
518
|
- lib/puppet/provider/vlan/cisco.rb
|
507
519
|
- lib/puppet/provider/zfs/solaris.rb
|
508
520
|
- lib/puppet/provider/zone/solaris.rb
|
@@ -635,6 +647,7 @@ files:
|
|
635
647
|
- lib/puppet/type/zone.rb
|
636
648
|
- lib/puppet/type/zpool.rb
|
637
649
|
- lib/puppet/type.rb
|
650
|
+
- lib/puppet/util/adsi.rb
|
638
651
|
- lib/puppet/util/autoload/file_cache.rb
|
639
652
|
- lib/puppet/util/autoload.rb
|
640
653
|
- lib/puppet/util/backups.rb
|
@@ -1017,7 +1030,6 @@ files:
|
|
1017
1030
|
- test/other/transactions.rb
|
1018
1031
|
- test/puppet/defaults.rb
|
1019
1032
|
- test/puppet/errortest.rb
|
1020
|
-
- test/puppet/tc_suidmanager.rb
|
1021
1033
|
- test/rails/rails.rb
|
1022
1034
|
- test/rails/railsparameter.rb
|
1023
1035
|
- test/Rakefile
|
@@ -1195,6 +1207,7 @@ files:
|
|
1195
1207
|
- spec/integration/util/file_locking_spec.rb
|
1196
1208
|
- spec/integration/util/rdoc/parser_spec.rb
|
1197
1209
|
- spec/integration/util/settings_spec.rb
|
1210
|
+
- spec/integration/util_spec.rb
|
1198
1211
|
- spec/lib/matchers/json.rb
|
1199
1212
|
- spec/lib/puppet/face/1.0.0/huzzah.rb
|
1200
1213
|
- spec/lib/puppet/face/basetest.rb
|
@@ -1214,6 +1227,7 @@ files:
|
|
1214
1227
|
- spec/shared_behaviours/file_serving.rb
|
1215
1228
|
- spec/shared_behaviours/memory_terminus.rb
|
1216
1229
|
- spec/shared_behaviours/path_parameters.rb
|
1230
|
+
- spec/shared_behaviours/store_configs_terminus.rb
|
1217
1231
|
- spec/shared_behaviours/things_that_declare_options.rb
|
1218
1232
|
- spec/spec.opts
|
1219
1233
|
- spec/spec_helper.rb
|
@@ -1283,6 +1297,7 @@ files:
|
|
1283
1297
|
- spec/unit/indirector/catalog/compiler_spec.rb
|
1284
1298
|
- spec/unit/indirector/catalog/queue_spec.rb
|
1285
1299
|
- spec/unit/indirector/catalog/rest_spec.rb
|
1300
|
+
- spec/unit/indirector/catalog/store_configs_spec.rb
|
1286
1301
|
- spec/unit/indirector/catalog/yaml_spec.rb
|
1287
1302
|
- spec/unit/indirector/certificate/ca_spec.rb
|
1288
1303
|
- spec/unit/indirector/certificate/file_spec.rb
|
@@ -1306,6 +1321,7 @@ files:
|
|
1306
1321
|
- spec/unit/indirector/facts/inventory_active_record_spec.rb
|
1307
1322
|
- spec/unit/indirector/facts/network_device_spec.rb
|
1308
1323
|
- spec/unit/indirector/facts/rest_spec.rb
|
1324
|
+
- spec/unit/indirector/facts/store_configs_spec.rb
|
1309
1325
|
- spec/unit/indirector/facts/yaml_spec.rb
|
1310
1326
|
- spec/unit/indirector/file_bucket_file/file_spec.rb
|
1311
1327
|
- spec/unit/indirector/file_bucket_file/rest_spec.rb
|
@@ -1329,6 +1345,7 @@ files:
|
|
1329
1345
|
- spec/unit/indirector/node/memory_spec.rb
|
1330
1346
|
- spec/unit/indirector/node/plain_spec.rb
|
1331
1347
|
- spec/unit/indirector/node/rest_spec.rb
|
1348
|
+
- spec/unit/indirector/node/store_configs_spec.rb
|
1332
1349
|
- spec/unit/indirector/node/yaml_spec.rb
|
1333
1350
|
- spec/unit/indirector/plain_spec.rb
|
1334
1351
|
- spec/unit/indirector/queue_spec.rb
|
@@ -1336,8 +1353,10 @@ files:
|
|
1336
1353
|
- spec/unit/indirector/report/rest_spec.rb
|
1337
1354
|
- spec/unit/indirector/report/yaml_spec.rb
|
1338
1355
|
- spec/unit/indirector/request_spec.rb
|
1356
|
+
- spec/unit/indirector/resource/active_record_spec.rb
|
1339
1357
|
- spec/unit/indirector/resource/ral_spec.rb
|
1340
1358
|
- spec/unit/indirector/resource/rest_spec.rb
|
1359
|
+
- spec/unit/indirector/resource/store_configs_spec.rb
|
1341
1360
|
- spec/unit/indirector/resource_type/parser_spec.rb
|
1342
1361
|
- spec/unit/indirector/resource_type/rest_spec.rb
|
1343
1362
|
- spec/unit/indirector/rest_spec.rb
|
@@ -1345,6 +1364,7 @@ files:
|
|
1345
1364
|
- spec/unit/indirector/run/rest_spec.rb
|
1346
1365
|
- spec/unit/indirector/ssl_file_spec.rb
|
1347
1366
|
- spec/unit/indirector/status/rest_spec.rb
|
1367
|
+
- spec/unit/indirector/store_configs_spec.rb
|
1348
1368
|
- spec/unit/indirector/terminus_spec.rb
|
1349
1369
|
- spec/unit/indirector/yaml_spec.rb
|
1350
1370
|
- spec/unit/indirector_spec.rb
|
@@ -1359,7 +1379,6 @@ files:
|
|
1359
1379
|
- spec/unit/module_spec.rb
|
1360
1380
|
- spec/unit/network/authconfig_spec.rb
|
1361
1381
|
- spec/unit/network/authstore_spec.rb
|
1362
|
-
- spec/unit/network/client_spec.rb
|
1363
1382
|
- spec/unit/network/format_handler_spec.rb
|
1364
1383
|
- spec/unit/network/format_spec.rb
|
1365
1384
|
- spec/unit/network/formats_spec.rb
|
@@ -1463,8 +1482,10 @@ files:
|
|
1463
1482
|
- spec/unit/provider/confiner_spec.rb
|
1464
1483
|
- spec/unit/provider/exec/posix_spec.rb
|
1465
1484
|
- spec/unit/provider/exec/shell_spec.rb
|
1485
|
+
- spec/unit/provider/exec/windows_spec.rb
|
1466
1486
|
- spec/unit/provider/group/groupadd_spec.rb
|
1467
1487
|
- spec/unit/provider/group/ldap_spec.rb
|
1488
|
+
- spec/unit/provider/group/windows_adsi_spec.rb
|
1468
1489
|
- spec/unit/provider/host/parsed_spec.rb
|
1469
1490
|
- spec/unit/provider/interface/cisco_spec.rb
|
1470
1491
|
- spec/unit/provider/ldap_spec.rb
|
@@ -1482,6 +1503,7 @@ files:
|
|
1482
1503
|
- spec/unit/provider/package/gem_spec.rb
|
1483
1504
|
- spec/unit/provider/package/hpux_spec.rb
|
1484
1505
|
- spec/unit/provider/package/macports_spec.rb
|
1506
|
+
- spec/unit/provider/package/msi_spec.rb
|
1485
1507
|
- spec/unit/provider/package/nim_spec.rb
|
1486
1508
|
- spec/unit/provider/package/pacman_spec.rb
|
1487
1509
|
- spec/unit/provider/package/pip_spec.rb
|
@@ -1503,13 +1525,16 @@ files:
|
|
1503
1525
|
- spec/unit/provider/service/runit_spec.rb
|
1504
1526
|
- spec/unit/provider/service/smf_spec.rb
|
1505
1527
|
- spec/unit/provider/service/src_spec.rb
|
1528
|
+
- spec/unit/provider/service/systemd_spec.rb
|
1506
1529
|
- spec/unit/provider/service/upstart.rb
|
1530
|
+
- spec/unit/provider/service/windows_spec.rb
|
1507
1531
|
- spec/unit/provider/ssh_authorized_key/parsed_spec.rb
|
1508
1532
|
- spec/unit/provider/sshkey/parsed_spec.rb
|
1509
1533
|
- spec/unit/provider/user/hpux_spec.rb
|
1510
1534
|
- spec/unit/provider/user/ldap_spec.rb
|
1511
1535
|
- spec/unit/provider/user/user_role_add_spec.rb
|
1512
1536
|
- spec/unit/provider/user/useradd_spec.rb
|
1537
|
+
- spec/unit/provider/user/windows_adsi_spec.rb
|
1513
1538
|
- spec/unit/provider/vlan/cisco_spec.rb
|
1514
1539
|
- spec/unit/provider/zfs/solaris_spec.rb
|
1515
1540
|
- spec/unit/provider/zone/solaris_spec.rb
|
@@ -1598,6 +1623,7 @@ files:
|
|
1598
1623
|
- spec/unit/type/zone_spec.rb
|
1599
1624
|
- spec/unit/type/zpool_spec.rb
|
1600
1625
|
- spec/unit/type_spec.rb
|
1626
|
+
- spec/unit/util/adsi_spec.rb
|
1601
1627
|
- spec/unit/util/autoload/file_cache_spec.rb
|
1602
1628
|
- spec/unit/util/autoload_spec.rb
|
1603
1629
|
- spec/unit/util/backups_spec.rb
|
@@ -1646,17 +1672,18 @@ files:
|
|
1646
1672
|
- spec/unit/util/settings/file_setting_spec.rb
|
1647
1673
|
- spec/unit/util/settings_spec.rb
|
1648
1674
|
- spec/unit/util/storage_spec.rb
|
1675
|
+
- spec/unit/util/suidmanager_spec.rb
|
1649
1676
|
- spec/unit/util/tagging_spec.rb
|
1650
1677
|
- spec/unit/util/user_attr_spec.rb
|
1651
1678
|
- spec/unit/util/warnings_spec.rb
|
1652
1679
|
- spec/unit/util/zaml_spec.rb
|
1680
|
+
- spec/unit/util_spec.rb
|
1653
1681
|
- spec/watchr.rb
|
1654
1682
|
- bin/puppetca
|
1655
1683
|
- bin/puppetd
|
1656
1684
|
- bin/puppetmasterd
|
1657
1685
|
- bin/puppetqd
|
1658
1686
|
- bin/puppetrun
|
1659
|
-
has_rdoc: true
|
1660
1687
|
homepage: http://puppetlabs.com
|
1661
1688
|
licenses: []
|
1662
1689
|
|
@@ -1690,7 +1717,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1690
1717
|
requirements: []
|
1691
1718
|
|
1692
1719
|
rubyforge_project: puppet
|
1693
|
-
rubygems_version: 1.
|
1720
|
+
rubygems_version: 1.8.10
|
1694
1721
|
signing_key:
|
1695
1722
|
specification_version: 3
|
1696
1723
|
summary: Puppet, an automated configuration management tool
|
@@ -1,45 +0,0 @@
|
|
1
|
-
#!/usr/bin/env rspec
|
2
|
-
#
|
3
|
-
# Created by Luke Kanies on 2008-3-24.
|
4
|
-
# Copyright (c) 2008. All rights reserved.
|
5
|
-
|
6
|
-
require 'spec_helper'
|
7
|
-
|
8
|
-
require 'puppet/network/client'
|
9
|
-
|
10
|
-
describe Puppet::Network::Client do
|
11
|
-
before do
|
12
|
-
Puppet.settings.stubs(:use).returns(true)
|
13
|
-
Puppet::Network::HttpPool.stubs(:cert_setup)
|
14
|
-
end
|
15
|
-
|
16
|
-
describe "when keep-alive is enabled" do
|
17
|
-
before do
|
18
|
-
Puppet::Network::HttpPool.stubs(:keep_alive?).returns true
|
19
|
-
end
|
20
|
-
it "should start the http client up on creation" do
|
21
|
-
http = mock 'http'
|
22
|
-
http.stub_everything
|
23
|
-
http.expects(:start)
|
24
|
-
Net::HTTP.stubs(:new).returns http
|
25
|
-
|
26
|
-
# Pick a random subclass...
|
27
|
-
Puppet::Network::Client.runner.new :Server => Puppet[:server]
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
describe "when keep-alive is disabled" do
|
32
|
-
before do
|
33
|
-
Puppet::Network::HttpPool.stubs(:keep_alive?).returns false
|
34
|
-
end
|
35
|
-
it "should not start the http client up on creation" do
|
36
|
-
http = mock 'http'
|
37
|
-
http.stub_everything
|
38
|
-
http.expects(:start).never
|
39
|
-
Net::HTTP.stubs(:new).returns http
|
40
|
-
|
41
|
-
# Pick a random subclass...
|
42
|
-
Puppet::Network::Client.runner.new :Server => Puppet[:server]
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
@@ -1,120 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../lib/puppettest')
|
4
|
-
|
5
|
-
require 'puppet'
|
6
|
-
require 'puppettest'
|
7
|
-
require 'test/unit'
|
8
|
-
require 'mocha'
|
9
|
-
|
10
|
-
class TestSUIDManager < Test::Unit::TestCase
|
11
|
-
include PuppetTest
|
12
|
-
|
13
|
-
def setup
|
14
|
-
the_id = 42
|
15
|
-
Puppet::Util::SUIDManager.stubs(:convert_xid).returns(the_id)
|
16
|
-
Puppet::Util::SUIDManager.stubs(:initgroups)
|
17
|
-
@user = stub('user', :uid => the_id, :gid => the_id, :name => 'name')
|
18
|
-
super
|
19
|
-
end
|
20
|
-
|
21
|
-
def test_metaprogramming_function_additions
|
22
|
-
# NOTE: the way that we are dynamically generating the methods in
|
23
|
-
# SUIDManager for the UID/GID calls was causing problems due to the
|
24
|
-
# modification of a closure. Should the bug rear itself again, this
|
25
|
-
# test will fail.
|
26
|
-
Process.expects(:uid).times(2)
|
27
|
-
|
28
|
-
assert_nothing_raised do
|
29
|
-
Puppet::Util::SUIDManager.uid
|
30
|
-
Puppet::Util::SUIDManager.uid
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
def test_id_set
|
35
|
-
Process.expects(:euid=).with(@user.uid)
|
36
|
-
Process.expects(:egid=).with(@user.gid)
|
37
|
-
|
38
|
-
assert_nothing_raised do
|
39
|
-
Puppet::Util::SUIDManager.egid = @user.gid
|
40
|
-
Puppet::Util::SUIDManager.euid = @user.uid
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
def test_utiluid
|
45
|
-
assert_not_equal(nil, Puppet::Util.uid(nonrootuser.name))
|
46
|
-
end
|
47
|
-
|
48
|
-
def test_asuser_as_root
|
49
|
-
Process.stubs(:uid).returns(0)
|
50
|
-
expects_id_set_and_revert @user.uid, @user.gid
|
51
|
-
Puppet::Util::SUIDManager.asuser @user.uid, @user.gid do end
|
52
|
-
rescue Errno::EPERM
|
53
|
-
end
|
54
|
-
|
55
|
-
def test_asuser_as_nonroot
|
56
|
-
Process.stubs(:uid).returns(1)
|
57
|
-
expects_no_id_set
|
58
|
-
Puppet::Util::SUIDManager.asuser @user.uid, @user.gid do end
|
59
|
-
end
|
60
|
-
|
61
|
-
|
62
|
-
def test_system_as_root
|
63
|
-
Process.stubs(:uid).returns(0)
|
64
|
-
set_exit_status!
|
65
|
-
expects_id_set_and_revert @user.uid, @user.gid
|
66
|
-
Kernel.expects(:system).with('blah')
|
67
|
-
Puppet::Util::SUIDManager.system('blah', @user.uid, @user.gid)
|
68
|
-
end
|
69
|
-
|
70
|
-
def test_system_as_nonroot
|
71
|
-
Process.stubs(:uid).returns(1)
|
72
|
-
set_exit_status!
|
73
|
-
expects_no_id_set
|
74
|
-
Kernel.expects(:system).with('blah')
|
75
|
-
Puppet::Util::SUIDManager.system('blah', @user.uid, @user.gid)
|
76
|
-
end
|
77
|
-
|
78
|
-
def test_run_and_capture
|
79
|
-
if (RUBY_VERSION <=> "1.8.4") < 0
|
80
|
-
warn "Cannot run this test on ruby < 1.8.4"
|
81
|
-
else
|
82
|
-
set_exit_status!
|
83
|
-
Puppet::Util.
|
84
|
-
expects(:execute).
|
85
|
-
with('yay',:combine => true, :failonfail => false, :uid => @user.uid, :gid => @user.gid).
|
86
|
-
returns('output')
|
87
|
-
output = Puppet::Util::SUIDManager.run_and_capture 'yay', @user.uid, @user.gid
|
88
|
-
|
89
|
-
assert_equal 'output', output.first
|
90
|
-
assert_kind_of Process::Status, output.last
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
private
|
95
|
-
|
96
|
-
def expects_id_set_and_revert(uid, gid)
|
97
|
-
Process.stubs(:groups=)
|
98
|
-
Process.expects(:euid).returns(99997)
|
99
|
-
Process.expects(:egid).returns(99996)
|
100
|
-
|
101
|
-
Process.expects(:euid=).with(uid)
|
102
|
-
Process.expects(:egid=).with(gid)
|
103
|
-
|
104
|
-
Process.expects(:euid=).with(99997)
|
105
|
-
Process.expects(:egid=).with(99996)
|
106
|
-
end
|
107
|
-
|
108
|
-
def expects_no_id_set
|
109
|
-
Process.expects(:egid).never
|
110
|
-
Process.expects(:euid).never
|
111
|
-
Process.expects(:egid=).never
|
112
|
-
Process.expects(:euid=).never
|
113
|
-
end
|
114
|
-
|
115
|
-
def set_exit_status!
|
116
|
-
# We want to make sure $CHILD_STATUS is set, this is the only way I know how.
|
117
|
-
Kernel.system '' if $CHILD_STATUS.nil?
|
118
|
-
end
|
119
|
-
end
|
120
|
-
|