puppet-retrospec 0.12.1 → 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +35 -0
- data/.rspec +1 -0
- data/CHANGELOG.md +11 -7
- data/Gemfile +13 -5
- data/Gemfile.lock +1 -0
- data/README.md +1 -1
- data/Rakefile +4 -2
- data/VERSION +1 -1
- data/lib/retrospec/plugins/v1/plugin/generators/fact_generator.rb +1 -1
- data/lib/retrospec/plugins/v1/plugin/generators/function_generator.rb +3 -3
- data/lib/retrospec/plugins/v1/plugin/generators/provider_generator.rb +3 -1
- data/lib/retrospec/plugins/v1/plugin/generators/schema_generator.rb +7 -7
- data/lib/retrospec/plugins/v1/plugin/puppet.rb +4 -1
- data/lib/retrospec/plugins/v1/plugin/version.rb +1 -1
- data/puppet-retrospec.gemspec +10 -561
- data/spec/spec_helper.rb +18 -6
- data/spec/unit/generators/fact_generater_spec.rb +5 -1
- data/spec/unit/generators/function_generator_spec.rb +4 -0
- data/spec/unit/generators/parsers/fact_spec.rb +2 -2
- data/spec/unit/generators/provider_generator_spec.rb +4 -0
- data/spec/unit/generators/type_generator_spec.rb +6 -1
- data/spec/unit/module_spec.rb +1 -1
- data/spec/unit/puppet-retrospec_spec.rb +31 -28
- data/spec/unit/resource_spec.rb +1 -1
- metadata +27 -633
- data/.travis.yml +0 -29
- data/spec/fixtures/facts/datacenter_facts.rb +0 -15
- data/spec/fixtures/facts/facts_with_methods.rb +0 -19
- data/spec/fixtures/facts/node_role.rb +0 -8
- data/spec/fixtures/facts/oracle_controls.rb +0 -38
- data/spec/fixtures/fixture_modules/one_resource_module/manifests/another_resource.pp +0 -29
- data/spec/fixtures/fixture_modules/one_resource_module/manifests/inherits_params.pp +0 -8
- data/spec/fixtures/fixture_modules/one_resource_module/manifests/one_resource_class.pp +0 -6
- data/spec/fixtures/fixture_modules/one_resource_module/manifests/params.pp +0 -19
- data/spec/fixtures/fixture_modules/required_parameters/manifests/init.pp +0 -8
- data/spec/fixtures/fixture_modules/sample_module/lib/facter/fix_installed.rb +0 -11
- data/spec/fixtures/fixture_modules/sample_module/lib/puppet/functions/awesome_parser.rb +0 -13
- data/spec/fixtures/fixture_modules/sample_module/lib/puppet/functions/reduce.rb +0 -31
- data/spec/fixtures/fixture_modules/sample_module/lib/puppet/parser/functions/bad_sha1.rb +0 -6
- data/spec/fixtures/fixture_modules/sample_module/lib/puppet/parser/functions/defined.rb +0 -94
- data/spec/fixtures/fixture_modules/sample_module/lib/puppet/parser/functions/sha1.rb +0 -6
- data/spec/fixtures/fixture_modules/sample_module/spec/unit/facter/fix_installed_spec.rb +0 -21
- data/spec/fixtures/fixture_modules/zero_resource_module/manifests/empty_class.pp +0 -3
- data/spec/fixtures/fixture_modules/zero_resource_module/manifests/not_a_resource_defination.pp +0 -1
- data/spec/fixtures/fixture_modules/zero_resource_module/metadata.json +0 -13
- data/spec/fixtures/manifests/includes-class.pp +0 -26
- data/spec/fixtures/manifests/includes-defines.pp +0 -26
- data/spec/fixtures/modules/concat/CHANGELOG.md +0 -257
- data/spec/fixtures/modules/concat/CONTRIBUTING.md +0 -220
- data/spec/fixtures/modules/concat/Gemfile +0 -50
- data/spec/fixtures/modules/concat/LICENSE +0 -14
- data/spec/fixtures/modules/concat/README.md +0 -283
- data/spec/fixtures/modules/concat/Rakefile +0 -10
- data/spec/fixtures/modules/concat/checksums.json +0 -54
- data/spec/fixtures/modules/concat/files/concatfragments.rb +0 -153
- data/spec/fixtures/modules/concat/lib/facter/concat_basedir.rb +0 -11
- data/spec/fixtures/modules/concat/lib/puppet/parser/functions/concat_getparam.rb +0 -35
- data/spec/fixtures/modules/concat/lib/puppet/parser/functions/concat_is_bool.rb +0 -22
- data/spec/fixtures/modules/concat/manifests/fragment.pp +0 -133
- data/spec/fixtures/modules/concat/manifests/init.pp +0 -268
- data/spec/fixtures/modules/concat/manifests/setup.pp +0 -64
- data/spec/fixtures/modules/concat/metadata.json +0 -110
- data/spec/fixtures/modules/concat/spec/acceptance/backup_spec.rb +0 -115
- data/spec/fixtures/modules/concat/spec/acceptance/concat_spec.rb +0 -217
- data/spec/fixtures/modules/concat/spec/acceptance/deprecation_warnings_spec.rb +0 -238
- data/spec/fixtures/modules/concat/spec/acceptance/empty_spec.rb +0 -23
- data/spec/fixtures/modules/concat/spec/acceptance/fragment_source_spec.rb +0 -157
- data/spec/fixtures/modules/concat/spec/acceptance/fragments_are_always_replaced_spec.rb +0 -139
- data/spec/fixtures/modules/concat/spec/acceptance/newline_spec.rb +0 -67
- data/spec/fixtures/modules/concat/spec/acceptance/nodesets/aix-71-vcloud.yml +0 -19
- data/spec/fixtures/modules/concat/spec/acceptance/nodesets/centos-59-x64.yml +0 -10
- data/spec/fixtures/modules/concat/spec/acceptance/nodesets/centos-64-x64-pe.yml +0 -12
- data/spec/fixtures/modules/concat/spec/acceptance/nodesets/centos-64-x64.yml +0 -10
- data/spec/fixtures/modules/concat/spec/acceptance/nodesets/centos-65-x64.yml +0 -10
- data/spec/fixtures/modules/concat/spec/acceptance/nodesets/debian-607-x64.yml +0 -10
- data/spec/fixtures/modules/concat/spec/acceptance/nodesets/debian-70rc1-x64.yml +0 -10
- data/spec/fixtures/modules/concat/spec/acceptance/nodesets/debian-73-x64.yml +0 -11
- data/spec/fixtures/modules/concat/spec/acceptance/nodesets/default.yml +0 -10
- data/spec/fixtures/modules/concat/spec/acceptance/nodesets/fedora-18-x64.yml +0 -10
- data/spec/fixtures/modules/concat/spec/acceptance/nodesets/sles-11-x64.yml +0 -10
- data/spec/fixtures/modules/concat/spec/acceptance/nodesets/sles-11sp1-x64.yml +0 -10
- data/spec/fixtures/modules/concat/spec/acceptance/nodesets/ubuntu-server-10044-x64.yml +0 -10
- data/spec/fixtures/modules/concat/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml +0 -10
- data/spec/fixtures/modules/concat/spec/acceptance/nodesets/ubuntu-server-1404-x64.yml +0 -11
- data/spec/fixtures/modules/concat/spec/acceptance/order_spec.rb +0 -123
- data/spec/fixtures/modules/concat/spec/acceptance/quoted_paths_spec.rb +0 -42
- data/spec/fixtures/modules/concat/spec/acceptance/replace_spec.rb +0 -262
- data/spec/fixtures/modules/concat/spec/acceptance/specinfra_stubs.rb +0 -19
- data/spec/fixtures/modules/concat/spec/acceptance/symbolic_name_spec.rb +0 -35
- data/spec/fixtures/modules/concat/spec/acceptance/validation_spec.rb +0 -35
- data/spec/fixtures/modules/concat/spec/acceptance/warn_spec.rb +0 -104
- data/spec/fixtures/modules/concat/spec/spec.opts +0 -6
- data/spec/fixtures/modules/concat/spec/spec_helper.rb +0 -1
- data/spec/fixtures/modules/concat/spec/spec_helper_acceptance.rb +0 -61
- data/spec/fixtures/modules/concat/spec/unit/classes/concat_setup_spec.rb +0 -98
- data/spec/fixtures/modules/concat/spec/unit/defines/concat_fragment_spec.rb +0 -330
- data/spec/fixtures/modules/concat/spec/unit/defines/concat_spec.rb +0 -415
- data/spec/fixtures/modules/concat/spec/unit/facts/concat_basedir_spec.rb +0 -18
- data/spec/fixtures/modules/concat/tests/fragment.pp +0 -19
- data/spec/fixtures/modules/concat/tests/init.pp +0 -7
- data/spec/fixtures/modules/staging/Gemfile +0 -7
- data/spec/fixtures/modules/staging/LICENSE +0 -11
- data/spec/fixtures/modules/staging/README.md +0 -70
- data/spec/fixtures/modules/staging/Rakefile +0 -1
- data/spec/fixtures/modules/staging/Vagrantfile +0 -29
- data/spec/fixtures/modules/staging/checksums.json +0 -37
- data/spec/fixtures/modules/staging/docs/deploy.html +0 -113
- data/spec/fixtures/modules/staging/docs/extract.html +0 -176
- data/spec/fixtures/modules/staging/docs/file.html +0 -178
- data/spec/fixtures/modules/staging/docs/init.html +0 -87
- data/spec/fixtures/modules/staging/files/sample +0 -1
- data/spec/fixtures/modules/staging/files/sample.tar.bz2 +0 -0
- data/spec/fixtures/modules/staging/files/sample.tar.gz +0 -0
- data/spec/fixtures/modules/staging/lib/facter/staging_http_get.rb +0 -29
- data/spec/fixtures/modules/staging/lib/facter/staging_windir.rb +0 -11
- data/spec/fixtures/modules/staging/lib/puppet/parser/functions/scope_defaults.rb +0 -17
- data/spec/fixtures/modules/staging/lib/puppet/parser/functions/staging_parse.rb +0 -36
- data/spec/fixtures/modules/staging/manifests/.init.pp.swp +0 -0
- data/spec/fixtures/modules/staging/manifests/deploy.pp +0 -42
- data/spec/fixtures/modules/staging/manifests/extract.pp +0 -109
- data/spec/fixtures/modules/staging/manifests/file.pp +0 -125
- data/spec/fixtures/modules/staging/manifests/init.pp +0 -31
- data/spec/fixtures/modules/staging/manifests/params.pp +0 -33
- data/spec/fixtures/modules/staging/metadata.json +0 -106
- data/spec/fixtures/modules/staging/spec/defines/staging_deploy_spec.rb +0 -27
- data/spec/fixtures/modules/staging/spec/defines/staging_extract_spec.rb +0 -104
- data/spec/fixtures/modules/staging/spec/defines/staging_file_spec.rb +0 -163
- data/spec/fixtures/modules/staging/spec/fixtures/hiera.yaml +0 -7
- data/spec/fixtures/modules/staging/spec/spec_helper.rb +0 -29
- data/spec/fixtures/modules/staging/spec/unit/puppet/parser/functions/scope_defaults_spec.rb +0 -45
- data/spec/fixtures/modules/staging/spec/unit/puppet/parser/functions/staging_parse_spec.rb +0 -51
- data/spec/fixtures/modules/staging/tests/deploy.pp +0 -4
- data/spec/fixtures/modules/staging/tests/extract.pp +0 -25
- data/spec/fixtures/modules/staging/tests/file.pp +0 -17
- data/spec/fixtures/modules/staging/tests/init.pp +0 -1
- data/spec/fixtures/modules/staging/tests/scope_defaults.pp +0 -7
- data/spec/fixtures/modules/staging/tests/staging_parse.pp +0 -12
- data/spec/fixtures/modules/stdlib/CHANGELOG.md +0 -515
- data/spec/fixtures/modules/stdlib/CONTRIBUTING.md +0 -220
- data/spec/fixtures/modules/stdlib/Gemfile +0 -51
- data/spec/fixtures/modules/stdlib/LICENSE +0 -19
- data/spec/fixtures/modules/stdlib/README.markdown +0 -1042
- data/spec/fixtures/modules/stdlib/README_DEVELOPER.markdown +0 -35
- data/spec/fixtures/modules/stdlib/README_SPECS.markdown +0 -7
- data/spec/fixtures/modules/stdlib/RELEASE_PROCESS.markdown +0 -24
- data/spec/fixtures/modules/stdlib/Rakefile +0 -18
- data/spec/fixtures/modules/stdlib/checksums.json +0 -381
- data/spec/fixtures/modules/stdlib/lib/facter/facter_dot_d.rb +0 -202
- data/spec/fixtures/modules/stdlib/lib/facter/pe_version.rb +0 -53
- data/spec/fixtures/modules/stdlib/lib/facter/puppet_vardir.rb +0 -26
- data/spec/fixtures/modules/stdlib/lib/facter/root_home.rb +0 -32
- data/spec/fixtures/modules/stdlib/lib/facter/util/puppet_settings.rb +0 -21
- data/spec/fixtures/modules/stdlib/lib/puppet/functions/type_of.rb +0 -17
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/abs.rb +0 -36
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/any2array.rb +0 -33
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/assert_private.rb +0 -29
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/base64.rb +0 -37
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/basename.rb +0 -34
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/bool2num.rb +0 -26
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/bool2str.rb +0 -27
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/camelcase.rb +0 -33
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/capitalize.rb +0 -33
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/ceiling.rb +0 -25
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/chomp.rb +0 -34
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/chop.rb +0 -36
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/concat.rb +0 -41
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/count.rb +0 -22
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/deep_merge.rb +0 -44
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/defined_with_params.rb +0 -35
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/delete.rb +0 -49
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/delete_at.rb +0 -49
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/delete_undef_values.rb +0 -34
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/delete_values.rb +0 -26
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/difference.rb +0 -36
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/dirname.rb +0 -21
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/downcase.rb +0 -32
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/empty.rb +0 -27
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/ensure_packages.rb +0 -35
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/ensure_resource.rb +0 -46
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/flatten.rb +0 -33
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/floor.rb +0 -25
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/fqdn_rand_string.rb +0 -34
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/fqdn_rotate.rb +0 -57
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/get_module_path.rb +0 -17
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/getparam.rb +0 -35
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/getvar.rb +0 -29
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/grep.rb +0 -33
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/has_interface_with.rb +0 -68
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/has_ip_address.rb +0 -25
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/has_ip_network.rb +0 -25
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/has_key.rb +0 -28
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/hash.rb +0 -41
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/intersection.rb +0 -34
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/is_array.rb +0 -22
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/is_bool.rb +0 -22
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/is_domain_name.rb +0 -54
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/is_float.rb +0 -30
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/is_function_available.rb +0 -26
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/is_hash.rb +0 -22
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/is_integer.rb +0 -45
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/is_ip_address.rb +0 -32
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/is_mac_address.rb +0 -27
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/is_numeric.rb +0 -75
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/is_string.rb +0 -26
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/join.rb +0 -41
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/join_keys_to_values.rb +0 -47
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/keys.rb +0 -26
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/loadyaml.rb +0 -20
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/lstrip.rb +0 -32
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/max.rb +0 -21
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/member.rb +0 -62
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/merge.rb +0 -34
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/min.rb +0 -21
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/num2bool.rb +0 -43
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/parsejson.rb +0 -24
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/parseyaml.rb +0 -24
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/pick.rb +0 -29
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/pick_default.rb +0 -35
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/prefix.rb +0 -52
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/private.rb +0 -17
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/pw_hash.rb +0 -56
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/range.rb +0 -88
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/reject.rb +0 -31
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/reverse.rb +0 -27
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/rstrip.rb +0 -31
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/shuffle.rb +0 -45
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/size.rb +0 -48
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/sort.rb +0 -27
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/squeeze.rb +0 -36
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/str2bool.rb +0 -46
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/str2saltedsha512.rb +0 -32
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/strftime.rb +0 -107
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/strip.rb +0 -38
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/suffix.rb +0 -45
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/swapcase.rb +0 -38
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/time.rb +0 -49
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/to_bytes.rb +0 -31
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/type.rb +0 -19
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/type3x.rb +0 -51
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/union.rb +0 -34
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/unique.rb +0 -50
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/upcase.rb +0 -45
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/uriescape.rb +0 -34
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/validate_absolute_path.rb +0 -69
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/validate_array.rb +0 -33
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/validate_augeas.rb +0 -83
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/validate_bool.rb +0 -34
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/validate_cmd.rb +0 -63
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/validate_hash.rb +0 -33
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/validate_integer.rb +0 -131
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/validate_ipv4_address.rb +0 -48
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/validate_ipv6_address.rb +0 -49
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/validate_numeric.rb +0 -93
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/validate_re.rb +0 -40
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/validate_slength.rb +0 -71
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/validate_string.rb +0 -38
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/values.rb +0 -39
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/values_at.rb +0 -99
- data/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/zip.rb +0 -39
- data/spec/fixtures/modules/stdlib/lib/puppet/provider/file_line/ruby.rb +0 -97
- data/spec/fixtures/modules/stdlib/lib/puppet/type/anchor.rb +0 -46
- data/spec/fixtures/modules/stdlib/lib/puppet/type/file_line.rb +0 -91
- data/spec/fixtures/modules/stdlib/manifests/init.pp +0 -20
- data/spec/fixtures/modules/stdlib/manifests/stages.pp +0 -43
- data/spec/fixtures/modules/stdlib/metadata.json +0 -113
- data/spec/fixtures/modules/stdlib/spec/acceptance/abs_spec.rb +0 -30
- data/spec/fixtures/modules/stdlib/spec/acceptance/any2array_spec.rb +0 -49
- data/spec/fixtures/modules/stdlib/spec/acceptance/base64_spec.rb +0 -18
- data/spec/fixtures/modules/stdlib/spec/acceptance/bool2num_spec.rb +0 -34
- data/spec/fixtures/modules/stdlib/spec/acceptance/build_csv.rb +0 -83
- data/spec/fixtures/modules/stdlib/spec/acceptance/capitalize_spec.rb +0 -33
- data/spec/fixtures/modules/stdlib/spec/acceptance/ceiling_spec.rb +0 -39
- data/spec/fixtures/modules/stdlib/spec/acceptance/chomp_spec.rb +0 -21
- data/spec/fixtures/modules/stdlib/spec/acceptance/chop_spec.rb +0 -45
- data/spec/fixtures/modules/stdlib/spec/acceptance/concat_spec.rb +0 -40
- data/spec/fixtures/modules/stdlib/spec/acceptance/count_spec.rb +0 -30
- data/spec/fixtures/modules/stdlib/spec/acceptance/deep_merge_spec.rb +0 -20
- data/spec/fixtures/modules/stdlib/spec/acceptance/defined_with_params_spec.rb +0 -22
- data/spec/fixtures/modules/stdlib/spec/acceptance/delete_at_spec.rb +0 -19
- data/spec/fixtures/modules/stdlib/spec/acceptance/delete_spec.rb +0 -19
- data/spec/fixtures/modules/stdlib/spec/acceptance/delete_undef_values_spec.rb +0 -19
- data/spec/fixtures/modules/stdlib/spec/acceptance/delete_values_spec.rb +0 -25
- data/spec/fixtures/modules/stdlib/spec/acceptance/difference_spec.rb +0 -26
- data/spec/fixtures/modules/stdlib/spec/acceptance/dirname_spec.rb +0 -42
- data/spec/fixtures/modules/stdlib/spec/acceptance/downcase_spec.rb +0 -39
- data/spec/fixtures/modules/stdlib/spec/acceptance/empty_spec.rb +0 -39
- data/spec/fixtures/modules/stdlib/spec/acceptance/ensure_packages_spec.rb +0 -22
- data/spec/fixtures/modules/stdlib/spec/acceptance/ensure_resource_spec.rb +0 -22
- data/spec/fixtures/modules/stdlib/spec/acceptance/flatten_spec.rb +0 -39
- data/spec/fixtures/modules/stdlib/spec/acceptance/floor_spec.rb +0 -39
- data/spec/fixtures/modules/stdlib/spec/acceptance/fqdn_rand_string_spec.rb +0 -60
- data/spec/fixtures/modules/stdlib/spec/acceptance/fqdn_rotate_spec.rb +0 -47
- data/spec/fixtures/modules/stdlib/spec/acceptance/get_module_path_spec.rb +0 -27
- data/spec/fixtures/modules/stdlib/spec/acceptance/getparam_spec.rb +0 -24
- data/spec/fixtures/modules/stdlib/spec/acceptance/getvar_spec.rb +0 -26
- data/spec/fixtures/modules/stdlib/spec/acceptance/grep_spec.rb +0 -26
- data/spec/fixtures/modules/stdlib/spec/acceptance/has_interface_with_spec.rb +0 -54
- data/spec/fixtures/modules/stdlib/spec/acceptance/has_ip_address_spec.rb +0 -33
- data/spec/fixtures/modules/stdlib/spec/acceptance/has_ip_network_spec.rb +0 -33
- data/spec/fixtures/modules/stdlib/spec/acceptance/has_key_spec.rb +0 -41
- data/spec/fixtures/modules/stdlib/spec/acceptance/hash_spec.rb +0 -26
- data/spec/fixtures/modules/stdlib/spec/acceptance/intersection_spec.rb +0 -27
- data/spec/fixtures/modules/stdlib/spec/acceptance/is_array_spec.rb +0 -67
- data/spec/fixtures/modules/stdlib/spec/acceptance/is_bool_spec.rb +0 -81
- data/spec/fixtures/modules/stdlib/spec/acceptance/is_domain_name_spec.rb +0 -83
- data/spec/fixtures/modules/stdlib/spec/acceptance/is_float_spec.rb +0 -86
- data/spec/fixtures/modules/stdlib/spec/acceptance/is_function_available_spec.rb +0 -58
- data/spec/fixtures/modules/stdlib/spec/acceptance/is_hash_spec.rb +0 -63
- data/spec/fixtures/modules/stdlib/spec/acceptance/is_integer_spec.rb +0 -95
- data/spec/fixtures/modules/stdlib/spec/acceptance/is_ip_address_spec.rb +0 -80
- data/spec/fixtures/modules/stdlib/spec/acceptance/is_mac_address_spec.rb +0 -38
- data/spec/fixtures/modules/stdlib/spec/acceptance/is_numeric_spec.rb +0 -95
- data/spec/fixtures/modules/stdlib/spec/acceptance/is_string_spec.rb +0 -102
- data/spec/fixtures/modules/stdlib/spec/acceptance/join_keys_to_values_spec.rb +0 -24
- data/spec/fixtures/modules/stdlib/spec/acceptance/join_spec.rb +0 -26
- data/spec/fixtures/modules/stdlib/spec/acceptance/keys_spec.rb +0 -23
- data/spec/fixtures/modules/stdlib/spec/acceptance/loadyaml_spec.rb +0 -33
- data/spec/fixtures/modules/stdlib/spec/acceptance/lstrip_spec.rb +0 -34
- data/spec/fixtures/modules/stdlib/spec/acceptance/max_spec.rb +0 -20
- data/spec/fixtures/modules/stdlib/spec/acceptance/member_spec.rb +0 -54
- data/spec/fixtures/modules/stdlib/spec/acceptance/merge_spec.rb +0 -23
- data/spec/fixtures/modules/stdlib/spec/acceptance/min_spec.rb +0 -20
- data/spec/fixtures/modules/stdlib/spec/acceptance/nodesets/centos-59-x64.yml +0 -10
- data/spec/fixtures/modules/stdlib/spec/acceptance/nodesets/centos-6-vcloud.yml +0 -15
- data/spec/fixtures/modules/stdlib/spec/acceptance/nodesets/centos-64-x64-pe.yml +0 -12
- data/spec/fixtures/modules/stdlib/spec/acceptance/nodesets/centos-64-x64.yml +0 -10
- data/spec/fixtures/modules/stdlib/spec/acceptance/nodesets/centos-65-x64.yml +0 -10
- data/spec/fixtures/modules/stdlib/spec/acceptance/nodesets/default.yml +0 -10
- data/spec/fixtures/modules/stdlib/spec/acceptance/nodesets/fedora-18-x64.yml +0 -10
- data/spec/fixtures/modules/stdlib/spec/acceptance/nodesets/sles-11-x64.yml +0 -10
- data/spec/fixtures/modules/stdlib/spec/acceptance/nodesets/ubuntu-server-10044-x64.yml +0 -10
- data/spec/fixtures/modules/stdlib/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml +0 -10
- data/spec/fixtures/modules/stdlib/spec/acceptance/nodesets/ubuntu-server-1404-x64.yml +0 -11
- data/spec/fixtures/modules/stdlib/spec/acceptance/nodesets/windows-2003-i386.yml +0 -26
- data/spec/fixtures/modules/stdlib/spec/acceptance/nodesets/windows-2003-x86_64.yml +0 -26
- data/spec/fixtures/modules/stdlib/spec/acceptance/nodesets/windows-2008-x86_64.yml +0 -26
- data/spec/fixtures/modules/stdlib/spec/acceptance/nodesets/windows-2008r2-x86_64.yml +0 -26
- data/spec/fixtures/modules/stdlib/spec/acceptance/nodesets/windows-2012-x86_64.yml +0 -26
- data/spec/fixtures/modules/stdlib/spec/acceptance/nodesets/windows-2012r2-x86_64.yml +0 -26
- data/spec/fixtures/modules/stdlib/spec/acceptance/num2bool_spec.rb +0 -76
- data/spec/fixtures/modules/stdlib/spec/acceptance/parsejson_spec.rb +0 -34
- data/spec/fixtures/modules/stdlib/spec/acceptance/parseyaml_spec.rb +0 -35
- data/spec/fixtures/modules/stdlib/spec/acceptance/pick_default_spec.rb +0 -54
- data/spec/fixtures/modules/stdlib/spec/acceptance/pick_spec.rb +0 -44
- data/spec/fixtures/modules/stdlib/spec/acceptance/prefix_spec.rb +0 -42
- data/spec/fixtures/modules/stdlib/spec/acceptance/pw_hash_spec.rb +0 -34
- data/spec/fixtures/modules/stdlib/spec/acceptance/range_spec.rb +0 -36
- data/spec/fixtures/modules/stdlib/spec/acceptance/reject_spec.rb +0 -42
- data/spec/fixtures/modules/stdlib/spec/acceptance/reverse_spec.rb +0 -23
- data/spec/fixtures/modules/stdlib/spec/acceptance/rstrip_spec.rb +0 -34
- data/spec/fixtures/modules/stdlib/spec/acceptance/shuffle_spec.rb +0 -34
- data/spec/fixtures/modules/stdlib/spec/acceptance/size_spec.rb +0 -55
- data/spec/fixtures/modules/stdlib/spec/acceptance/sort_spec.rb +0 -34
- data/spec/fixtures/modules/stdlib/spec/acceptance/squeeze_spec.rb +0 -47
- data/spec/fixtures/modules/stdlib/spec/acceptance/str2bool_spec.rb +0 -31
- data/spec/fixtures/modules/stdlib/spec/acceptance/str2saltedsha512_spec.rb +0 -22
- data/spec/fixtures/modules/stdlib/spec/acceptance/strftime_spec.rb +0 -22
- data/spec/fixtures/modules/stdlib/spec/acceptance/strip_spec.rb +0 -34
- data/spec/fixtures/modules/stdlib/spec/acceptance/suffix_spec.rb +0 -42
- data/spec/fixtures/modules/stdlib/spec/acceptance/swapcase_spec.rb +0 -22
- data/spec/fixtures/modules/stdlib/spec/acceptance/time_spec.rb +0 -36
- data/spec/fixtures/modules/stdlib/spec/acceptance/to_bytes_spec.rb +0 -27
- data/spec/fixtures/modules/stdlib/spec/acceptance/type_spec.rb +0 -37
- data/spec/fixtures/modules/stdlib/spec/acceptance/union_spec.rb +0 -24
- data/spec/fixtures/modules/stdlib/spec/acceptance/unique_spec.rb +0 -33
- data/spec/fixtures/modules/stdlib/spec/acceptance/unsupported_spec.rb +0 -11
- data/spec/fixtures/modules/stdlib/spec/acceptance/upcase_spec.rb +0 -33
- data/spec/fixtures/modules/stdlib/spec/acceptance/uriescape_spec.rb +0 -23
- data/spec/fixtures/modules/stdlib/spec/acceptance/validate_absolute_path_spec.rb +0 -31
- data/spec/fixtures/modules/stdlib/spec/acceptance/validate_array_spec.rb +0 -37
- data/spec/fixtures/modules/stdlib/spec/acceptance/validate_augeas_spec.rb +0 -63
- data/spec/fixtures/modules/stdlib/spec/acceptance/validate_bool_spec.rb +0 -37
- data/spec/fixtures/modules/stdlib/spec/acceptance/validate_cmd_spec.rb +0 -52
- data/spec/fixtures/modules/stdlib/spec/acceptance/validate_hash_spec.rb +0 -37
- data/spec/fixtures/modules/stdlib/spec/acceptance/validate_ipv4_address_spec.rb +0 -31
- data/spec/fixtures/modules/stdlib/spec/acceptance/validate_ipv6_address_spec.rb +0 -31
- data/spec/fixtures/modules/stdlib/spec/acceptance/validate_re_spec.rb +0 -47
- data/spec/fixtures/modules/stdlib/spec/acceptance/validate_slength_spec.rb +0 -72
- data/spec/fixtures/modules/stdlib/spec/acceptance/validate_string_spec.rb +0 -36
- data/spec/fixtures/modules/stdlib/spec/acceptance/values_at_spec.rb +0 -73
- data/spec/fixtures/modules/stdlib/spec/acceptance/values_spec.rb +0 -35
- data/spec/fixtures/modules/stdlib/spec/acceptance/zip_spec.rb +0 -86
- data/spec/fixtures/modules/stdlib/spec/classes/anchor_spec.rb +0 -30
- data/spec/fixtures/modules/stdlib/spec/functions/abs_spec.rb +0 -25
- data/spec/fixtures/modules/stdlib/spec/functions/any2array_spec.rb +0 -55
- data/spec/fixtures/modules/stdlib/spec/functions/assert_private_spec.rb +0 -55
- data/spec/fixtures/modules/stdlib/spec/functions/base64_spec.rb +0 -34
- data/spec/fixtures/modules/stdlib/spec/functions/bool2num_spec.rb +0 -38
- data/spec/fixtures/modules/stdlib/spec/functions/capitalize_spec.rb +0 -28
- data/spec/fixtures/modules/stdlib/spec/functions/ceiling_spec.rb +0 -39
- data/spec/fixtures/modules/stdlib/spec/functions/chomp_spec.rb +0 -28
- data/spec/fixtures/modules/stdlib/spec/functions/chop_spec.rb +0 -28
- data/spec/fixtures/modules/stdlib/spec/functions/concat_spec.rb +0 -50
- data/spec/fixtures/modules/stdlib/spec/functions/count_spec.rb +0 -31
- data/spec/fixtures/modules/stdlib/spec/functions/deep_merge_spec.rb +0 -105
- data/spec/fixtures/modules/stdlib/spec/functions/defined_with_params_spec.rb +0 -37
- data/spec/fixtures/modules/stdlib/spec/functions/delete_at_spec.rb +0 -25
- data/spec/fixtures/modules/stdlib/spec/functions/delete_spec.rb +0 -61
- data/spec/fixtures/modules/stdlib/spec/functions/delete_undef_values_spec.rb +0 -41
- data/spec/fixtures/modules/stdlib/spec/functions/delete_values_spec.rb +0 -36
- data/spec/fixtures/modules/stdlib/spec/functions/difference_spec.rb +0 -19
- data/spec/fixtures/modules/stdlib/spec/functions/dirname_spec.rb +0 -38
- data/spec/fixtures/modules/stdlib/spec/functions/downcase_spec.rb +0 -33
- data/spec/fixtures/modules/stdlib/spec/functions/empty_spec.rb +0 -32
- data/spec/fixtures/modules/stdlib/spec/functions/ensure_packages_spec.rb +0 -81
- data/spec/fixtures/modules/stdlib/spec/functions/ensure_resource_spec.rb +0 -113
- data/spec/fixtures/modules/stdlib/spec/functions/flatten_spec.rb +0 -27
- data/spec/fixtures/modules/stdlib/spec/functions/floor_spec.rb +0 -39
- data/spec/fixtures/modules/stdlib/spec/functions/fqdn_rand_string_spec.rb +0 -91
- data/spec/fixtures/modules/stdlib/spec/functions/fqdn_rotate_spec.rb +0 -60
- data/spec/fixtures/modules/stdlib/spec/functions/get_module_path_spec.rb +0 -46
- data/spec/fixtures/modules/stdlib/spec/functions/getparam_spec.rb +0 -76
- data/spec/fixtures/modules/stdlib/spec/functions/getvar_spec.rb +0 -37
- data/spec/fixtures/modules/stdlib/spec/functions/grep_spec.rb +0 -19
- data/spec/fixtures/modules/stdlib/spec/functions/has_interface_with_spec.rb +0 -64
- data/spec/fixtures/modules/stdlib/spec/functions/has_ip_address_spec.rb +0 -39
- data/spec/fixtures/modules/stdlib/spec/functions/has_ip_network_spec.rb +0 -36
- data/spec/fixtures/modules/stdlib/spec/functions/has_key_spec.rb +0 -42
- data/spec/fixtures/modules/stdlib/spec/functions/hash_spec.rb +0 -19
- data/spec/fixtures/modules/stdlib/spec/functions/intersection_spec.rb +0 -19
- data/spec/fixtures/modules/stdlib/spec/functions/is_array_spec.rb +0 -29
- data/spec/fixtures/modules/stdlib/spec/functions/is_bool_spec.rb +0 -44
- data/spec/fixtures/modules/stdlib/spec/functions/is_domain_name_spec.rb +0 -81
- data/spec/fixtures/modules/stdlib/spec/functions/is_float_spec.rb +0 -33
- data/spec/fixtures/modules/stdlib/spec/functions/is_function_available.rb +0 -31
- data/spec/fixtures/modules/stdlib/spec/functions/is_hash_spec.rb +0 -29
- data/spec/fixtures/modules/stdlib/spec/functions/is_integer_spec.rb +0 -69
- data/spec/fixtures/modules/stdlib/spec/functions/is_ip_address_spec.rb +0 -39
- data/spec/fixtures/modules/stdlib/spec/functions/is_mac_address_spec.rb +0 -29
- data/spec/fixtures/modules/stdlib/spec/functions/is_numeric_spec.rb +0 -119
- data/spec/fixtures/modules/stdlib/spec/functions/is_string_spec.rb +0 -34
- data/spec/fixtures/modules/stdlib/spec/functions/join_keys_to_values_spec.rb +0 -40
- data/spec/fixtures/modules/stdlib/spec/functions/join_spec.rb +0 -19
- data/spec/fixtures/modules/stdlib/spec/functions/keys_spec.rb +0 -21
- data/spec/fixtures/modules/stdlib/spec/functions/loadyaml_spec.rb +0 -25
- data/spec/fixtures/modules/stdlib/spec/functions/lstrip_spec.rb +0 -28
- data/spec/fixtures/modules/stdlib/spec/functions/max_spec.rb +0 -27
- data/spec/fixtures/modules/stdlib/spec/functions/member_spec.rb +0 -34
- data/spec/fixtures/modules/stdlib/spec/functions/merge_spec.rb +0 -52
- data/spec/fixtures/modules/stdlib/spec/functions/min_spec.rb +0 -27
- data/spec/fixtures/modules/stdlib/spec/functions/num2bool_spec.rb +0 -67
- data/spec/fixtures/modules/stdlib/spec/functions/parsejson_spec.rb +0 -22
- data/spec/fixtures/modules/stdlib/spec/functions/parseyaml_spec.rb +0 -24
- data/spec/fixtures/modules/stdlib/spec/functions/pick_default_spec.rb +0 -58
- data/spec/fixtures/modules/stdlib/spec/functions/pick_spec.rb +0 -34
- data/spec/fixtures/modules/stdlib/spec/functions/prefix_spec.rb +0 -33
- data/spec/fixtures/modules/stdlib/spec/functions/private_spec.rb +0 -60
- data/spec/fixtures/modules/stdlib/spec/functions/pw_hash_spec.rb +0 -96
- data/spec/fixtures/modules/stdlib/spec/functions/range_spec.rb +0 -86
- data/spec/fixtures/modules/stdlib/spec/functions/reject_spec.rb +0 -20
- data/spec/fixtures/modules/stdlib/spec/functions/reverse_spec.rb +0 -28
- data/spec/fixtures/modules/stdlib/spec/functions/rstrip_spec.rb +0 -33
- data/spec/fixtures/modules/stdlib/spec/functions/shuffle_spec.rb +0 -33
- data/spec/fixtures/modules/stdlib/spec/functions/size_spec.rb +0 -24
- data/spec/fixtures/modules/stdlib/spec/functions/sort_spec.rb +0 -24
- data/spec/fixtures/modules/stdlib/spec/functions/squeeze_spec.rb +0 -24
- data/spec/fixtures/modules/stdlib/spec/functions/str2bool_spec.rb +0 -31
- data/spec/fixtures/modules/stdlib/spec/functions/str2saltedsha512_spec.rb +0 -45
- data/spec/fixtures/modules/stdlib/spec/functions/strftime_spec.rb +0 -29
- data/spec/fixtures/modules/stdlib/spec/functions/strip_spec.rb +0 -27
- data/spec/fixtures/modules/stdlib/spec/functions/suffix_spec.rb +0 -27
- data/spec/fixtures/modules/stdlib/spec/functions/swapcase_spec.rb +0 -28
- data/spec/fixtures/modules/stdlib/spec/functions/time_spec.rb +0 -29
- data/spec/fixtures/modules/stdlib/spec/functions/to_bytes_spec.rb +0 -83
- data/spec/fixtures/modules/stdlib/spec/functions/type3x_spec.rb +0 -43
- data/spec/fixtures/modules/stdlib/spec/functions/type_spec.rb +0 -44
- data/spec/fixtures/modules/stdlib/spec/functions/union_spec.rb +0 -19
- data/spec/fixtures/modules/stdlib/spec/functions/unique_spec.rb +0 -33
- data/spec/fixtures/modules/stdlib/spec/functions/upcase_spec.rb +0 -58
- data/spec/fixtures/modules/stdlib/spec/functions/uriescape_spec.rb +0 -40
- data/spec/fixtures/modules/stdlib/spec/functions/validate_absolute_path_spec.rb +0 -104
- data/spec/fixtures/modules/stdlib/spec/functions/validate_array_spec.rb +0 -38
- data/spec/fixtures/modules/stdlib/spec/functions/validate_augeas_spec.rb +0 -103
- data/spec/fixtures/modules/stdlib/spec/functions/validate_bool_spec.rb +0 -51
- data/spec/fixtures/modules/stdlib/spec/functions/validate_cmd_spec.rb +0 -85
- data/spec/fixtures/modules/stdlib/spec/functions/validate_hash_spec.rb +0 -43
- data/spec/fixtures/modules/stdlib/spec/functions/validate_integer_spec.rb +0 -219
- data/spec/fixtures/modules/stdlib/spec/functions/validate_ipv4_address_spec.rb +0 -64
- data/spec/fixtures/modules/stdlib/spec/functions/validate_ipv6_address_spec.rb +0 -67
- data/spec/fixtures/modules/stdlib/spec/functions/validate_numeric_spec.rb +0 -217
- data/spec/fixtures/modules/stdlib/spec/functions/validate_re_spec.rb +0 -77
- data/spec/fixtures/modules/stdlib/spec/functions/validate_slength_spec.rb +0 -67
- data/spec/fixtures/modules/stdlib/spec/functions/validate_string_spec.rb +0 -60
- data/spec/fixtures/modules/stdlib/spec/functions/values_at_spec.rb +0 -38
- data/spec/fixtures/modules/stdlib/spec/functions/values_spec.rb +0 -31
- data/spec/fixtures/modules/stdlib/spec/functions/zip_spec.rb +0 -31
- data/spec/fixtures/modules/stdlib/spec/lib/puppet_spec/compiler.rb +0 -47
- data/spec/fixtures/modules/stdlib/spec/lib/puppet_spec/database.rb +0 -30
- data/spec/fixtures/modules/stdlib/spec/lib/puppet_spec/files.rb +0 -61
- data/spec/fixtures/modules/stdlib/spec/lib/puppet_spec/fixtures.rb +0 -29
- data/spec/fixtures/modules/stdlib/spec/lib/puppet_spec/matchers.rb +0 -121
- data/spec/fixtures/modules/stdlib/spec/lib/puppet_spec/modules.rb +0 -27
- data/spec/fixtures/modules/stdlib/spec/lib/puppet_spec/pops.rb +0 -17
- data/spec/fixtures/modules/stdlib/spec/lib/puppet_spec/scope.rb +0 -15
- data/spec/fixtures/modules/stdlib/spec/lib/puppet_spec/settings.rb +0 -16
- data/spec/fixtures/modules/stdlib/spec/lib/puppet_spec/verbose.rb +0 -10
- data/spec/fixtures/modules/stdlib/spec/monkey_patches/alias_should_to_must.rb +0 -9
- data/spec/fixtures/modules/stdlib/spec/monkey_patches/publicize_methods.rb +0 -11
- data/spec/fixtures/modules/stdlib/spec/spec.opts +0 -6
- data/spec/fixtures/modules/stdlib/spec/spec_helper.rb +0 -34
- data/spec/fixtures/modules/stdlib/spec/spec_helper_acceptance.rb +0 -50
- data/spec/fixtures/modules/stdlib/spec/unit/facter/facter_dot_d_spec.rb +0 -32
- data/spec/fixtures/modules/stdlib/spec/unit/facter/pe_version_spec.rb +0 -76
- data/spec/fixtures/modules/stdlib/spec/unit/facter/root_home_spec.rb +0 -52
- data/spec/fixtures/modules/stdlib/spec/unit/facter/util/puppet_settings_spec.rb +0 -36
- data/spec/fixtures/modules/stdlib/spec/unit/puppet/functions/type_of_spec.rb +0 -33
- data/spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/basename_spec.rb +0 -46
- data/spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/bool2str_spec.rb +0 -46
- data/spec/fixtures/modules/stdlib/spec/unit/puppet/parser/functions/camelcase_spec.rb +0 -24
- data/spec/fixtures/modules/stdlib/spec/unit/puppet/provider/file_line/ruby_spec.rb +0 -277
- data/spec/fixtures/modules/stdlib/spec/unit/puppet/type/anchor_spec.rb +0 -11
- data/spec/fixtures/modules/stdlib/spec/unit/puppet/type/file_line_spec.rb +0 -70
- data/spec/fixtures/modules/stdlib/tests/file_line.pp +0 -9
- data/spec/fixtures/modules/stdlib/tests/has_interface_with.pp +0 -10
- data/spec/fixtures/modules/stdlib/tests/has_ip_address.pp +0 -3
- data/spec/fixtures/modules/stdlib/tests/has_ip_network.pp +0 -4
- data/spec/fixtures/modules/stdlib/tests/init.pp +0 -1
- data/spec/fixtures/modules/tomcat/.gitignore +0 -8
- data/spec/fixtures/modules/tomcat/.puppet-lint.rc +0 -8
- data/spec/fixtures/modules/tomcat/.travis.yml +0 -14
- data/spec/fixtures/modules/tomcat/CHANGELOG.md +0 -94
- data/spec/fixtures/modules/tomcat/CONTRIBUTING.md +0 -220
- data/spec/fixtures/modules/tomcat/LICENSE +0 -15
- data/spec/fixtures/modules/tomcat/README.markdown +0 -75
- data/spec/fixtures/modules/tomcat/README.md +0 -812
- data/spec/fixtures/modules/tomcat/Vagrantfile +0 -95
- data/spec/fixtures/modules/tomcat/checksums.json +0 -67
- data/spec/fixtures/modules/tomcat/examples/default_install_from_package.pp +0 -13
- data/spec/fixtures/modules/tomcat/examples/default_install_from_source.pp +0 -9
- data/spec/fixtures/modules/tomcat/examples/instance_with_context.pp +0 -20
- data/spec/fixtures/modules/tomcat/examples/instance_with_listener.pp +0 -18
- data/spec/fixtures/modules/tomcat/examples/instance_with_realm.pp +0 -20
- data/spec/fixtures/modules/tomcat/examples/instance_with_role_and_user.pp +0 -23
- data/spec/fixtures/modules/tomcat/examples/jsvc_install_from_source.pp +0 -37
- data/spec/fixtures/modules/tomcat/examples/multiple_instances.pp +0 -38
- data/spec/fixtures/modules/tomcat/files/.gitkeep +0 -0
- data/spec/fixtures/modules/tomcat/manifests/config/server.pp +0 -78
- data/spec/fixtures/modules/tomcat/manifests/config/server/connector.pp +0 -95
- data/spec/fixtures/modules/tomcat/manifests/config/server/context.pp +0 -102
- data/spec/fixtures/modules/tomcat/manifests/config/server/engine.pp +0 -109
- data/spec/fixtures/modules/tomcat/manifests/config/server/host.pp +0 -79
- data/spec/fixtures/modules/tomcat/manifests/config/server/listener.pp +0 -98
- data/spec/fixtures/modules/tomcat/manifests/config/server/realm.pp +0 -104
- data/spec/fixtures/modules/tomcat/manifests/config/server/service.pp +0 -54
- data/spec/fixtures/modules/tomcat/manifests/config/server/tomcat_users.pp +0 -97
- data/spec/fixtures/modules/tomcat/manifests/config/server/valve.pp +0 -77
- data/spec/fixtures/modules/tomcat/manifests/init.pp +0 -71
- data/spec/fixtures/modules/tomcat/manifests/instance.pp +0 -88
- data/spec/fixtures/modules/tomcat/manifests/instance/package.pp +0 -26
- data/spec/fixtures/modules/tomcat/manifests/instance/source.pp +0 -46
- data/spec/fixtures/modules/tomcat/manifests/params.pp +0 -13
- data/spec/fixtures/modules/tomcat/manifests/service.pp +0 -160
- data/spec/fixtures/modules/tomcat/manifests/setenv/entry.pp +0 -52
- data/spec/fixtures/modules/tomcat/manifests/war.pp +0 -80
- data/spec/fixtures/modules/tomcat/metadata.json +0 -74
- data/spec/fixtures/modules/tomcat/templates/.gitkeep +0 -0
- data/spec/fixtures/modules/tomcat/tests/.gitkeep +0 -0
- data/spec/fixtures/providers/bmc/ipmitool.rb +0 -188
- data/spec/fixtures/providers/bmcuser/ipmitool.rb +0 -140
- data/spec/fixtures/types/bmc.rb +0 -102
- data/spec/fixtures/types/bmcuser.rb +0 -46
- data/spec/fixtures/types/db_opatch.rb +0 -93
@@ -1,95 +0,0 @@
|
|
1
|
-
def vm(opt)
|
2
|
-
module_name = opt.fetch(:module).to_s || raise(ArgumentError, 'Must provide puppet module name')
|
3
|
-
hostname = opt.fetch(:hostname, module_name).to_s
|
4
|
-
memory = opt.fetch(:memory, 512)
|
5
|
-
cpu = opt.fetch(:cpu, 1)
|
6
|
-
box = opt.fetch(:box).to_s || raise(ArgumentError, 'Must provide box type.')
|
7
|
-
url = opt.fetch(:url, '').to_s
|
8
|
-
os_type = opt[:os_type] || opt[:type] || :linux
|
9
|
-
gui = opt.fetch(:gui, false)
|
10
|
-
ports = Array(opt.fetch(:port, []))
|
11
|
-
iso = opt.fetch(:iso, nil)
|
12
|
-
proj_root = File.expand_path(File.join(File.dirname(__FILE__)))
|
13
|
-
fixture_modules = File.join(proj_root, 'spec', 'fixtures', 'modules')
|
14
|
-
|
15
|
-
Vagrant.configure('2') do |conf|
|
16
|
-
|
17
|
-
# forward all the ports
|
18
|
-
ports.each do |p|
|
19
|
-
conf.vm.network(:forwarded_port, guest: p, host: p, auto_correct: true)
|
20
|
-
end
|
21
|
-
|
22
|
-
if os_type == :windows
|
23
|
-
conf.ssh.username = 'vagrant'
|
24
|
-
conf.winrm.username = 'vagrant'
|
25
|
-
conf.winrm.password = 'vagrant'
|
26
|
-
end
|
27
|
-
|
28
|
-
conf.vm.define hostname.to_sym do |mod|
|
29
|
-
mod.vm.box = box
|
30
|
-
mod.vm.box_url = url
|
31
|
-
|
32
|
-
if os_type == :windows
|
33
|
-
mod.vm.guest = :windows
|
34
|
-
mod.vm.communicator = 'winrm'
|
35
|
-
mod.vm.synced_folder './' , "/ProgramData/PuppetLabs/puppet/etc/modules/#{module_name}"
|
36
|
-
mod.vm.synced_folder 'spec/fixtures/modules' , '/temp/modules'
|
37
|
-
else
|
38
|
-
mod.vm.synced_folder './', "/etc/puppet/modules/#{module_name}"
|
39
|
-
mod.vm.synced_folder 'spec/fixtures/modules', '/tmp/puppet/modules'
|
40
|
-
end
|
41
|
-
|
42
|
-
mod.vm.hostname = hostname
|
43
|
-
|
44
|
-
mod.vm.provider :vmware_fusion do |f|
|
45
|
-
f.gui = gui
|
46
|
-
f.vmx['displayName'] = hostname
|
47
|
-
f.vmx['memsize'] = memory
|
48
|
-
f.vmx['numvcpus'] = cpu
|
49
|
-
if iso
|
50
|
-
f.vmx['ide1:0.devicetype'] = "cdrom-image"
|
51
|
-
f.vmx['ide1:0.filename'] = iso
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
mod.vm.provider :vmware_workstation do |f|
|
56
|
-
f.gui = gui
|
57
|
-
f.vmx['displayName'] = hostname
|
58
|
-
f.vmx['memsize'] = memory
|
59
|
-
f.vmx['numvcpus'] = cpu
|
60
|
-
if iso
|
61
|
-
f.vmx['ide1:0.devicetype'] = "cdrom-image"
|
62
|
-
f.vmx['ide1:0.filename'] = iso
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
mod.vm.provider :virtualbox do |v|
|
67
|
-
v.gui = gui
|
68
|
-
v.name = hostname
|
69
|
-
v.memory = memory
|
70
|
-
v.cpus = cpu
|
71
|
-
end
|
72
|
-
|
73
|
-
if os_type == :windows
|
74
|
-
manifest = ENV['VAGRANT_MANIFEST'] || 'init.pp'
|
75
|
-
mod.vm.provision :shell, :inline => "@powershell -NoProfile -ExecutionPolicy Bypass -Command \"iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))\" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
|
76
|
-
mod.vm.provision :shell, :inline => "choco install puppet"
|
77
|
-
mod.vm.provision :shell, :inline => "puppet apply --modulepath 'C:/ProgramData/PuppetLabs/puppet/etc/modules;C:/temp/modules' --verbose C:/ProgramData/PuppetLabs/puppet/etc/modules/#{module_name}/tests/#{manifest}"
|
78
|
-
else
|
79
|
-
mod.vm.provision :puppet do |p|
|
80
|
-
p.manifests_path = 'tests'
|
81
|
-
p.hiera_config_path = File.join(fixture_modules, 'hieradata', 'hiera.yaml')
|
82
|
-
p.manifest_file = ENV['VAGRANT_MANIFEST'] || 'init.pp'
|
83
|
-
#p.module_path = fixture_modules
|
84
|
-
# because of how symlinks are handled via the spec_helper we are forced to mount the modules is different locations
|
85
|
-
# otherwise we could just use the above option
|
86
|
-
p.options = '--modulepath="/etc/puppet/modules:/tmp/puppet/modules"'
|
87
|
-
end
|
88
|
-
end
|
89
|
-
end
|
90
|
-
end
|
91
|
-
end
|
92
|
-
module_name = File.basename(File.expand_path(File.join(File.dirname(__FILE__))))
|
93
|
-
vm :hostname => 'win2012r2', :module => module_name, :box => 'opentable/win-2012r2-standard-amd64-nocm', :url => 'opentable/win-2012r2-standard-amd64-nocm', :cpu => 1, :memory => 4096, :gui => true
|
94
|
-
vm :hostname => 'win2008r2', :module => module_name, :box => 'opentable/win-2008r2-standard-amd64-nocm', :url => 'opentable/win-2008r2-standard-amd64-nocm', :cpu => 1, :memory => 4096, :gui => true
|
95
|
-
vm :hostname => 'centos6', :module => module_name, :box => 'puppetlabs/centos-6.6-64-puppet', :url => 'puppetlabs/centos-6.6-64-puppet', :cpu => 1, :memory => 2048, :gui => false
|
@@ -1,67 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"CHANGELOG.md": "bf4a1605fcb5ec238d619b05e3273922",
|
3
|
-
"CONTRIBUTING.md": "e2b8e8e433fc76b3798b7fe435f49375",
|
4
|
-
"Gemfile": "e62c96457cdaab2a09f1a37479ea6351",
|
5
|
-
"LICENSE": "b3f8a01d8699078d82e8c3c992307517",
|
6
|
-
"README.md": "44e44fdc119ba2baf67614c62fc242da",
|
7
|
-
"Rakefile": "d953eb985f82600dc3b9ac6e1f2cfe64",
|
8
|
-
"examples/default_install_from_package.pp": "16469b859d7577ad3f6a8013ab44e1d9",
|
9
|
-
"examples/default_install_from_source.pp": "7455aea873b7584f65aa9aa2e8501a4a",
|
10
|
-
"examples/instance_with_context.pp": "e79bfe13f9d88cf68ccc9981d7baaefc",
|
11
|
-
"examples/instance_with_listener.pp": "d77ec83180782285ea6cc554902da546",
|
12
|
-
"examples/instance_with_realm.pp": "09811a159cbc9a17ca2b96109461f931",
|
13
|
-
"examples/instance_with_role_and_user.pp": "c3a288c6148c4b6ad5cfbeffdac71fe2",
|
14
|
-
"examples/jsvc_install_from_source.pp": "32bfe6d0720a3d63410b349af9781656",
|
15
|
-
"examples/multiple_instances.pp": "17a0c47d35bddae61aee3f53972eaca1",
|
16
|
-
"manifests/config/server/connector.pp": "1d577978ef5025723224a540251f840d",
|
17
|
-
"manifests/config/server/context.pp": "2d1bcf5b5a26ac86841fa4f0a1069975",
|
18
|
-
"manifests/config/server/engine.pp": "44520d1bbcb5ab90e11ed4a4534a9cf7",
|
19
|
-
"manifests/config/server/host.pp": "e7795264bb521d6756ff531aa9d7e4f4",
|
20
|
-
"manifests/config/server/listener.pp": "4238e944feb89051690d2195d95197e3",
|
21
|
-
"manifests/config/server/realm.pp": "24553fd98ec3ba14b507c1712c2d1605",
|
22
|
-
"manifests/config/server/service.pp": "6013c76b545f59c77abe699ac317fbb5",
|
23
|
-
"manifests/config/server/tomcat_users.pp": "043572eac7a2ec9267f9071fa1963f9d",
|
24
|
-
"manifests/config/server/valve.pp": "fa79dd35cf3fb2ab15ad7bca6d8ee3ab",
|
25
|
-
"manifests/config/server.pp": "d108e29442188da2a56ec43c15aebf59",
|
26
|
-
"manifests/init.pp": "f26b7a0d2d93da1a1e4822b584fbfec0",
|
27
|
-
"manifests/instance/package.pp": "a46ba667f793701fe494288084e908e5",
|
28
|
-
"manifests/instance/source.pp": "215195fa43bb3d3776efb21226a8d80f",
|
29
|
-
"manifests/instance.pp": "da55e2f17bbab408e7514b6b57dcca7a",
|
30
|
-
"manifests/params.pp": "fc1975a1d4c5e6e6936187f06c0ab88d",
|
31
|
-
"manifests/service.pp": "a19846b63bcf24d3dc3cf8c8dbbde5bc",
|
32
|
-
"manifests/setenv/entry.pp": "ca58c7bb52bacddfa6695a9fbd8db103",
|
33
|
-
"manifests/war.pp": "fc7a8ce8299e4c932f5ef4f21f73651e",
|
34
|
-
"metadata.json": "b16029c815849138c7cd76af550c31d9",
|
35
|
-
"spec/acceptance/acceptance_1_spec.rb": "e88264de3feb3da964a5095f8d30f717",
|
36
|
-
"spec/acceptance/acceptance_2_spec.rb": "6c31f5343660c0848bec6fa44624787b",
|
37
|
-
"spec/acceptance/acceptance_3_spec.rb": "d107bbc36ddefd3933702e8a8f650992",
|
38
|
-
"spec/acceptance/nodesets/centos-510-x64.yml": "9f397972af8c7de64f9c9d83f7d14596",
|
39
|
-
"spec/acceptance/nodesets/centos-59-x64.yml": "57eb3e471b9042a8ea40978c467f8151",
|
40
|
-
"spec/acceptance/nodesets/centos-64-x64-pe.yml": "ec075d95760df3d4702abea1ce0a829b",
|
41
|
-
"spec/acceptance/nodesets/centos-65-x64.yml": "3e5c36e6aa5a690229e720f4048bb8af",
|
42
|
-
"spec/acceptance/nodesets/default.yml": "97a1023ea64299d7111c12bbf9adfe44",
|
43
|
-
"spec/acceptance/nodesets/ubuntu-server-10044-x64.yml": "75e86400b7889888dc0781c0ae1a1297",
|
44
|
-
"spec/acceptance/nodesets/ubuntu-server-12042-x64.yml": "d30d73e34cd50b043c7d14e305955269",
|
45
|
-
"spec/acceptance/nodesets/ubuntu-server-1404-x64.yml": "5f0aed10098ac5b78e4217bb27c7aaf0",
|
46
|
-
"spec/classes/init_spec.rb": "d4b65c6bf7d467c62e950592091eaff3",
|
47
|
-
"spec/classes/tomcat_spec.rb": "6ffe5b79d6d0377fb2f13853c106942b",
|
48
|
-
"spec/defines/config/server/connector_spec.rb": "56a4576fa20ac0863ff370129b4583ca",
|
49
|
-
"spec/defines/config/server/context_spec.rb": "e81e21fb7088279ae0295a38bef0ae5d",
|
50
|
-
"spec/defines/config/server/engine_spec.rb": "a40216312a305438f9f3440c792564e1",
|
51
|
-
"spec/defines/config/server/host_spec.rb": "2d4711416c36b66193082e5702d6dd7e",
|
52
|
-
"spec/defines/config/server/listener_spec.rb": "832ae1fb2f888feec976051009df7866",
|
53
|
-
"spec/defines/config/server/realm_spec.rb": "df4340692ea92937cc6797cfcd12a437",
|
54
|
-
"spec/defines/config/server/service_spec.rb": "cb5c280f6ca0e106e70ee860fe24c3ef",
|
55
|
-
"spec/defines/config/server/tomcat_users_spec.rb": "4d856e164c6ee971a7b84c3a61ce229d",
|
56
|
-
"spec/defines/config/server/valve_spec.rb": "fbb351c8b95a9e3ae7dc9368d2065335",
|
57
|
-
"spec/defines/config/server_spec.rb": "35e3720521a9dd086f5482316f86feb1",
|
58
|
-
"spec/defines/instance/package_spec.rb": "9df7bd7a76199b576200fee936066c2f",
|
59
|
-
"spec/defines/instance/source_spec.rb": "532152f5b3da7615d3c9909b83c54873",
|
60
|
-
"spec/defines/instance_spec.rb": "73b56b408368219a4a5ce9a95c8a8517",
|
61
|
-
"spec/defines/service_spec.rb": "2826a81135f340df46083c5cc0cd8fc3",
|
62
|
-
"spec/defines/setenv/entry_spec.rb": "52eb7a1e9a08e10bb1aeef60b34b9e35",
|
63
|
-
"spec/defines/war_spec.rb": "f0ca6d7d6a42c39fee9fd5545651a858",
|
64
|
-
"spec/spec.opts": "a600ded995d948e393fbe2320ba8e51c",
|
65
|
-
"spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",
|
66
|
-
"spec/spec_helper_acceptance.rb": "c8abe23da31d8686392f8d8a16f020f9"
|
67
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# This code fragment will install the tomcat package from EPEL and start the service
|
2
|
-
#
|
3
|
-
class { 'tomcat': }
|
4
|
-
class { 'epel': }->
|
5
|
-
tomcat::instance { 'default':
|
6
|
-
install_from_source => false,
|
7
|
-
package_name => 'tomcat',
|
8
|
-
}->
|
9
|
-
tomcat::service { 'default':
|
10
|
-
use_jsvc => false,
|
11
|
-
use_init => true,
|
12
|
-
service_name => 'tomcat',
|
13
|
-
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
# This code fragment downloads tomcat 8.0 then starts the service
|
2
|
-
#
|
3
|
-
class { 'tomcat': }
|
4
|
-
class { 'java': }
|
5
|
-
|
6
|
-
tomcat::instance { 'test':
|
7
|
-
source_url => 'http://mirror.nexcess.net/apache/tomcat/tomcat-8/v8.0.8/bin/apache-tomcat-8.0.8.tar.gz'
|
8
|
-
}->
|
9
|
-
tomcat::service { 'default': }
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# This code fragment downloads tomcat 7.0.53, creates an instance and adds a context to localhost
|
2
|
-
#
|
3
|
-
class { 'tomcat': }
|
4
|
-
class { 'java': }
|
5
|
-
|
6
|
-
tomcat::instance { 'mycat':
|
7
|
-
catalina_base => '/opt/apache-tomcat/mycat',
|
8
|
-
source_url => 'http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.53/bin/apache-tomcat-7.0.53.tar.gz',
|
9
|
-
}->
|
10
|
-
tomcat::config::server::context { 'mycat-test':
|
11
|
-
catalina_base => '/opt/apache-tomcat/mycat',
|
12
|
-
context_ensure => present,
|
13
|
-
doc_base => 'test.war',
|
14
|
-
parent_service => 'Catalina',
|
15
|
-
parent_engine => 'Catalina',
|
16
|
-
parent_host => 'localhost',
|
17
|
-
additional_attributes => {
|
18
|
-
'path' => '/test',
|
19
|
-
},
|
20
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# This code fragment downloads tomcat 7.0.53, creates an instance and adds a listener
|
2
|
-
#
|
3
|
-
class { 'tomcat': }
|
4
|
-
class { 'java': }
|
5
|
-
|
6
|
-
tomcat::instance { 'mycat':
|
7
|
-
catalina_base => '/opt/apache-tomcat/mycat',
|
8
|
-
source_url => 'http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.53/bin/apache-tomcat-7.0.53.tar.gz',
|
9
|
-
}->
|
10
|
-
tomcat::config::server::listener { 'mycat-jmx':
|
11
|
-
catalina_base => '/opt/apache-tomcat/mycat',
|
12
|
-
listener_ensure => present,
|
13
|
-
class_name => 'org.apache.catalina.mbeans.JmxRemoteLifecycleListener',
|
14
|
-
additional_attributes => {
|
15
|
-
'rmiRegistryPortPlatform' => '10001',
|
16
|
-
'rmiServerPortPlatform' => '10002',
|
17
|
-
},
|
18
|
-
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# This code fragment downloads Tomcat 8.0.15, configures an instance, and adds a JNDIRealm nested under a LockOutRealm.
|
2
|
-
class { 'tomcat': }
|
3
|
-
class { 'java': }
|
4
|
-
|
5
|
-
tomcat::instance { 'tomcat8':
|
6
|
-
source_url => 'http://mirror.reverse.net/pub/apache/tomcat/tomcat-8/v8.0.15/bin/apache-tomcat-8.0.15.tar.gz',
|
7
|
-
purge_realms => true,
|
8
|
-
} ->
|
9
|
-
|
10
|
-
tomcat::config::server::realm { 'org.apache.catalina.realm.LockOutRealm':
|
11
|
-
realm_ensure => 'present',
|
12
|
-
} ->
|
13
|
-
|
14
|
-
tomcat::config::server::realm { 'org.apache.catalina.realm.JNDIRealm':
|
15
|
-
realm_ensure => 'present',
|
16
|
-
parent_realm => 'org.apache.catalina.realm.LockOutRealm',
|
17
|
-
additional_attributes => {
|
18
|
-
'connectionURL' => 'ldap://localhost'
|
19
|
-
},
|
20
|
-
}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# This code fragment downloads tomcat 7.0.53, creates an instance and adds a role and user
|
2
|
-
#
|
3
|
-
class { 'tomcat': }
|
4
|
-
class { 'java': }
|
5
|
-
|
6
|
-
tomcat::instance { 'mycat':
|
7
|
-
catalina_base => '/opt/apache-tomcat/mycat',
|
8
|
-
source_url => 'http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.53/bin/apache-tomcat-7.0.53.tar.gz',
|
9
|
-
}->
|
10
|
-
tomcat::config::server::tomcat_users {
|
11
|
-
'mycat-role-tester':
|
12
|
-
ensure => present,
|
13
|
-
catalina_base => '/opt/apache-tomcat/mycat',
|
14
|
-
element => 'role',
|
15
|
-
element_name => 'tester';
|
16
|
-
'mycat-user-example':
|
17
|
-
ensure => present,
|
18
|
-
catalina_base => '/opt/apache-tomcat/mycat',
|
19
|
-
element => 'user',
|
20
|
-
element_name => 'example',
|
21
|
-
password => 'very-secret-password',
|
22
|
-
roles => ['tester'];
|
23
|
-
}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
# This code fragment downloads tomcat 8.0, compiles jsvc, then starts the service
|
2
|
-
#
|
3
|
-
class { 'tomcat': }
|
4
|
-
class { 'gcc': }
|
5
|
-
class { 'java': }
|
6
|
-
|
7
|
-
tomcat::instance { 'test':
|
8
|
-
source_url => 'http://mirror.nexcess.net/apache/tomcat/tomcat-8/v8.0.8/bin/apache-tomcat-8.0.8.tar.gz'
|
9
|
-
}->
|
10
|
-
staging::extract { 'commons-daemon-native.tar.gz':
|
11
|
-
source => "${::tomcat::catalina_home}/bin/commons-daemon-native.tar.gz",
|
12
|
-
target => "${::tomcat::catalina_home}/bin",
|
13
|
-
unless => "test -d ${::tomcat::catalina_home}/bin/commons-daemon-1.0.15-native-src",
|
14
|
-
}->
|
15
|
-
exec { 'configure jsvc':
|
16
|
-
command => 'JAVA_HOME=/etc/alternatives/java_sdk configure',
|
17
|
-
creates => "${::tomcat::catalina_home}/bin/commons-daemon-1.0.15-native-src/unix/Makefile",
|
18
|
-
cwd => "${::tomcat::catalina_home}/bin/commons-daemon-1.0.15-native-src/unix",
|
19
|
-
path => "/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:${::tomcat::catalina_home}/bin/commons-daemon-1.0.15-native-src/unix",
|
20
|
-
require => [ Class['gcc'], Class['java'] ],
|
21
|
-
provider => shell,
|
22
|
-
}->
|
23
|
-
exec { 'make jsvc':
|
24
|
-
command => 'make',
|
25
|
-
creates => "${::tomcat::catalina_home}/bin/commons-daemon-1.0.15-native-src/unix/jsvc",
|
26
|
-
cwd => "${::tomcat::catalina_home}/bin/commons-daemon-1.0.15-native-src/unix",
|
27
|
-
path => "/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:${::tomcat::catalina_home}/bin/commons-daemon-1.0.15-native-src/unix",
|
28
|
-
provider => shell,
|
29
|
-
}->
|
30
|
-
file { 'jsvc':
|
31
|
-
ensure => link,
|
32
|
-
path => "${::tomcat::catalina_home}/bin/jsvc",
|
33
|
-
target => "${::tomcat::catalina_home}/bin/commons-daemon-1.0.15-native-src/unix/jsvc",
|
34
|
-
}->
|
35
|
-
tomcat::service { 'default':
|
36
|
-
use_jsvc => true,
|
37
|
-
}
|
@@ -1,38 +0,0 @@
|
|
1
|
-
class { 'tomcat': }
|
2
|
-
class { 'java': }
|
3
|
-
|
4
|
-
tomcat::instance { 'tomcat8':
|
5
|
-
catalina_base => '/opt/apache-tomcat/tomcat8',
|
6
|
-
source_url => 'http://mirror.nexcess.net/apache/tomcat/tomcat-8/v8.0.8/bin/apache-tomcat-8.0.8.tar.gz'
|
7
|
-
}->
|
8
|
-
tomcat::service { 'default':
|
9
|
-
catalina_base => '/opt/apache-tomcat/tomcat8',
|
10
|
-
}
|
11
|
-
|
12
|
-
tomcat::instance { 'tomcat6':
|
13
|
-
source_url => 'http://apache.mirror.quintex.com/tomcat/tomcat-6/v6.0.41/bin/apache-tomcat-6.0.41.tar.gz',
|
14
|
-
catalina_base => '/opt/apache-tomcat/tomcat6',
|
15
|
-
}->
|
16
|
-
tomcat::config::server { 'tomcat6':
|
17
|
-
catalina_base => '/opt/apache-tomcat/tomcat6',
|
18
|
-
port => '8105',
|
19
|
-
}->
|
20
|
-
tomcat::config::server::connector { 'tomcat6-http':
|
21
|
-
catalina_base => '/opt/apache-tomcat/tomcat6',
|
22
|
-
port => '8180',
|
23
|
-
protocol => 'HTTP/1.1',
|
24
|
-
additional_attributes => {
|
25
|
-
'redirectPort' => '8543'
|
26
|
-
},
|
27
|
-
}->
|
28
|
-
tomcat::config::server::connector { 'tomcat6-ajp':
|
29
|
-
catalina_base => '/opt/apache-tomcat/tomcat6',
|
30
|
-
port => '8109',
|
31
|
-
protocol => 'AJP/1.3',
|
32
|
-
additional_attributes => {
|
33
|
-
'redirectPort' => '8543'
|
34
|
-
},
|
35
|
-
}->
|
36
|
-
tomcat::service { 'tomcat6':
|
37
|
-
catalina_base => '/opt/apache-tomcat/tomcat6'
|
38
|
-
}
|
File without changes
|
@@ -1,78 +0,0 @@
|
|
1
|
-
# Definition: tomcat::config::server
|
2
|
-
#
|
3
|
-
# Configure attributes for the Server element in $CATALINA_BASE/conf/server.xml
|
4
|
-
#
|
5
|
-
# Parameters
|
6
|
-
# - $catalina_base is the base directory for the Tomcat installation.
|
7
|
-
# - $class_name is the optional className attribute.
|
8
|
-
# - $class_name_ensure specifies whether you are trying to set or remove the
|
9
|
-
# className attribute. Valid values are 'true', 'false', 'present', or
|
10
|
-
# 'absent'. Defaults to 'present'.
|
11
|
-
# - $address is the optional address attribute.
|
12
|
-
# - $address_ensure specifies whether you are trying to set of remove the
|
13
|
-
# address attribute. Valid values are 'true', 'false', 'present', or
|
14
|
-
# 'absent'. Defaults to 'present'.
|
15
|
-
# - The $port to wait for shutdown commands on.
|
16
|
-
# - The $shutdown command that must be sent to $port.
|
17
|
-
define tomcat::config::server (
|
18
|
-
$catalina_base = $::tomcat::catalina_home,
|
19
|
-
$class_name = undef,
|
20
|
-
$class_name_ensure = 'present',
|
21
|
-
$address = undef,
|
22
|
-
$address_ensure = 'present',
|
23
|
-
$port = undef,
|
24
|
-
$shutdown = undef,
|
25
|
-
$server_config = undef,
|
26
|
-
) {
|
27
|
-
|
28
|
-
if versioncmp($::augeasversion, '1.0.0') < 0 {
|
29
|
-
fail('Server configurations require Augeas >= 1.0.0')
|
30
|
-
}
|
31
|
-
|
32
|
-
validate_re($class_name_ensure, '^(present|absent|true|false)$')
|
33
|
-
validate_re($address_ensure, '^(present|absent|true|false)$')
|
34
|
-
|
35
|
-
if $class_name_ensure =~ /^(absent|false)$/ {
|
36
|
-
$_class_name = 'rm Server/#attribute/className'
|
37
|
-
} elsif $class_name {
|
38
|
-
$_class_name = "set Server/#attribute/className ${class_name}"
|
39
|
-
} else {
|
40
|
-
$_class_name = undef
|
41
|
-
}
|
42
|
-
|
43
|
-
if $address_ensure =~ /^(absent|false)$/ {
|
44
|
-
$_address = 'rm Server/#attribute/address'
|
45
|
-
} elsif $address {
|
46
|
-
$_address = "set Server/#attribute/address ${address}"
|
47
|
-
} else {
|
48
|
-
$_address = undef
|
49
|
-
}
|
50
|
-
|
51
|
-
if $port {
|
52
|
-
$_port = "set Server/#attribute/port ${port}"
|
53
|
-
} else {
|
54
|
-
$_port = undef
|
55
|
-
}
|
56
|
-
|
57
|
-
if $shutdown {
|
58
|
-
$_shutdown = "set Server/#attribute/shutdown ${shutdown}"
|
59
|
-
} else {
|
60
|
-
$_shutdown = undef
|
61
|
-
}
|
62
|
-
|
63
|
-
if $server_config {
|
64
|
-
$_server_config = $server_config
|
65
|
-
} else {
|
66
|
-
$_server_config = "${catalina_base}/conf/server.xml"
|
67
|
-
}
|
68
|
-
|
69
|
-
$changes = delete_undef_values([$_class_name, $_address, $_port, $_shutdown])
|
70
|
-
|
71
|
-
if ! empty($changes) {
|
72
|
-
augeas { "server-${catalina_base}":
|
73
|
-
lens => 'Xml.lns',
|
74
|
-
incl => $_server_config,
|
75
|
-
changes => $changes,
|
76
|
-
}
|
77
|
-
}
|
78
|
-
}
|
@@ -1,95 +0,0 @@
|
|
1
|
-
# Definition: tomcat::config::server::connector
|
2
|
-
#
|
3
|
-
# Configure Connector elements in $CATALINA_BASE/conf/server.xml
|
4
|
-
#
|
5
|
-
# Parameters:
|
6
|
-
# - $catalina_base is the base directory for the Tomcat installation.
|
7
|
-
# - $connector_ensure specifies whether you are trying to add or remove the
|
8
|
-
# Connector element. Valid values are 'true', 'false', 'present', and
|
9
|
-
# 'absent'. Defaults to 'present'.
|
10
|
-
# - The $port attribute. This attribute is required unless $connector_ensure
|
11
|
-
# is set to false.
|
12
|
-
# - The $protocol attribute. Defaults to $name when not specified.
|
13
|
-
# - $parent_service is the Service element this Connector should be nested
|
14
|
-
# beneath. Defaults to 'Catalina'.
|
15
|
-
# - An optional hash of $additional_attributes to add to the Connector. Should
|
16
|
-
# be of the format 'attribute' => 'value'.
|
17
|
-
# - An optional array of $attributes_to_remove from the Connector.
|
18
|
-
define tomcat::config::server::connector (
|
19
|
-
$catalina_base = $::tomcat::catalina_home,
|
20
|
-
$connector_ensure = 'present',
|
21
|
-
$port = undef,
|
22
|
-
$protocol = undef,
|
23
|
-
$parent_service = 'Catalina',
|
24
|
-
$additional_attributes = {},
|
25
|
-
$attributes_to_remove = [],
|
26
|
-
$purge_connectors = $::tomcat::purge_connectors,
|
27
|
-
$server_config = undef,
|
28
|
-
) {
|
29
|
-
if versioncmp($::augeasversion, '1.0.0') < 0 {
|
30
|
-
fail('Server configurations require Augeas >= 1.0.0')
|
31
|
-
}
|
32
|
-
|
33
|
-
validate_re($connector_ensure, '^(present|absent|true|false)$')
|
34
|
-
validate_hash($additional_attributes)
|
35
|
-
validate_bool($purge_connectors)
|
36
|
-
|
37
|
-
if $protocol {
|
38
|
-
$_protocol = $protocol
|
39
|
-
} else {
|
40
|
-
$_protocol = $name
|
41
|
-
}
|
42
|
-
|
43
|
-
$path = "Server/Service[#attribute/name='${parent_service}']"
|
44
|
-
|
45
|
-
if $purge_connectors {
|
46
|
-
$_purge_connectors = "rm Server//Connector[#attribute/protocol='${_protocol}']"
|
47
|
-
} else {
|
48
|
-
$_purge_connectors = undef
|
49
|
-
}
|
50
|
-
|
51
|
-
if $purge_connectors and ($connector_ensure =~ /^(absent|false)$/) {
|
52
|
-
fail('$connector_ensure must be set to \'true\' or \'present\' to use $purge_connectors')
|
53
|
-
}
|
54
|
-
|
55
|
-
if $server_config {
|
56
|
-
$_server_config = $server_config
|
57
|
-
} else {
|
58
|
-
$_server_config = "${catalina_base}/conf/server.xml"
|
59
|
-
}
|
60
|
-
|
61
|
-
if $connector_ensure =~ /^(absent|false)$/ {
|
62
|
-
if ! $port {
|
63
|
-
$base_path = "${path}/Connector[#attribute/protocol='${_protocol}']"
|
64
|
-
} else {
|
65
|
-
$base_path = "${path}/Connector[#attribute/port='${port}']"
|
66
|
-
}
|
67
|
-
$changes = "rm ${base_path}"
|
68
|
-
} else {
|
69
|
-
if ! $port {
|
70
|
-
fail('$port must be specified unless $connector_ensure is set to \'absent\' or \'false\'')
|
71
|
-
}
|
72
|
-
|
73
|
-
$base_path = "${path}/Connector[#attribute/port='${port}']"
|
74
|
-
$_port = "set ${base_path}/#attribute/port ${port}"
|
75
|
-
$_protocol_change = "set ${base_path}/#attribute/protocol ${_protocol}"
|
76
|
-
if ! empty($additional_attributes) {
|
77
|
-
$_additional_attributes = suffix(prefix(join_keys_to_values($additional_attributes, " '"), "set ${base_path}/#attribute/"), "'")
|
78
|
-
} else {
|
79
|
-
$_additional_attributes = undef
|
80
|
-
}
|
81
|
-
if ! empty(any2array($attributes_to_remove)) {
|
82
|
-
$_attributes_to_remove = prefix(any2array($attributes_to_remove), "rm ${base_path}/#attribute/")
|
83
|
-
} else {
|
84
|
-
$_attributes_to_remove = undef
|
85
|
-
}
|
86
|
-
|
87
|
-
$changes = delete_undef_values(flatten([ $_purge_connectors, $_port, $_protocol_change, $_additional_attributes, $_attributes_to_remove ]))
|
88
|
-
}
|
89
|
-
|
90
|
-
augeas { "server-${catalina_base}-${parent_service}-connector-${port}":
|
91
|
-
lens => 'Xml.lns',
|
92
|
-
incl => $_server_config,
|
93
|
-
changes => $changes,
|
94
|
-
}
|
95
|
-
}
|