puppet 3.0.0.rc8 → 3.0.0
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/ext/packaging/tasks/00_utils.rb +57 -3
- data/ext/packaging/tasks/10_setupvars.rake +32 -30
- data/ext/packaging/tasks/apple.rake +1 -1
- data/ext/packaging/tasks/deb.rake +9 -11
- data/ext/packaging/tasks/gem.rake +6 -3
- data/ext/packaging/tasks/ips.rake +66 -64
- data/ext/packaging/tasks/mock.rake +2 -2
- data/ext/packaging/tasks/release.rake +52 -16
- data/ext/packaging/tasks/ship.rake +9 -7
- data/ext/packaging/tasks/sign.rake +9 -6
- data/ext/packaging/tasks/tag.rake +8 -0
- data/ext/packaging/tasks/version.rake +20 -0
- data/lib/puppet/reports/http.rb +4 -3
- data/lib/puppet/version.rb +1 -1
- data/spec/integration/application/apply_spec.rb +1 -1
- data/spec/integration/application/doc_spec.rb +1 -1
- data/spec/integration/configurer_spec.rb +1 -1
- data/spec/integration/defaults_spec.rb +1 -1
- data/spec/integration/faces/ca_spec.rb +1 -1
- data/spec/integration/faces/documentation_spec.rb +1 -1
- data/spec/integration/file_bucket/file_spec.rb +1 -1
- data/spec/integration/file_serving/content_spec.rb +1 -1
- data/spec/integration/file_serving/fileset_spec.rb +1 -1
- data/spec/integration/file_serving/metadata_spec.rb +1 -1
- data/spec/integration/file_serving/terminus_helper_spec.rb +1 -1
- data/spec/integration/indirector/catalog/compiler_spec.rb +1 -1
- data/spec/integration/indirector/catalog/queue_spec.rb +1 -1
- data/spec/integration/indirector/direct_file_server_spec.rb +1 -1
- data/spec/integration/indirector/facts/facter_spec.rb +1 -1
- data/spec/integration/indirector/file_content/file_server_spec.rb +1 -1
- data/spec/integration/indirector/file_metadata/file_server_spec.rb +1 -1
- data/spec/integration/indirector/node/ldap_spec.rb +1 -1
- data/spec/integration/network/formats_spec.rb +1 -1
- data/spec/integration/network/server/mongrel_spec.rb +1 -1
- data/spec/integration/network/server/webrick_spec.rb +1 -1
- data/spec/integration/node/environment_spec.rb +1 -1
- data/spec/integration/node/facts_spec.rb +1 -1
- data/spec/integration/node_spec.rb +1 -1
- data/spec/integration/parser/collector_spec.rb +1 -1
- data/spec/integration/parser/compiler_spec.rb +1 -1
- data/spec/integration/parser/functions/require_spec.rb +1 -1
- data/spec/integration/parser/functions_spec.rb +1 -1
- data/spec/integration/parser/parser_spec.rb +1 -1
- data/spec/integration/parser/ruby_manifest_spec.rb +1 -1
- data/spec/integration/provider/mailalias/aliases_spec.rb +1 -1
- data/spec/integration/provider/package_spec.rb +1 -1
- data/spec/integration/provider/service/init_spec.rb +1 -1
- data/spec/integration/provider/ssh_authorized_key_spec.rb +1 -1
- data/spec/integration/reference/providers_spec.rb +1 -1
- data/spec/integration/reports_spec.rb +1 -1
- data/spec/integration/resource/catalog_spec.rb +1 -1
- data/spec/integration/resource/type_collection_spec.rb +1 -1
- data/spec/integration/ssl/certificate_authority_spec.rb +1 -1
- data/spec/integration/ssl/certificate_request_spec.rb +1 -1
- data/spec/integration/ssl/certificate_revocation_list_spec.rb +1 -1
- data/spec/integration/ssl/host_spec.rb +1 -1
- data/spec/integration/transaction/report_spec.rb +1 -1
- data/spec/integration/transaction_spec.rb +1 -1
- data/spec/integration/type/exec_spec.rb +1 -1
- data/spec/integration/type/file_spec.rb +1 -1
- data/spec/integration/type/package_spec.rb +1 -1
- data/spec/integration/type/tidy_spec.rb +1 -1
- data/spec/integration/type_spec.rb +1 -1
- data/spec/integration/util/autoload_spec.rb +1 -1
- data/spec/integration/util/feature_spec.rb +1 -1
- data/spec/integration/util/rdoc/parser_spec.rb +1 -1
- data/spec/integration/util/settings_spec.rb +1 -1
- data/spec/integration/util/windows/user_spec.rb +1 -1
- data/spec/shared_behaviours/file_server_terminus.rb +1 -1
- data/spec/shared_behaviours/file_serving.rb +1 -1
- data/spec/shared_behaviours/file_serving_model.rb +1 -1
- data/spec/unit/agent/disabler_spec.rb +1 -1
- data/spec/unit/agent/locker_spec.rb +1 -1
- data/spec/unit/agent_spec.rb +1 -1
- data/spec/unit/application/agent_spec.rb +1 -1
- data/spec/unit/application/apply_spec.rb +1 -1
- data/spec/unit/application/cert_spec.rb +1 -1
- data/spec/unit/application/certificate_spec.rb +1 -1
- data/spec/unit/application/config_spec.rb +1 -1
- data/spec/unit/application/describe_spec.rb +1 -1
- data/spec/unit/application/device_spec.rb +1 -1
- data/spec/unit/application/doc_spec.rb +1 -1
- data/spec/unit/application/face_base_spec.rb +1 -1
- data/spec/unit/application/facts_spec.rb +1 -1
- data/spec/unit/application/filebucket_spec.rb +1 -1
- data/spec/unit/application/indirection_base_spec.rb +1 -1
- data/spec/unit/application/inspect_spec.rb +1 -1
- data/spec/unit/application/kick_spec.rb +1 -1
- data/spec/unit/application/master_spec.rb +1 -1
- data/spec/unit/application/queue_spec.rb +1 -1
- data/spec/unit/application/resource_spec.rb +1 -1
- data/spec/unit/application/secret_agent_spec.rb +1 -1
- data/spec/unit/application_spec.rb +1 -1
- data/spec/unit/configurer/downloader_spec.rb +1 -1
- data/spec/unit/configurer/fact_handler_spec.rb +1 -1
- data/spec/unit/configurer/plugin_handler_spec.rb +1 -1
- data/spec/unit/configurer_spec.rb +1 -1
- data/spec/unit/daemon_spec.rb +1 -1
- data/spec/unit/dsl/resource_api_spec.rb +1 -1
- data/spec/unit/dsl/resource_type_api_spec.rb +1 -1
- data/spec/unit/face/catalog_spec.rb +1 -1
- data/spec/unit/face/certificate_request_spec.rb +1 -1
- data/spec/unit/face/certificate_revocation_list_spec.rb +1 -1
- data/spec/unit/face/certificate_spec.rb +1 -1
- data/spec/unit/face/config_spec.rb +1 -1
- data/spec/unit/face/facts_spec.rb +1 -1
- data/spec/unit/face/file_spec.rb +1 -1
- data/spec/unit/face/help_spec.rb +1 -1
- data/spec/unit/face/instrumentation_data_spec.rb +1 -1
- data/spec/unit/face/instrumentation_listener_spec.rb +1 -1
- data/spec/unit/face/instrumentation_probe_spec.rb +1 -1
- data/spec/unit/face/key_spec.rb +1 -1
- data/spec/unit/face/node_spec.rb +1 -1
- data/spec/unit/face/plugin_spec.rb +1 -1
- data/spec/unit/face/report_spec.rb +1 -1
- data/spec/unit/face/resource_spec.rb +1 -1
- data/spec/unit/face/resource_type_spec.rb +1 -1
- data/spec/unit/face/secret_agent_spec.rb +1 -1
- data/spec/unit/file_bucket/dipper_spec.rb +1 -1
- data/spec/unit/file_bucket/file_spec.rb +1 -1
- data/spec/unit/file_serving/base_spec.rb +1 -1
- data/spec/unit/file_serving/configuration/parser_spec.rb +1 -1
- data/spec/unit/file_serving/configuration_spec.rb +1 -1
- data/spec/unit/file_serving/content_spec.rb +1 -1
- data/spec/unit/file_serving/fileset_spec.rb +1 -1
- data/spec/unit/file_serving/metadata_spec.rb +1 -1
- data/spec/unit/file_serving/mount/file_spec.rb +1 -1
- data/spec/unit/file_serving/mount/modules_spec.rb +1 -1
- data/spec/unit/file_serving/mount/plugins_spec.rb +1 -1
- data/spec/unit/file_serving/mount_spec.rb +1 -1
- data/spec/unit/file_serving/terminus_helper_spec.rb +1 -1
- data/spec/unit/file_serving/terminus_selector_spec.rb +1 -1
- data/spec/unit/indirector/active_record_spec.rb +1 -1
- data/spec/unit/indirector/catalog/active_record_spec.rb +1 -1
- data/spec/unit/indirector/catalog/compiler_spec.rb +1 -1
- data/spec/unit/indirector/catalog/json_spec.rb +1 -1
- data/spec/unit/indirector/catalog/queue_spec.rb +1 -1
- data/spec/unit/indirector/catalog/rest_spec.rb +1 -1
- data/spec/unit/indirector/catalog/static_compiler_spec.rb +1 -1
- data/spec/unit/indirector/catalog/store_configs_spec.rb +1 -1
- data/spec/unit/indirector/catalog/yaml_spec.rb +1 -1
- data/spec/unit/indirector/certificate/ca_spec.rb +1 -1
- data/spec/unit/indirector/certificate/disabled_ca_spec.rb +1 -1
- data/spec/unit/indirector/certificate/file_spec.rb +1 -1
- data/spec/unit/indirector/certificate/rest_spec.rb +1 -1
- data/spec/unit/indirector/certificate_request/ca_spec.rb +1 -1
- data/spec/unit/indirector/certificate_request/disabled_ca_spec.rb +1 -1
- data/spec/unit/indirector/certificate_request/file_spec.rb +1 -1
- data/spec/unit/indirector/certificate_request/rest_spec.rb +1 -1
- data/spec/unit/indirector/certificate_revocation_list/ca_spec.rb +1 -1
- data/spec/unit/indirector/certificate_revocation_list/disabled_ca_spec.rb +1 -1
- data/spec/unit/indirector/certificate_revocation_list/file_spec.rb +1 -1
- data/spec/unit/indirector/certificate_revocation_list/rest_spec.rb +1 -1
- data/spec/unit/indirector/certificate_status/file_spec.rb +1 -1
- data/spec/unit/indirector/certificate_status/rest_spec.rb +1 -1
- data/spec/unit/indirector/code_spec.rb +1 -1
- data/spec/unit/indirector/direct_file_server_spec.rb +1 -1
- data/spec/unit/indirector/envelope_spec.rb +1 -1
- data/spec/unit/indirector/exec_spec.rb +1 -1
- data/spec/unit/indirector/face_spec.rb +1 -1
- data/spec/unit/indirector/facts/active_record_spec.rb +1 -1
- data/spec/unit/indirector/facts/couch_spec.rb +1 -1
- data/spec/unit/indirector/facts/facter_spec.rb +1 -1
- data/spec/unit/indirector/facts/inventory_active_record_spec.rb +1 -1
- data/spec/unit/indirector/facts/inventory_service_spec.rb +1 -1
- data/spec/unit/indirector/facts/network_device_spec.rb +1 -1
- data/spec/unit/indirector/facts/rest_spec.rb +1 -1
- data/spec/unit/indirector/facts/store_configs_spec.rb +1 -1
- data/spec/unit/indirector/facts/yaml_spec.rb +1 -1
- data/spec/unit/indirector/file_bucket_file/file_spec.rb +1 -1
- data/spec/unit/indirector/file_bucket_file/rest_spec.rb +1 -1
- data/spec/unit/indirector/file_bucket_file/selector_spec.rb +1 -1
- data/spec/unit/indirector/file_content/file_server_spec.rb +1 -1
- data/spec/unit/indirector/file_content/file_spec.rb +1 -1
- data/spec/unit/indirector/file_content/rest_spec.rb +1 -1
- data/spec/unit/indirector/file_content/selector_spec.rb +1 -1
- data/spec/unit/indirector/file_metadata/file_server_spec.rb +1 -1
- data/spec/unit/indirector/file_metadata/file_spec.rb +1 -1
- data/spec/unit/indirector/file_metadata/rest_spec.rb +1 -1
- data/spec/unit/indirector/file_metadata/selector_spec.rb +1 -1
- data/spec/unit/indirector/file_server_spec.rb +1 -1
- data/spec/unit/indirector/indirection_spec.rb +1 -1
- data/spec/unit/indirector/instrumentation_data/local_spec.rb +1 -1
- data/spec/unit/indirector/instrumentation_data/rest_spec.rb +1 -1
- data/spec/unit/indirector/instrumentation_listener/local_spec.rb +1 -1
- data/spec/unit/indirector/instrumentation_listener/rest_spec.rb +1 -1
- data/spec/unit/indirector/instrumentation_probe/local_spec.rb +1 -1
- data/spec/unit/indirector/instrumentation_probe/rest_spec.rb +1 -1
- data/spec/unit/indirector/json_spec.rb +1 -1
- data/spec/unit/indirector/key/ca_spec.rb +1 -1
- data/spec/unit/indirector/key/disabled_ca_spec.rb +1 -1
- data/spec/unit/indirector/key/file_spec.rb +1 -1
- data/spec/unit/indirector/ldap_spec.rb +1 -1
- data/spec/unit/indirector/memory_spec.rb +1 -1
- data/spec/unit/indirector/node/active_record_spec.rb +1 -1
- data/spec/unit/indirector/node/exec_spec.rb +1 -1
- data/spec/unit/indirector/node/ldap_spec.rb +1 -1
- data/spec/unit/indirector/node/memory_spec.rb +1 -1
- data/spec/unit/indirector/node/plain_spec.rb +1 -1
- data/spec/unit/indirector/node/rest_spec.rb +1 -1
- data/spec/unit/indirector/node/store_configs_spec.rb +1 -1
- data/spec/unit/indirector/node/yaml_spec.rb +1 -1
- data/spec/unit/indirector/plain_spec.rb +1 -1
- data/spec/unit/indirector/queue_spec.rb +1 -1
- data/spec/unit/indirector/report/processor_spec.rb +1 -1
- data/spec/unit/indirector/report/rest_spec.rb +1 -1
- data/spec/unit/indirector/report/yaml_spec.rb +1 -1
- data/spec/unit/indirector/request_spec.rb +1 -1
- data/spec/unit/indirector/resource/active_record_spec.rb +1 -1
- data/spec/unit/indirector/resource/ral_spec.rb +1 -1
- data/spec/unit/indirector/resource/rest_spec.rb +1 -1
- data/spec/unit/indirector/resource/store_configs_spec.rb +1 -1
- data/spec/unit/indirector/resource_type/parser_spec.rb +1 -1
- data/spec/unit/indirector/resource_type/rest_spec.rb +1 -1
- data/spec/unit/indirector/rest_spec.rb +1 -1
- data/spec/unit/indirector/run/local_spec.rb +1 -1
- data/spec/unit/indirector/run/rest_spec.rb +1 -1
- data/spec/unit/indirector/ssl_file_spec.rb +1 -1
- data/spec/unit/indirector/status/rest_spec.rb +1 -1
- data/spec/unit/indirector/store_configs_spec.rb +1 -1
- data/spec/unit/indirector/terminus_spec.rb +1 -1
- data/spec/unit/indirector/yaml_spec.rb +1 -1
- data/spec/unit/indirector_spec.rb +1 -1
- data/spec/unit/interface/action_builder_spec.rb +1 -1
- data/spec/unit/interface/action_manager_spec.rb +1 -1
- data/spec/unit/interface/action_spec.rb +1 -1
- data/spec/unit/interface/documentation_spec.rb +1 -1
- data/spec/unit/interface/face_collection_spec.rb +1 -1
- data/spec/unit/module_spec.rb +1 -1
- data/spec/unit/module_tool_spec.rb +1 -1
- data/spec/unit/network/auth_config_parser_spec.rb +1 -1
- data/spec/unit/network/authconfig_spec.rb +1 -1
- data/spec/unit/network/authentication_spec.rb +1 -1
- data/spec/unit/network/authorization_spec.rb +1 -1
- data/spec/unit/network/authstore_spec.rb +1 -1
- data/spec/unit/network/format_handler_spec.rb +1 -1
- data/spec/unit/network/format_spec.rb +1 -1
- data/spec/unit/network/formats_spec.rb +1 -1
- data/spec/unit/network/http/api/v1_spec.rb +1 -1
- data/spec/unit/network/http/compression_spec.rb +1 -1
- data/spec/unit/network/http/connection_spec.rb +1 -1
- data/spec/unit/network/http/handler_spec.rb +1 -1
- data/spec/unit/network/http/rack/rest_spec.rb +1 -1
- data/spec/unit/network/http/rack_spec.rb +1 -1
- data/spec/unit/network/http/webrick/rest_spec.rb +1 -1
- data/spec/unit/network/http/webrick_spec.rb +1 -1
- data/spec/unit/network/http_pool_spec.rb +1 -1
- data/spec/unit/network/rights_spec.rb +1 -1
- data/spec/unit/network/server_spec.rb +1 -1
- data/spec/unit/node/environment_spec.rb +1 -1
- data/spec/unit/node/facts_spec.rb +1 -1
- data/spec/unit/node_spec.rb +1 -1
- data/spec/unit/other/selinux_spec.rb +1 -1
- data/spec/unit/parameter/package_options_spec.rb +1 -1
- data/spec/unit/parameter/path_spec.rb +1 -1
- data/spec/unit/parameter/value_collection_spec.rb +1 -1
- data/spec/unit/parameter/value_spec.rb +1 -1
- data/spec/unit/parameter_spec.rb +1 -1
- data/spec/unit/parser/ast/arithmetic_operator_spec.rb +1 -1
- data/spec/unit/parser/ast/astarray_spec.rb +1 -1
- data/spec/unit/parser/ast/asthash_spec.rb +1 -1
- data/spec/unit/parser/ast/boolean_operator_spec.rb +1 -1
- data/spec/unit/parser/ast/casestatement_spec.rb +1 -1
- data/spec/unit/parser/ast/collection_spec.rb +1 -1
- data/spec/unit/parser/ast/collexpr_spec.rb +1 -1
- data/spec/unit/parser/ast/comparison_operator_spec.rb +1 -1
- data/spec/unit/parser/ast/definition_spec.rb +1 -1
- data/spec/unit/parser/ast/function_spec.rb +1 -1
- data/spec/unit/parser/ast/hostclass_spec.rb +1 -1
- data/spec/unit/parser/ast/ifstatement_spec.rb +1 -1
- data/spec/unit/parser/ast/in_operator_spec.rb +1 -1
- data/spec/unit/parser/ast/leaf_spec.rb +1 -1
- data/spec/unit/parser/ast/match_operator_spec.rb +1 -1
- data/spec/unit/parser/ast/minus_spec.rb +1 -1
- data/spec/unit/parser/ast/node_spec.rb +1 -1
- data/spec/unit/parser/ast/nop_spec.rb +1 -1
- data/spec/unit/parser/ast/not_spec.rb +1 -1
- data/spec/unit/parser/ast/relationship_spec.rb +1 -1
- data/spec/unit/parser/ast/resource_defaults_spec.rb +1 -1
- data/spec/unit/parser/ast/resource_override_spec.rb +1 -1
- data/spec/unit/parser/ast/resource_reference_spec.rb +1 -1
- data/spec/unit/parser/ast/resource_spec.rb +1 -1
- data/spec/unit/parser/ast/selector_spec.rb +1 -1
- data/spec/unit/parser/ast/vardef_spec.rb +1 -1
- data/spec/unit/parser/ast_spec.rb +1 -1
- data/spec/unit/parser/collector_spec.rb +1 -1
- data/spec/unit/parser/compiler_spec.rb +1 -1
- data/spec/unit/parser/files_spec.rb +1 -1
- data/spec/unit/parser/functions/defined_spec.rb +1 -1
- data/spec/unit/parser/functions/extlookup_spec.rb +1 -1
- data/spec/unit/parser/functions/fail_spec.rb +1 -1
- data/spec/unit/parser/functions/file_spec.rb +1 -1
- data/spec/unit/parser/functions/fqdn_rand_spec.rb +1 -1
- data/spec/unit/parser/functions/generate_spec.rb +1 -1
- data/spec/unit/parser/functions/hiera_spec.rb +1 -1
- data/spec/unit/parser/functions/include_spec.rb +1 -1
- data/spec/unit/parser/functions/inline_template_spec.rb +1 -1
- data/spec/unit/parser/functions/realize_spec.rb +1 -1
- data/spec/unit/parser/functions/regsubst_spec.rb +1 -1
- data/spec/unit/parser/functions/require_spec.rb +1 -1
- data/spec/unit/parser/functions/search_spec.rb +1 -1
- data/spec/unit/parser/functions/shellquote_spec.rb +1 -1
- data/spec/unit/parser/functions/split_spec.rb +1 -1
- data/spec/unit/parser/functions/sprintf_spec.rb +1 -1
- data/spec/unit/parser/functions/tag_spec.rb +1 -1
- data/spec/unit/parser/functions/template_spec.rb +1 -1
- data/spec/unit/parser/functions/versioncmp_spec.rb +1 -1
- data/spec/unit/parser/functions_spec.rb +1 -1
- data/spec/unit/parser/lexer_spec.rb +1 -1
- data/spec/unit/parser/parser_spec.rb +1 -1
- data/spec/unit/parser/relationship_spec.rb +1 -1
- data/spec/unit/parser/resource_spec.rb +1 -1
- data/spec/unit/parser/scope_spec.rb +1 -1
- data/spec/unit/parser/templatewrapper_spec.rb +1 -1
- data/spec/unit/parser/type_loader_spec.rb +1 -1
- data/spec/unit/property/ensure_spec.rb +1 -1
- data/spec/unit/property/keyvalue_spec.rb +1 -1
- data/spec/unit/property/list_spec.rb +1 -1
- data/spec/unit/property/ordered_list_spec.rb +1 -1
- data/spec/unit/property_spec.rb +1 -1
- data/spec/unit/provider/augeas/augeas_spec.rb +1 -1
- data/spec/unit/provider/cisco_spec.rb +1 -1
- data/spec/unit/provider/confine/exists_spec.rb +1 -1
- data/spec/unit/provider/confine/false_spec.rb +1 -1
- data/spec/unit/provider/confine/feature_spec.rb +1 -1
- data/spec/unit/provider/confine/true_spec.rb +1 -1
- data/spec/unit/provider/confine/variable_spec.rb +1 -1
- data/spec/unit/provider/confine_collection_spec.rb +1 -1
- data/spec/unit/provider/confine_spec.rb +1 -1
- data/spec/unit/provider/confiner_spec.rb +1 -1
- data/spec/unit/provider/cron/crontab_spec.rb +1 -1
- data/spec/unit/provider/exec/posix_spec.rb +1 -1
- data/spec/unit/provider/exec/shell_spec.rb +1 -1
- data/spec/unit/provider/exec/windows_spec.rb +1 -1
- data/spec/unit/provider/exec_spec.rb +1 -1
- data/spec/unit/provider/file/posix_spec.rb +1 -1
- data/spec/unit/provider/file/windows_spec.rb +1 -1
- data/spec/unit/provider/group/groupadd_spec.rb +1 -1
- data/spec/unit/provider/group/ldap_spec.rb +1 -1
- data/spec/unit/provider/group/pw_spec.rb +1 -1
- data/spec/unit/provider/host/parsed_spec.rb +1 -1
- data/spec/unit/provider/interface/cisco_spec.rb +1 -1
- data/spec/unit/provider/ldap_spec.rb +1 -1
- data/spec/unit/provider/macauthorization_spec.rb +1 -1
- data/spec/unit/provider/mcx/mcxcontent_spec.rb +1 -1
- data/spec/unit/provider/mount/parsed_spec.rb +1 -1
- data/spec/unit/provider/mount_spec.rb +1 -1
- data/spec/unit/provider/naginator_spec.rb +1 -1
- data/spec/unit/provider/nameservice/directoryservice_spec.rb +1 -1
- data/spec/unit/provider/network_device_spec.rb +1 -1
- data/spec/unit/provider/package/aix_spec.rb +1 -1
- data/spec/unit/provider/package/appdmg_spec.rb +1 -1
- data/spec/unit/provider/package/apt_spec.rb +1 -1
- data/spec/unit/provider/package/aptitude_spec.rb +1 -1
- data/spec/unit/provider/package/aptrpm_spec.rb +1 -1
- data/spec/unit/provider/package/dpkg_spec.rb +1 -1
- data/spec/unit/provider/package/freebsd_spec.rb +1 -1
- data/spec/unit/provider/package/gem_spec.rb +1 -1
- data/spec/unit/provider/package/hpux_spec.rb +1 -1
- data/spec/unit/provider/package/msi_spec.rb +1 -1
- data/spec/unit/provider/package/nim_spec.rb +1 -1
- data/spec/unit/provider/package/openbsd_spec.rb +1 -1
- data/spec/unit/provider/package/pacman_spec.rb +1 -1
- data/spec/unit/provider/package/pip_spec.rb +1 -1
- data/spec/unit/provider/package/pkg_spec.rb +1 -1
- data/spec/unit/provider/package/pkgdmg_spec.rb +1 -1
- data/spec/unit/provider/package/pkgutil_spec.rb +1 -1
- data/spec/unit/provider/package/rpm_spec.rb +1 -1
- data/spec/unit/provider/package/sun_spec.rb +1 -1
- data/spec/unit/provider/package/windows/exe_package_spec.rb +1 -1
- data/spec/unit/provider/package/windows/msi_package_spec.rb +1 -1
- data/spec/unit/provider/package/windows/package_spec.rb +1 -1
- data/spec/unit/provider/package/windows_spec.rb +1 -1
- data/spec/unit/provider/package/yum_spec.rb +1 -1
- data/spec/unit/provider/package/zypper_spec.rb +1 -1
- data/spec/unit/provider/parsedfile_spec.rb +1 -1
- data/spec/unit/provider/scheduled_task/win32_taskscheduler_spec.rb +1 -1
- data/spec/unit/provider/selboolean_spec.rb +1 -1
- data/spec/unit/provider/selmodule_spec.rb +1 -1
- data/spec/unit/provider/service/base_spec.rb +1 -1
- data/spec/unit/provider/service/daemontools_spec.rb +1 -1
- data/spec/unit/provider/service/debian_spec.rb +1 -1
- data/spec/unit/provider/service/freebsd_spec.rb +1 -1
- data/spec/unit/provider/service/gentoo_spec.rb +1 -1
- data/spec/unit/provider/service/init_spec.rb +1 -1
- data/spec/unit/provider/service/openrc_spec.rb +1 -1
- data/spec/unit/provider/service/redhat_spec.rb +1 -1
- data/spec/unit/provider/service/runit_spec.rb +1 -1
- data/spec/unit/provider/service/smf_spec.rb +1 -1
- data/spec/unit/provider/service/src_spec.rb +1 -1
- data/spec/unit/provider/service/systemd_spec.rb +1 -1
- data/spec/unit/provider/service/upstart_spec.rb +1 -1
- data/spec/unit/provider/service/windows_spec.rb +1 -1
- data/spec/unit/provider/ssh_authorized_key/parsed_spec.rb +1 -1
- data/spec/unit/provider/sshkey/parsed_spec.rb +1 -1
- data/spec/unit/provider/user/hpux_spec.rb +1 -1
- data/spec/unit/provider/user/ldap_spec.rb +1 -1
- data/spec/unit/provider/user/pw_spec.rb +1 -1
- data/spec/unit/provider/user/useradd_spec.rb +1 -1
- data/spec/unit/provider/vlan/cisco_spec.rb +1 -1
- data/spec/unit/provider/zfs/zfs_spec.rb +1 -1
- data/spec/unit/provider/zone/solaris_spec.rb +1 -1
- data/spec/unit/provider/zpool/zpool_spec.rb +1 -1
- data/spec/unit/provider_spec.rb +1 -1
- data/spec/unit/puppet_spec.rb +1 -1
- data/spec/unit/rails/host_spec.rb +1 -1
- data/spec/unit/rails/param_value_spec.rb +1 -1
- data/spec/unit/rails/resource_spec.rb +1 -1
- data/spec/unit/rails_spec.rb +1 -1
- data/spec/unit/relationship_spec.rb +1 -1
- data/spec/unit/reports/http_spec.rb +1 -1
- data/spec/unit/reports/rrdgraph_spec.rb +1 -1
- data/spec/unit/reports/store_spec.rb +1 -1
- data/spec/unit/reports/tagmail_spec.rb +1 -1
- data/spec/unit/reports_spec.rb +1 -1
- data/spec/unit/resource/catalog_spec.rb +1 -1
- data/spec/unit/resource/status_spec.rb +1 -1
- data/spec/unit/resource/type_collection_helper_spec.rb +1 -1
- data/spec/unit/resource/type_collection_spec.rb +1 -1
- data/spec/unit/resource/type_spec.rb +1 -1
- data/spec/unit/resource_spec.rb +1 -1
- data/spec/unit/run_spec.rb +1 -1
- data/spec/unit/settings/directory_setting_spec.rb +1 -1
- data/spec/unit/settings/file_setting_spec.rb +1 -1
- data/spec/unit/settings/path_setting_spec.rb +1 -1
- data/spec/unit/settings/string_setting_spec.rb +1 -1
- data/spec/unit/settings/terminus_setting_spec.rb +1 -1
- data/spec/unit/settings_spec.rb +1 -1
- data/spec/unit/simple_graph_spec.rb +1 -1
- data/spec/unit/ssl/base_spec.rb +1 -1
- data/spec/unit/ssl/certificate_authority/interface_spec.rb +1 -1
- data/spec/unit/ssl/certificate_authority_spec.rb +1 -1
- data/spec/unit/ssl/certificate_factory_spec.rb +1 -1
- data/spec/unit/ssl/certificate_request_spec.rb +1 -1
- data/spec/unit/ssl/certificate_revocation_list_spec.rb +1 -1
- data/spec/unit/ssl/certificate_spec.rb +1 -1
- data/spec/unit/ssl/configuration_spec.rb +1 -1
- data/spec/unit/ssl/digest_spec.rb +1 -1
- data/spec/unit/ssl/host_spec.rb +1 -1
- data/spec/unit/ssl/inventory_spec.rb +1 -1
- data/spec/unit/ssl/key_spec.rb +1 -1
- data/spec/unit/status_spec.rb +1 -1
- data/spec/unit/transaction/event_manager_spec.rb +1 -1
- data/spec/unit/transaction/event_spec.rb +1 -1
- data/spec/unit/transaction/report_spec.rb +1 -1
- data/spec/unit/transaction/resource_harness_spec.rb +1 -1
- data/spec/unit/transaction_spec.rb +1 -1
- data/spec/unit/type/augeas_spec.rb +1 -1
- data/spec/unit/type/component_spec.rb +1 -1
- data/spec/unit/type/computer_spec.rb +1 -1
- data/spec/unit/type/cron_spec.rb +1 -1
- data/spec/unit/type/exec_spec.rb +1 -1
- data/spec/unit/type/file/checksum_spec.rb +1 -1
- data/spec/unit/type/file/content_spec.rb +1 -1
- data/spec/unit/type/file/ctime_spec.rb +1 -1
- data/spec/unit/type/file/ensure_spec.rb +1 -1
- data/spec/unit/type/file/group_spec.rb +1 -1
- data/spec/unit/type/file/mode_spec.rb +1 -1
- data/spec/unit/type/file/mtime_spec.rb +1 -1
- data/spec/unit/type/file/owner_spec.rb +1 -1
- data/spec/unit/type/file/selinux_spec.rb +1 -1
- data/spec/unit/type/file/source_spec.rb +1 -1
- data/spec/unit/type/file/type_spec.rb +1 -1
- data/spec/unit/type/file_spec.rb +1 -1
- data/spec/unit/type/filebucket_spec.rb +1 -1
- data/spec/unit/type/group_spec.rb +1 -1
- data/spec/unit/type/host_spec.rb +1 -1
- data/spec/unit/type/interface_spec.rb +1 -1
- data/spec/unit/type/macauthorization_spec.rb +1 -1
- data/spec/unit/type/mailalias_spec.rb +1 -1
- data/spec/unit/type/maillist_spec.rb +1 -1
- data/spec/unit/type/mcx_spec.rb +1 -1
- data/spec/unit/type/mount_spec.rb +1 -1
- data/spec/unit/type/nagios_spec.rb +1 -1
- data/spec/unit/type/noop_metaparam_spec.rb +1 -1
- data/spec/unit/type/package_spec.rb +1 -1
- data/spec/unit/type/resources_spec.rb +1 -1
- data/spec/unit/type/schedule_spec.rb +1 -1
- data/spec/unit/type/scheduled_task_spec.rb +1 -1
- data/spec/unit/type/selboolean_spec.rb +1 -1
- data/spec/unit/type/selmodule_spec.rb +1 -1
- data/spec/unit/type/service_spec.rb +1 -1
- data/spec/unit/type/ssh_authorized_key_spec.rb +1 -1
- data/spec/unit/type/sshkey_spec.rb +1 -1
- data/spec/unit/type/stage_spec.rb +1 -1
- data/spec/unit/type/tidy_spec.rb +1 -1
- data/spec/unit/type/user_spec.rb +1 -1
- data/spec/unit/type/vlan_spec.rb +1 -1
- data/spec/unit/type/whit_spec.rb +1 -1
- data/spec/unit/type/yumrepo_spec.rb +1 -1
- data/spec/unit/type/zfs_spec.rb +1 -1
- data/spec/unit/type/zone_spec.rb +1 -1
- data/spec/unit/type/zpool_spec.rb +1 -1
- data/spec/unit/type_spec.rb +1 -1
- data/spec/unit/util/autoload_spec.rb +1 -1
- data/spec/unit/util/backups_spec.rb +1 -1
- data/spec/unit/util/cache_accumulator_spec.rb +1 -1
- data/spec/unit/util/cacher_spec.rb +1 -1
- data/spec/unit/util/checksums_spec.rb +1 -1
- data/spec/unit/util/command_line_spec.rb +1 -1
- data/spec/unit/util/constant_inflector_spec.rb +1 -1
- data/spec/unit/util/diff_spec.rb +1 -1
- data/spec/unit/util/errors_spec.rb +1 -1
- data/spec/unit/util/execution_spec.rb +1 -1
- data/spec/unit/util/execution_stub_spec.rb +1 -1
- data/spec/unit/util/feature_spec.rb +1 -1
- data/spec/unit/util/filetype_spec.rb +1 -1
- data/spec/unit/util/inline_docs_spec.rb +1 -1
- data/spec/unit/util/instrumentation/data_spec.rb +1 -1
- data/spec/unit/util/instrumentation/indirection_probe_spec.rb +1 -1
- data/spec/unit/util/instrumentation/instrumentable_spec.rb +1 -1
- data/spec/unit/util/instrumentation/listener_spec.rb +1 -1
- data/spec/unit/util/instrumentation_spec.rb +1 -1
- data/spec/unit/util/json_lockfile_spec.rb +1 -1
- data/spec/unit/util/ldap/connection_spec.rb +1 -1
- data/spec/unit/util/ldap/generator_spec.rb +1 -1
- data/spec/unit/util/ldap/manager_spec.rb +1 -1
- data/spec/unit/util/loadedfile_spec.rb +1 -1
- data/spec/unit/util/lockfile_spec.rb +1 -1
- data/spec/unit/util/log/destinations_spec.rb +1 -1
- data/spec/unit/util/log/rate_limited_logger_spec.rb +1 -1
- data/spec/unit/util/log_spec.rb +1 -1
- data/spec/unit/util/logging_spec.rb +1 -1
- data/spec/unit/util/metric_spec.rb +1 -1
- data/spec/unit/util/monkey_patches/lines_spec.rb +1 -1
- data/spec/unit/util/monkey_patches_spec.rb +1 -1
- data/spec/unit/util/nagios_maker_spec.rb +1 -1
- data/spec/unit/util/network_device/cisco/device_spec.rb +1 -1
- data/spec/unit/util/network_device/cisco/facts_spec.rb +1 -1
- data/spec/unit/util/network_device/cisco/interface_spec.rb +1 -1
- data/spec/unit/util/network_device/config_spec.rb +1 -1
- data/spec/unit/util/network_device/ipcalc_spec.rb +1 -1
- data/spec/unit/util/network_device/transport/base_spec.rb +1 -1
- data/spec/unit/util/network_device/transport/ssh_spec.rb +1 -1
- data/spec/unit/util/network_device/transport/telnet_spec.rb +1 -1
- data/spec/unit/util/network_device_spec.rb +1 -1
- data/spec/unit/util/package_spec.rb +1 -1
- data/spec/unit/util/pidlock_spec.rb +1 -1
- data/spec/unit/util/posix_spec.rb +1 -1
- data/spec/unit/util/pson_spec.rb +1 -1
- data/spec/unit/util/queue/stomp_spec.rb +1 -1
- data/spec/unit/util/queue_spec.rb +1 -1
- data/spec/unit/util/rdoc/parser_spec.rb +1 -1
- data/spec/unit/util/rdoc_spec.rb +1 -1
- data/spec/unit/util/reference_serializer_spec.rb +1 -1
- data/spec/unit/util/reference_spec.rb +1 -1
- data/spec/unit/util/resource_template_spec.rb +1 -1
- data/spec/unit/util/retryaction_spec.rb +1 -1
- data/spec/unit/util/run_mode_spec.rb +1 -1
- data/spec/unit/util/selinux_spec.rb +1 -1
- data/spec/unit/util/storage_spec.rb +1 -1
- data/spec/unit/util/suidmanager_spec.rb +1 -1
- data/spec/unit/util/symbolic_file_mode_spec.rb +1 -1
- data/spec/unit/util/tagging_spec.rb +1 -1
- data/spec/unit/util/terminal_spec.rb +1 -1
- data/spec/unit/util/user_attr_spec.rb +1 -1
- data/spec/unit/util/warnings_spec.rb +1 -1
- data/spec/unit/util/windows/registry_spec.rb +1 -1
- data/spec/unit/util/zaml_spec.rb +1 -1
- metadata +2224 -2226
@@ -8,6 +8,11 @@ def check_tool(tool)
|
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
11
|
+
def has_tool(tool)
|
12
|
+
%x{which #{tool}}
|
13
|
+
return $?.success?
|
14
|
+
end
|
15
|
+
|
11
16
|
def find_tool(tool)
|
12
17
|
location = %x{which #{tool}}.chomp
|
13
18
|
location if $?.success?
|
@@ -163,9 +168,12 @@ def get_rpmrelease
|
|
163
168
|
end
|
164
169
|
end
|
165
170
|
|
166
|
-
def
|
167
|
-
|
168
|
-
|
171
|
+
def load_keychain
|
172
|
+
unless @keychain_loaded
|
173
|
+
kill_keychain
|
174
|
+
start_keychain
|
175
|
+
@keychain_loaded = TRUE
|
176
|
+
end
|
169
177
|
end
|
170
178
|
|
171
179
|
def kill_keychain
|
@@ -234,3 +242,49 @@ def x(v)
|
|
234
242
|
print %x[#{v}]
|
235
243
|
end
|
236
244
|
|
245
|
+
def ask_yes_or_no
|
246
|
+
answer = STDIN.gets.downcase.chomp
|
247
|
+
return TRUE if answer =~ /^y$|^yes$/
|
248
|
+
return FALSE if answer =~ /^n$|^no$/
|
249
|
+
puts "Nope, try something like yes or no or y or n, etc:"
|
250
|
+
ask_yes_or_no
|
251
|
+
end
|
252
|
+
|
253
|
+
def handle_method_failure(method, args)
|
254
|
+
STDERR.puts "There was an error running the method #{method} with the arguments:"
|
255
|
+
args.each { |param, arg| STDERR.puts "\t#{param} => #{arg}\n" }
|
256
|
+
STDERR.puts "The rake session is paused. Would you like to retry #{method} with these args and continue where you left off? [y,n]"
|
257
|
+
if ask_yes_or_no
|
258
|
+
send(method, args)
|
259
|
+
else
|
260
|
+
exit 1
|
261
|
+
end
|
262
|
+
end
|
263
|
+
|
264
|
+
def invoke_task(task, args=nil)
|
265
|
+
Rake::Task[task].reenable
|
266
|
+
Rake::Task[task].invoke(args)
|
267
|
+
end
|
268
|
+
|
269
|
+
def confirm_ship(files)
|
270
|
+
STDOUT.puts "The following files have been built and are ready to ship:"
|
271
|
+
files.each { |file| STDOUT.puts "\t#{file}\n" unless File.directory?(file) }
|
272
|
+
STDOUT.puts "Ship these files?? [y,n]"
|
273
|
+
ask_yes_or_no
|
274
|
+
end
|
275
|
+
|
276
|
+
def boolean_value(var)
|
277
|
+
return TRUE if (var == TRUE || ( var.is_a?(String) && var.downcase == 'true' ))
|
278
|
+
FALSE
|
279
|
+
end
|
280
|
+
|
281
|
+
def git_tag(version)
|
282
|
+
begin
|
283
|
+
sh "git tag -s -u #{@gpg_key} -m '#{version}' #{version}"
|
284
|
+
rescue Exception => e
|
285
|
+
STDERR.puts e
|
286
|
+
STDERR.puts "Unable to tag repo at #{version}"
|
287
|
+
exit 1
|
288
|
+
end
|
289
|
+
end
|
290
|
+
|
@@ -25,38 +25,40 @@ rescue
|
|
25
25
|
end
|
26
26
|
|
27
27
|
begin
|
28
|
-
@pkg_defaults
|
29
|
-
@
|
30
|
-
@
|
31
|
-
@
|
32
|
-
@
|
33
|
-
@
|
34
|
-
@
|
35
|
-
@
|
36
|
-
@
|
37
|
-
@
|
38
|
-
@
|
39
|
-
@
|
40
|
-
@
|
41
|
-
@
|
42
|
-
@
|
43
|
-
@
|
44
|
-
@
|
45
|
-
@
|
46
|
-
@
|
47
|
-
@
|
48
|
-
@
|
49
|
-
@
|
28
|
+
@pkg_defaults ||= YAML.load_file('ext/build_defaults.yaml')
|
29
|
+
@sign_tar = boolean_value( ENV['SIGN_TAR'] || @pkg_defaults['sign_tar'] )
|
30
|
+
@build_gem = boolean_value( ENV['GEM'] || @pkg_defaults['build_gem'] )
|
31
|
+
@build_dmg = boolean_value( ENV['DMG'] || @pkg_defaults['build_dmg'] )
|
32
|
+
@build_ips = boolean_value( ENV['IPS'] || @pkg_defaults['build_ips'] )
|
33
|
+
@default_cow = ENV['COW'] || @pkg_defaults['default_cow']
|
34
|
+
@cows = ENV['COW'] || @pkg_defaults['cows']
|
35
|
+
@pbuild_conf = ENV['PBUILDCONF'] || @pkg_defaults['pbuild_conf']
|
36
|
+
@packager = ENV['PACKAGER'] || @pkg_defaults['packager']
|
37
|
+
@final_mocks = ENV['MOCK'] || @pkg_defaults['final_mocks']
|
38
|
+
@rc_mocks = ENV['MOCK'] || @pkg_defaults['rc_mocks']
|
39
|
+
@gpg_name = ENV['GPG_NAME'] || @pkg_defaults['gpg_name']
|
40
|
+
@gpg_key = ENV['GPG_KEY'] || @pkg_defaults['gpg_key']
|
41
|
+
@certificate_pem = ENV['CERT_PEM'] || @pkg_defaults['certificate_pem']
|
42
|
+
@privatekey_pem = ENV['PRIVATE_PEM'] || @pkg_defaults['privatekey_pem']
|
43
|
+
@yum_host = @pkg_defaults['yum_host']
|
44
|
+
@yum_repo_path = @pkg_defaults['yum_repo_path']
|
45
|
+
@apt_host = @pkg_defaults['apt_host']
|
46
|
+
@apt_repo_url = @pkg_defaults['apt_repo_url']
|
47
|
+
@apt_repo_path = @pkg_defaults['apt_repo_path']
|
48
|
+
@ips_repo = @pkg_defaults['ips_repo']
|
49
|
+
@ips_store = @pkg_defaults['ips_store']
|
50
|
+
@ips_host = @pkg_defaults['ips_host']
|
50
51
|
rescue
|
51
52
|
STDERR.puts "There was an error loading the packaging defaults from the 'ext/build_defaults.yaml' file."
|
52
53
|
exit 1
|
53
54
|
end
|
54
55
|
|
55
|
-
@build_root
|
56
|
-
@version
|
57
|
-
@gemversion
|
58
|
-
@ipsversion
|
59
|
-
@debversion
|
60
|
-
@origversion
|
61
|
-
@rpmversion
|
62
|
-
@rpmrelease
|
56
|
+
@build_root ||= Dir.pwd
|
57
|
+
@version ||= get_dash_version
|
58
|
+
@gemversion ||= get_dot_version
|
59
|
+
@ipsversion ||= get_ips_version
|
60
|
+
@debversion ||= get_debversion
|
61
|
+
@origversion ||= get_origversion
|
62
|
+
@rpmversion ||= get_rpmversion
|
63
|
+
@rpmrelease ||= get_rpmrelease
|
64
|
+
@keychain_loaded ||= FALSE
|
@@ -5,17 +5,18 @@ def pdebuild args
|
|
5
5
|
set_cow_envs(cow)
|
6
6
|
begin
|
7
7
|
sh "pdebuild --configfile #{@pbuild_conf} --buildresult #{results_dir} --pbuilder cowbuilder -- --override-config --othermirror=\"deb #{@apt_repo_url} #{ENV['DIST']} main dependencies #{devel_repo}\" --basepath /var/cache/pbuilder/#{cow}/"
|
8
|
-
rescue
|
9
|
-
|
10
|
-
|
8
|
+
rescue Exception => e
|
9
|
+
puts e
|
10
|
+
handle_method_failure('pdebuild', args)
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
14
|
def update_cow(cow, is_rc = nil)
|
15
15
|
ENV['FOSS_DEVEL'] = is_rc
|
16
|
+
ENV['PATH'] = "/usr/sbin:#{ENV['PATH']}"
|
16
17
|
set_cow_envs(cow)
|
17
18
|
begin
|
18
|
-
sh "sudo cowbuilder --update --override-config --configfile #{@pbuild_conf} --basepath /var/cache/pbuilder/#{cow} --distribution #{ENV['DIST']} --architecture #{ENV['ARCH']}"
|
19
|
+
sh "sudo -E /usr/sbin/cowbuilder --update --override-config --configfile #{@pbuild_conf} --basepath /var/cache/pbuilder/#{cow} --distribution #{ENV['DIST']} --architecture #{ENV['ARCH']}"
|
19
20
|
rescue
|
20
21
|
STDERR.puts "Couldn't update the cow #{cow}. Perhaps you don't have sudo?"
|
21
22
|
exit 1
|
@@ -49,19 +50,16 @@ task :build_deb, :deb_command, :cow, :devel do |t,args|
|
|
49
50
|
work_dir = get_temp
|
50
51
|
dest_dir = "#{@build_root}/pkg/deb/#{cow.split('-')[1] unless cow.nil?}"
|
51
52
|
check_tool(deb_build)
|
53
|
+
update_cow(cow, devel)
|
52
54
|
mkdir_p dest_dir
|
53
55
|
deb_args = { :work_dir => work_dir, :cow => cow, :devel => devel}
|
54
56
|
Rake::Task[:prep_deb_tars].reenable
|
55
57
|
Rake::Task[:prep_deb_tars].invoke(work_dir)
|
56
58
|
cd "#{work_dir}/#{@name}-#{@debversion}" do
|
57
59
|
mv 'ext/debian', '.'
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
rm_rf "#{work_dir}/#{@name}-#{@debversion}"
|
62
|
-
rescue
|
63
|
-
STDERR.puts "Something went wrong. Hopefully the backscroll or #{work_dir}/#{@name}_#{@debversion}.build file has a clue."
|
64
|
-
end
|
60
|
+
send(deb_build, deb_args)
|
61
|
+
cp FileList["#{work_dir}/*.deb", "#{work_dir}/*.dsc", "#{work_dir}/*.changes", "#{work_dir}/*.debian.tar.gz", "#{work_dir}/*.orig.tar.gz"], dest_dir
|
62
|
+
rm_rf "#{work_dir}/#{@name}-#{@debversion}"
|
65
63
|
rm_rf work_dir
|
66
64
|
end
|
67
65
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
if @build_gem
|
1
|
+
if @build_gem
|
2
2
|
require 'rubygems/package_task'
|
3
3
|
|
4
4
|
def glob_gem_files
|
@@ -44,8 +44,11 @@ if @build_gem == TRUE or @build_gem == 'true' or @build_gem == 'TRUE'
|
|
44
44
|
end
|
45
45
|
|
46
46
|
namespace :package do
|
47
|
-
Gem::PackageTask.new(spec)
|
48
|
-
|
47
|
+
gem_task = Gem::PackageTask.new(spec)
|
48
|
+
desc "Build a gem"
|
49
|
+
task :gem => [ "clean" ] do
|
50
|
+
gem_task.define
|
51
|
+
Rake::Task[:gem].invoke
|
49
52
|
end
|
50
53
|
end
|
51
54
|
end
|
@@ -1,78 +1,80 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
namespace :
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
if @build_ips
|
2
|
+
require 'erb'
|
3
|
+
namespace :package do
|
4
|
+
namespace :ips do
|
5
|
+
workdir = "pkg/ips"
|
6
|
+
proto = workdir + '/proto'
|
7
|
+
repo = workdir + '/repo'
|
8
|
+
pkgs = workdir + '/pkgs'
|
9
|
+
repouri = "file://#{`pwd`.strip + '/' + repo}"
|
10
|
+
artifact = "#{pkgs}/#{@name}@#{@ipsversion}.p5p"
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
# Create a source repo
|
13
|
+
# We dont clean the base pkg directory only ips work dir.
|
14
|
+
task :clean do
|
15
|
+
%x[rm -rf #{workdir}]
|
16
|
+
end
|
16
17
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
# Create an installation image at ips/proto
|
19
|
+
task :prepare => :clean do
|
20
|
+
check_tool('pkgsend')
|
21
|
+
x %[mkdir -p #{workdir}]
|
22
|
+
x %[gmake -f ext/ips/rules DESTDIR=#{proto} 2>#{workdir}/build.out ]
|
23
|
+
end
|
23
24
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
# Process templates and write the initial manifest
|
26
|
+
task :prototmpl do
|
27
|
+
erb("ext/ips/#{@name}.p5m.erb", workdir + '/' + @name + '.p5m.x')
|
28
|
+
end
|
28
29
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
30
|
+
# Update manifest to include the installation image information.
|
31
|
+
task :protogen => :prototmpl do
|
32
|
+
x %[pkgsend generate #{proto} >> #{workdir}/#{@name}.p5m.x ]
|
33
|
+
os=%x[uname -p].chomp
|
34
|
+
end
|
34
35
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
36
|
+
# Generate and resolve dependency list
|
37
|
+
task :protodeps => :protogen do
|
38
|
+
x %[pkgdepend generate -d #{proto} #{workdir}/#{@name}.p5m.x > #{workdir}/#{@name}.depends ]
|
39
|
+
x %[pkgdepend resolve -m #{workdir}/#{@name}.depends ]
|
40
|
+
x %[cat #{workdir}/#{@name}.depends.res >> #{workdir}/#{@name}.p5m.x]
|
41
|
+
end
|
41
42
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
43
|
+
# Mogrify manifest to remove unncecessary info, and other kinds of transforms.
|
44
|
+
task :protomogrify => :protodeps do
|
45
|
+
x %[pkgmogrify ./ext/ips/transforms ./#{workdir}/#{@name}.p5m.x| pkgfmt >> #{workdir}/#{@name}.p5m ]
|
46
|
+
end
|
46
47
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
48
|
+
# Generate and resolve dependency list
|
49
|
+
task :license => :protomogrify do
|
50
|
+
x %[cp LICENSE #{proto}/#{@name}.license]
|
51
|
+
end
|
51
52
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
53
|
+
# Ensure that our manifest is sane.
|
54
|
+
task :lint => :license do
|
55
|
+
x %[pkglint #{workdir}/#{@name}.p5m]
|
56
|
+
end
|
56
57
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
58
|
+
task :package => :lint do
|
59
|
+
x %[rm -rf #{pkgs}]
|
60
|
+
x %[mkdir -p #{pkgs}]
|
61
|
+
x %[pkgrepo create #{repo}]
|
62
|
+
x %[pkgrepo set -s #{repo} publisher/prefix=puppetlabs.com]
|
63
|
+
x %[pkgsend -s #{repouri} publish -d #{proto} --fmri-in-manifest #{workdir}/#{@name}.p5m]
|
64
|
+
x %[rm -f #{artifact}]
|
65
|
+
x %[pkgrecv -s #{repouri} -a -d #{artifact} #{@name}@#{@ipsversion}]
|
66
|
+
end
|
66
67
|
|
67
|
-
|
68
|
-
|
68
|
+
task :dry_install do
|
69
|
+
x %[pkg install -nv -g #{artifact} #{@name}@#{@ipsversion}]
|
70
|
+
end
|
69
71
|
end
|
70
|
-
end
|
71
72
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
73
|
+
desc "Creates an ips version"
|
74
|
+
task :ips do
|
75
|
+
Rake::Task['package:ips:prepare'].invoke
|
76
|
+
Rake::Task['package:ips:package'].invoke
|
77
|
+
end
|
77
78
|
|
79
|
+
end
|
78
80
|
end
|
@@ -49,7 +49,7 @@ def build_rpm_with_mock(is_rc, subdir)
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
case rpm
|
52
|
+
case File.basename(rpm)
|
53
53
|
when /debuginfo/
|
54
54
|
rm_rf(rpm)
|
55
55
|
when /src\.rpm/
|
@@ -60,7 +60,7 @@ def build_rpm_with_mock(is_rc, subdir)
|
|
60
60
|
cp_pr(rpm, "pkg/#{family}/#{version}/#{subdir}/x86_64")
|
61
61
|
when /noarch/
|
62
62
|
cp_pr(rpm, "pkg/#{family}/#{version}/#{subdir}/i386")
|
63
|
-
ln("pkg/#{family}/#{version}/#{subdir}/i386/#{File.basename
|
63
|
+
ln("pkg/#{family}/#{version}/#{subdir}/i386/#{File.basename(rpm)}", "pkg/#{family}/#{version}/#{subdir}/x86_64/")
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
@@ -1,20 +1,56 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
# These tasks are "release" chains that couple as much of the release process for a package as possible
|
2
|
+
|
3
|
+
namespace :pl do
|
4
|
+
if @build_gem
|
5
|
+
desc "Build and ship a gem"
|
6
|
+
task :release_gem do
|
7
|
+
invoke_task("package:gem")
|
8
|
+
if confirm_ship(FileList["pkg/*.gem"])
|
9
|
+
invoke_task("pl:ship_gem")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
desc "Release deb RCs, e.g. package:tar, pl:{deb_all_rc, sign_deb_changes, ship_debs}"
|
15
|
+
task :release_deb_rc do
|
16
|
+
load_keychain if has_tool('keychain')
|
17
|
+
invoke_task("pl:deb_all_rc")
|
18
|
+
invoke_task("pl:sign_deb_changes")
|
19
|
+
if confirm_ship(FileList["pkg/deb/**/*"])
|
20
|
+
invoke_task("pl:ship_debs")
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
desc "Release deb FINALs, e.g. package:tar, pl:{deb_all, sign_deb_changes, ship_debs}"
|
25
|
+
task :release_deb_final do
|
26
|
+
load_keychain if has_tool('keychain')
|
27
|
+
invoke_task("pl:deb_all")
|
28
|
+
invoke_task("pl:sign_deb_changes")
|
29
|
+
if confirm_ship(FileList["pkg/deb/**/*"])
|
30
|
+
invoke_task("pl:ship_debs")
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
desc "Release rpm RCs, e.g. package:tar, pl:{mock_rc, sign_rpms, ship_rpms, update_yum_repo}"
|
35
|
+
task :release_rpm_rc do
|
36
|
+
invoke_task("pl:mock_rc")
|
37
|
+
invoke_task("pl:sign_rpms")
|
38
|
+
if confirm_ship(FileList["pkg/el/**/*", "pkg/fedora/**/*"])
|
39
|
+
invoke_task("pl:ship_rpms")
|
40
|
+
invoke_task("pl:update_yum_repo")
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
desc "Release rpm FINALs, e.g. package:tar, pl:{mock_final, sign_rpms, ship_rpms, update_yum_repo}"
|
45
|
+
task :release_rpm_final do
|
46
|
+
invoke_task("pl:mock_final")
|
47
|
+
invoke_task("pl:sign_rpms")
|
48
|
+
if confirm_ship(FileList["pkg/el/**/*", "pkg/fedora/**/*"])
|
49
|
+
invoke_task("pl:ship_rpms")
|
50
|
+
invoke_task("pl:update_yum_repo")
|
13
51
|
end
|
14
|
-
file = File.open(@version_file, 'w')
|
15
|
-
file.write contents
|
16
|
-
file.close
|
17
|
-
git_commit_file(@version_file)
|
18
52
|
end
|
19
53
|
end
|
20
54
|
|
55
|
+
|
56
|
+
|