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,812 +0,0 @@
|
|
1
|
-
#tomcat
|
2
|
-
|
3
|
-
####Table of Contents
|
4
|
-
|
5
|
-
1. [Overview](#overview)
|
6
|
-
2. [Module Description - What the module does and why it is useful](#module-description)
|
7
|
-
3. [Setup - The basics of getting started with tomcat](#setup)
|
8
|
-
* [Setup requirements](#setup-requirements)
|
9
|
-
* [Beginning with tomcat](#beginning-with-tomcat)
|
10
|
-
4. [Usage - Configuration options and additional functionality](#usage)
|
11
|
-
* [I want to install Tomcat from a specific source.](#i-want-to-install-tomcat-from-a-specific-source)
|
12
|
-
* [I want to run multiple copies of Tomcat on a single node.](#i-want-to-run-multiple-copies-of-tomcat-on-a-single-node)
|
13
|
-
* [I want to deploy WAR files.](#i-want-to-deploy-war-files)
|
14
|
-
* [I want to change my configuration](#i-want-to-change-my-configuration)
|
15
|
-
* [I want to manage a Connector or Realm that already exists](#i-want-to-manage-a-connector-or-realm-that-already-exists)
|
16
|
-
5. [Reference - An under-the-hood peek at what the module is doing and how](#reference)
|
17
|
-
* [Classes](#classes)
|
18
|
-
* [Defines](#defines)
|
19
|
-
* [Parameters](#parameters)
|
20
|
-
* [tomcat](#tomcat-1)
|
21
|
-
* [tomcat::config::server](#tomcatconfigserver)
|
22
|
-
* [tomcat::config::server::connector](#tomcatconfigserverconnector)
|
23
|
-
* [tomcat::config::server::context](#tomcatconfigservercontext)
|
24
|
-
* [tomcat::config::server::engine](#tomcatconfigserverengine)
|
25
|
-
* [tomcat::config::server::host](#tomcatconfigserverhost)
|
26
|
-
* [tomcat::config::server::listener](#tomcatconfigserverlistener)
|
27
|
-
* [tomcat::config::server::realm](#tomcatconfigserverrealm)
|
28
|
-
* [tomcat::config::server::service](#tomcatconfigserverservice)
|
29
|
-
* [tomcat::config::server::tomcat_users](#tomcatconfigservertomcat_users)
|
30
|
-
* [tomcat::config::server::valve](#tomcatconfigservervalve)
|
31
|
-
* [tomcat::instance](#tomcatinstance)
|
32
|
-
* [tomcat::service](#tomcatservice)
|
33
|
-
* [tomcat::setenv::entry](#tomcatsetenventry)
|
34
|
-
* [tomcat::war](#tomcatwar)
|
35
|
-
6. [Limitations - OS compatibility, etc.](#limitations)
|
36
|
-
7. [Development - Guide for contributing to the module](#development)
|
37
|
-
|
38
|
-
##Overview
|
39
|
-
|
40
|
-
The tomcat module lets you use Puppet to install, deploy, and configure Tomcat web services.
|
41
|
-
|
42
|
-
##Module Description
|
43
|
-
|
44
|
-
Tomcat is a Java web service provider. The tomcat module lets you use Puppet to install Tomcat, manage its configuration file, and deploy web apps to it. It supports multiple instances of Tomcat spanning multiple versions.
|
45
|
-
|
46
|
-
##Setup
|
47
|
-
|
48
|
-
###Setup requirements
|
49
|
-
|
50
|
-
The tomcat module requires [puppetlabs-stdlib](https://forge.puppetlabs.com/puppetlabs/stdlib) version 4.0 or newer. On Puppet Enterprise you must meet this requirement before installing the module. To update stdlib, run:
|
51
|
-
|
52
|
-
~~~
|
53
|
-
puppet module upgrade puppetlabs-stdlib
|
54
|
-
~~~
|
55
|
-
|
56
|
-
###Beginning with tomcat
|
57
|
-
|
58
|
-
The simplest way to get Tomcat up and running with the tomcat module is to install the Tomcat package from EPEL...
|
59
|
-
|
60
|
-
~~~
|
61
|
-
class { 'tomcat':
|
62
|
-
install_from_source => false,
|
63
|
-
}
|
64
|
-
class { 'epel': }->
|
65
|
-
tomcat::instance{ 'default':
|
66
|
-
package_name => 'tomcat',
|
67
|
-
}->
|
68
|
-
~~~
|
69
|
-
|
70
|
-
...and then start the service:
|
71
|
-
|
72
|
-
~~~
|
73
|
-
tomcat::service { 'default':
|
74
|
-
use_jsvc => false,
|
75
|
-
use_init => true,
|
76
|
-
service_name => 'tomcat',
|
77
|
-
}
|
78
|
-
~~~
|
79
|
-
|
80
|
-
##Usage
|
81
|
-
|
82
|
-
###I want to install Tomcat from a specific source
|
83
|
-
|
84
|
-
To download Tomcat from a specific source and then start the service:
|
85
|
-
|
86
|
-
~~~
|
87
|
-
class { 'tomcat': }
|
88
|
-
class { 'java': }
|
89
|
-
tomcat::instance { 'test':
|
90
|
-
source_url => 'http://mirror.nexcess.net/apache/tomcat/tomcat-8/v8.0.8/bin/apache-tomcat-8.0.8.tar.gz'
|
91
|
-
}->
|
92
|
-
tomcat::service { 'default': }
|
93
|
-
~~~
|
94
|
-
|
95
|
-
###I want to run multiple copies of Tomcat on a single node
|
96
|
-
|
97
|
-
~~~
|
98
|
-
class { 'tomcat': }
|
99
|
-
class { 'java': }
|
100
|
-
|
101
|
-
tomcat::instance { 'tomcat8':
|
102
|
-
catalina_base => '/opt/apache-tomcat/tomcat8',
|
103
|
-
source_url => 'http://mirror.nexcess.net/apache/tomcat/tomcat-8/v8.0.8/bin/apache-tomcat-8.0.8.tar.gz'
|
104
|
-
}->
|
105
|
-
tomcat::service { 'default':
|
106
|
-
catalina_base => '/opt/apache-tomcat/tomcat8',
|
107
|
-
}
|
108
|
-
|
109
|
-
tomcat::instance { 'tomcat6':
|
110
|
-
source_url => 'http://apache.mirror.quintex.com/tomcat/tomcat-6/v6.0.41/bin/apache-tomcat-6.0.41.tar.gz',
|
111
|
-
catalina_base => '/opt/apache-tomcat/tomcat6',
|
112
|
-
}->
|
113
|
-
tomcat::config::server { 'tomcat6':
|
114
|
-
catalina_base => '/opt/apache-tomcat/tomcat6',
|
115
|
-
port => '8105',
|
116
|
-
}->
|
117
|
-
tomcat::config::server::connector { 'tomcat6-http':
|
118
|
-
catalina_base => '/opt/apache-tomcat/tomcat6',
|
119
|
-
port => '8180',
|
120
|
-
protocol => 'HTTP/1.1',
|
121
|
-
additional_attributes => {
|
122
|
-
'redirectPort' => '8543'
|
123
|
-
},
|
124
|
-
}->
|
125
|
-
tomcat::config::server::connector { 'tomcat6-ajp':
|
126
|
-
catalina_base => '/opt/apache-tomcat/tomcat6',
|
127
|
-
port => '8109',
|
128
|
-
protocol => 'AJP/1.3',
|
129
|
-
additional_attributes => {
|
130
|
-
'redirectPort' => '8543'
|
131
|
-
},
|
132
|
-
}->
|
133
|
-
tomcat::service { 'tomcat6':
|
134
|
-
catalina_base => '/opt/apache-tomcat/tomcat6'
|
135
|
-
~~~
|
136
|
-
|
137
|
-
###I want to deploy WAR files
|
138
|
-
|
139
|
-
~~~
|
140
|
-
tomcat::war { 'sample.war':
|
141
|
-
catalina_base => '/opt/apache-tomcat/tomcat8',
|
142
|
-
war_source => '/opt/apache-tomcat/tomcat8/webapps/docs/appdev/sample/sample.war',
|
143
|
-
}
|
144
|
-
~~~
|
145
|
-
|
146
|
-
The name of the WAR file must end with '.war'.
|
147
|
-
|
148
|
-
The `war_source` can be a local path or a `puppet:///`, `http://`, or `ftp://` URL.
|
149
|
-
|
150
|
-
###I want to change my configuration
|
151
|
-
|
152
|
-
Tomcat does not restart after you update its configuration, unless you supply a [`notify` metaparameter](https://docs.puppetlabs.com/learning/ordering.html#notify-and-subscribe).
|
153
|
-
|
154
|
-
To remove a connector, for instance, start with a manifest like this:
|
155
|
-
|
156
|
-
~~~
|
157
|
-
tomcat::config::server::connector { 'tomcat8-jsvc':
|
158
|
-
catalina_base => '/opt/apache-tomcat/tomcat8-jsvc',
|
159
|
-
port => '80',
|
160
|
-
protocol => 'HTTP/1.1',
|
161
|
-
additional_attributes => {
|
162
|
-
'redirectPort' => '443'
|
163
|
-
},
|
164
|
-
connector_ensure => 'present'
|
165
|
-
}
|
166
|
-
~~~
|
167
|
-
|
168
|
-
Then set `connector_ensure` to 'absent' and set `notify` to the service resource:
|
169
|
-
|
170
|
-
~~~
|
171
|
-
tomcat::config::server::connector { 'tomcat8-jsvc':
|
172
|
-
catalina_base => '/opt/apache-tomcat/tomcat8-jsvc',
|
173
|
-
port => '80',
|
174
|
-
protocol => 'HTTP/1.1',
|
175
|
-
additional_attributes => {
|
176
|
-
'redirectPort' => '443'
|
177
|
-
},
|
178
|
-
connector_ensure => 'present'
|
179
|
-
notify => Tomcat::Service['jsvc-default'],
|
180
|
-
}
|
181
|
-
~~~
|
182
|
-
|
183
|
-
###I want to manage a Connector or Realm that already exists
|
184
|
-
|
185
|
-
Describe the Realm or HTTP Connector element using `tomcat::config::server::realm` or `tomcat::config::server::connector`, and set `purge_realms` or `purge_connectors` to 'true'.
|
186
|
-
|
187
|
-
~~~
|
188
|
-
tomcat::config::server::realm { 'org.apache.catalina.realm.LockOutRealm':
|
189
|
-
realm_ensure => 'present',
|
190
|
-
purge_realms => true,
|
191
|
-
}
|
192
|
-
~~~
|
193
|
-
|
194
|
-
Puppet removes any existing Connectors or Realms and leaves only the ones you've specified.
|
195
|
-
|
196
|
-
##Reference
|
197
|
-
|
198
|
-
###Classes
|
199
|
-
|
200
|
-
####Public Classes
|
201
|
-
|
202
|
-
* `tomcat`: Main class. Manages the installation and configuration of Tomcat.
|
203
|
-
|
204
|
-
####Private Classes
|
205
|
-
|
206
|
-
* `tomcat::params`: Manages Tomcat parameters.
|
207
|
-
|
208
|
-
###Defines
|
209
|
-
|
210
|
-
####Public Defines
|
211
|
-
|
212
|
-
* `tomcat::config::server`: Configures attributes for the [Server element](http://tomcat.apache.org/tomcat-8.0-doc/config/server.html) in `$CATALINA_BASE/conf/server.xml`.
|
213
|
-
* `tomcat::config::server::connector`: Configures [Connector elements](http://tomcat.apache.org/tomcat-8.0-doc/connectors.html) in `$CATALINA_BASE/conf/server.xml`.
|
214
|
-
* `tomcat::config::server::context`: Configures [Context elements](http://tomcat.apache.org/tomcat-8.0-doc/config/context.html) in `$CATALINA_BASE/conf/server.xml`.
|
215
|
-
* `tomcat::config::server::engine`: Configures [Engine elements](http://tomcat.apache.org/tomcat-8.0-doc/config/engine.html#Introduction) in `$CATALINA_BASE/conf/server.xml`.
|
216
|
-
* `tomcat::config::server::host`: Configures [Host elements](http://tomcat.apache.org/tomcat-8.0-doc/config/host.html) in `$CATALINA_BASE/conf/server.xml`.
|
217
|
-
* `tomcat::config::server::listener`: Configures [Listener elements](http://tomcat.apache.org/tomcat-8.0-doc/config/listeners.html) in `$CATALINA_BASE/conf/server.xml`.
|
218
|
-
* `tomcat::config::server::realm`: Configures [Realm elements](http://tomcat.apache.org/tomcat-8.0-doc/config/realm.html) in `$CATALINA_BASE/conf/server.xml`.
|
219
|
-
* `tomcat::config::server::service`: Configures a [Service element](http://tomcat.apache.org/tomcat-8.0-doc/config/service.html) element nested in the `Server` element in `$CATALINA_BASE/conf/server.xml`.
|
220
|
-
* `tomcat::config::server::tomcat_users`: Configures user and role elements for [UserDatabaseRealm] (http://tomcat.apache.org/tomcat-8.0-doc/realm-howto.html#UserDatabaseRealm) or [MemoryRealm] (http://tomcat.apache.org/tomcat-8.0-doc/realm-howto.html#MemoryRealm) in `$CATALINA_BASE/conf/tomcat-users.xml` or any other specified file.
|
221
|
-
* `tomcat::config::server::valve`: Configures a [Valve](http://tomcat.apache.org/tomcat-8.0-doc/config/valve.html) element in `$CATALINA_BASE/conf/server.xml`.
|
222
|
-
* `tomcat::instance`: Installs a Tomcat instance.
|
223
|
-
* `tomcat::service`: Provides Tomcat service management.
|
224
|
-
* `tomcat::setenv::entry`: Adds an entry to a Tomcat configuration file (e.g., `setenv.sh` or `/etc/sysconfig/tomcat`).
|
225
|
-
* `tomcat::war`: Manages the deployment of WAR files.
|
226
|
-
|
227
|
-
####Private Defines
|
228
|
-
|
229
|
-
* `tomcat::instance::package`: Installs Tomcat from a package.
|
230
|
-
* `tomcat::instance::source`: Installs Tomcat from source.
|
231
|
-
|
232
|
-
###Parameters
|
233
|
-
|
234
|
-
All parameters are optional except where otherwise noted.
|
235
|
-
|
236
|
-
####tomcat
|
237
|
-
|
238
|
-
#####`catalina_home`
|
239
|
-
|
240
|
-
Specifies the root directory of the Tomcat installation. Valid options: a string containing an absolute path. Default: '/opt/apache-tomcat'.
|
241
|
-
|
242
|
-
#####`group`
|
243
|
-
|
244
|
-
Specifies a group to run Tomcat as. Valid options: a string containing a valid group name. Default: 'tomcat'.
|
245
|
-
|
246
|
-
#####`install_from_source`
|
247
|
-
|
248
|
-
Specifies whether to install Tomcat from source. Valid options: 'true' and 'false'. Default: 'true'.
|
249
|
-
|
250
|
-
#####`manage_group`
|
251
|
-
|
252
|
-
Determines whether to create the specified group, if it doesn't exist. Uses Puppet's native [`group` resource type](https://docs.puppetlabs.com/references/latest/type.html#group) with default parameters. Valid options: 'true' and 'false'. Default: 'true'.
|
253
|
-
|
254
|
-
#####`manage_user`
|
255
|
-
|
256
|
-
Determines whether to create the specified user, if it doesn't exist. Uses Puppet's native [`user` resource type](https://docs.puppetlabs.com/references/latest/type.html#user) with default parameters. Valid options: 'true' and 'false'. Default: 'true'.
|
257
|
-
|
258
|
-
#####`purge_connectors`
|
259
|
-
|
260
|
-
Specifies whether to purge any unmanaged Connector elements from the configuration file. Valid options: 'true' and 'false'. Default: 'false'.
|
261
|
-
|
262
|
-
#####`purge_realms`
|
263
|
-
|
264
|
-
Specifies whether to purge any unmanaged Realm elements from the configuration file. Valid options: 'true' and 'false'. Default: 'false'.
|
265
|
-
|
266
|
-
#####`user`
|
267
|
-
|
268
|
-
Specifies a user to run Tomcat as. Valid options: a string containing a valid username. Default: 'tomcat'.
|
269
|
-
|
270
|
-
####tomcat::config::server
|
271
|
-
|
272
|
-
#####`address`
|
273
|
-
|
274
|
-
Specifies a TCP/IP address on which to listen for the shutdown command. Maps to the [address XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/server.html#Common_Attributes). Valid options: a string. Default: undef.
|
275
|
-
|
276
|
-
#####`address_ensure`
|
277
|
-
|
278
|
-
Specifies whether the [address XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/server.html#Common_Attributes) should exist in the configuration file. Valid options: 'true', 'false', 'present', and 'absent'. Default: 'present'.
|
279
|
-
|
280
|
-
#####`catalina_base`
|
281
|
-
|
282
|
-
Specifies the base directory of the Tomcat installation to manage. Valid options: a string containing an absolute path. Default: $tomcat::catalina_home.
|
283
|
-
|
284
|
-
#####`class_name`
|
285
|
-
|
286
|
-
Specifies the Java class name of a server implementation to use. Maps to the [className XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/server.html#Common_Attributes) in the configuration file. Valid options: a string containing a Java class name. Default: undef.
|
287
|
-
|
288
|
-
#####`class_name_ensure`
|
289
|
-
|
290
|
-
Specifies whether the [className XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/server.html#Common_Attributes) should exist in the configuration file. Valid options: 'true', 'false', 'present', and 'absent'. Default: 'present'.
|
291
|
-
|
292
|
-
#####`port`
|
293
|
-
|
294
|
-
Specifies a port on which to listen for the designated shutdown command. Maps to the [port XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/server.html#Common_Attributes). Valid options: a string containing a port number. Default: undef.
|
295
|
-
|
296
|
-
#####`server_config`
|
297
|
-
|
298
|
-
Specifies a server.xml file to manage. Valid options: a string containing an absolute path. Default: '${catalina_base}/config/server.xml'.
|
299
|
-
|
300
|
-
#####`shutdown`
|
301
|
-
|
302
|
-
Designates a command that shuts down Tomcat when the command is received through the specified address and port. Maps to the [shutdown XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/server.html#Common_Attributes) Valid options: a string. Default: undef.
|
303
|
-
|
304
|
-
####tomcat::config::server::connector
|
305
|
-
|
306
|
-
#####`additional_attributes`
|
307
|
-
|
308
|
-
Specifies any further attributes to add to the Connector. Valid options: a hash of '< attribute >' => '< value >' pairs. Default: {}.
|
309
|
-
|
310
|
-
#####`attributes_to_remove`
|
311
|
-
|
312
|
-
Specifies any attributes to remove from the Connector. Valid options: a hash of '< attribute >' => '< value >' pairs. Default: [].
|
313
|
-
|
314
|
-
#####`catalina_base`
|
315
|
-
|
316
|
-
Specifies the base directory of the Tomcat installation to manage. Valid options: a string containing an absolute path. Default: $::tomcat/catalina_home.
|
317
|
-
|
318
|
-
#####`connector_ensure`
|
319
|
-
|
320
|
-
Specifies whether the [Connector XML element](http://tomcat.apache.org/tomcat-8.0-doc/connectors.html) should exist in the configuration file. Valid options: 'true', 'false', 'present', and 'absent'. Default: 'present'.
|
321
|
-
|
322
|
-
#####`parent_service`
|
323
|
-
|
324
|
-
Specifies which Service element the Connector should nest under. Valid options: a string containing the name attribute of the Service. Default: 'Catalina'.
|
325
|
-
|
326
|
-
#####`port`
|
327
|
-
|
328
|
-
*Required if `connector_ensure` is set to 'true' or 'present'.* Sets a TCP port on which to create a server socket. Maps to the [port XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/http.html#Common_Attributes). Valid options: a string.
|
329
|
-
|
330
|
-
#####`protocol`
|
331
|
-
|
332
|
-
Specifies a protocol to use for handling incoming traffic. Maps to the [protocol XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/http.html#Common_Attributes). Valid options: a string. Default: $name.
|
333
|
-
|
334
|
-
#####`server_config`
|
335
|
-
|
336
|
-
Specifies a server.xml file to manage. Valid options: a string containing an absolute path. Default: '${catalina_base}/config/server.xml'.
|
337
|
-
|
338
|
-
####tomcat::config::server::context
|
339
|
-
|
340
|
-
#####`additional_attributes`
|
341
|
-
|
342
|
-
Specifies any further attributes to add to the Context. Valid options: a hash of '< attribute >' => '< value >' pairs. Default: {}.
|
343
|
-
|
344
|
-
#####`attributes_to_remove`
|
345
|
-
|
346
|
-
Specifies any attributes to remove from the Context. Valid options: a hash of '< attribute >' => '< value >' pairs. Default: [].
|
347
|
-
|
348
|
-
#####`catalina_base`
|
349
|
-
|
350
|
-
Specifies the base directory of the Tomcat installation to manage. Valid options: a string containing an absolute path. Default: $::tomcat/catalina_home.
|
351
|
-
|
352
|
-
#####`context_ensure`
|
353
|
-
|
354
|
-
Specifies whether the [Context XML element](http://tomcat.apache.org/tomcat-8.0-doc/config/context.html) should exist in the configuration file. Valid options: 'true', 'false', 'present', and 'absent'. Default: 'present'.
|
355
|
-
|
356
|
-
#####`doc_base`
|
357
|
-
|
358
|
-
Specifies a Document Base (or Context Root) directory or archive file. Maps to the [docBase XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Common_Attributes). Valid options: a string containing a path (either an absolute path or a path relative to the appBase directory of the owning Host). Default: $name.
|
359
|
-
|
360
|
-
#####`parent_engine`
|
361
|
-
|
362
|
-
Specifies which Engine element the Context should nest under. Only valid if `parent_host` is specified. Valid options: a string containing the name attribute of the Engine. Default: undef.
|
363
|
-
|
364
|
-
#####`parent_host`
|
365
|
-
|
366
|
-
Specifies which Host element the Context should nest under. Valid options: a string containing the name attribute of the Host. Default: undef.
|
367
|
-
|
368
|
-
#####`parent_service`
|
369
|
-
|
370
|
-
Specifies which Service XML element the Context should nest under. Valid options: a string containing the name attribute of the Service. Default: 'Catalina'.
|
371
|
-
|
372
|
-
#####`server_config`
|
373
|
-
|
374
|
-
Specifies a server.xml file to manage. Valid options: a string containing an absolute path. Default: '${catalina_base}/config/server.xml'.
|
375
|
-
|
376
|
-
####tomcat::config::server::engine
|
377
|
-
|
378
|
-
#####`background_processor_delay`
|
379
|
-
|
380
|
-
Determines the delay between invoking the backgroundProcess method on this engine and its child containers. Maps to the [backgroundProcessorDelay XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/engine.html#Common_Attributes). Valid options: an integer, in seconds. Default: undef.
|
381
|
-
|
382
|
-
#####`background_processor_delay_ensure`
|
383
|
-
|
384
|
-
Specifies whether the [backgroundProcessorDelay XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/engine.html#Common_Attributes) should exist in the configuration file. Valid options: 'true', 'false', 'present', and 'absent'. Default: 'present'.
|
385
|
-
|
386
|
-
#####`catalina_base`
|
387
|
-
|
388
|
-
Specifies the base directory of the Tomcat installation to manage. Valid options: a string containing an absolute path. Default: $::tomcat::catalina_home.
|
389
|
-
|
390
|
-
#####`class_name`
|
391
|
-
|
392
|
-
Specifies the Java class name of a server implementation to use. Maps to the [className XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/engine.html#Common_Attributes). Valid options: a string containing a Java class name. Default: undef.
|
393
|
-
|
394
|
-
#####`class_name_ensure`
|
395
|
-
|
396
|
-
Specifies whether the [className XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/engine.html#Common_Attributes) should exist in the configuration file. Valid options: 'true', 'false', 'present', and 'absent'. Default: 'present'.
|
397
|
-
|
398
|
-
#####`default_host`
|
399
|
-
|
400
|
-
*Required.* Specifies a host to handle any requests directed to hostnames that exist on the server but are not defined in this configuration file. Maps to the [defaultHost XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/engine.html#Common_Attributes) of the Engine. Valid options: a string containing a hostname.
|
401
|
-
|
402
|
-
#####`engine_name`
|
403
|
-
|
404
|
-
Specifies the logical name of the Engine, used in log and error messages. Maps to the [name XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/engine.html#Common_Attributes). Valid options: a string. Default: the '[name]' passed in your define.
|
405
|
-
|
406
|
-
#####`jvm_route`
|
407
|
-
|
408
|
-
Specifies an identifier to enable session affinity in load balancing. Maps to the [jvmRoute XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/engine.html#Common_Attributes). Valid options: string. Default: undef.
|
409
|
-
|
410
|
-
#####`jvm_route_ensure`
|
411
|
-
|
412
|
-
Specifies whether the [jvmRoute XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/engine.html#Common_Attributes) should exist in the configuration file. Valid options: 'true', 'false', 'present', and 'absent'. Default: 'present'.
|
413
|
-
|
414
|
-
#####`parent_service`
|
415
|
-
|
416
|
-
Specifies which Service element the Engine should nest under. Valid options: a string containing the name attribute of the Service. Default: 'Catalina'.
|
417
|
-
|
418
|
-
#####`server_config`
|
419
|
-
|
420
|
-
Specifies a server.xml file to manage. Valid options: a string containing an absolute path. Default: '${catalina_base}/config/server.xml'.
|
421
|
-
|
422
|
-
#####`start_stop_threads`
|
423
|
-
|
424
|
-
Sets how many threads the Engine should use to start child Host elements in parallel. Maps to the [startStopThreads XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/engine.html#Common_Attributes). Valid options: a string. Default: undef.
|
425
|
-
|
426
|
-
#####`start_stop_threads_ensure`
|
427
|
-
|
428
|
-
Specifies whether the [startStopThreads XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/engine.html#Common_Attributes) should exist in the configuration file. Valid options: 'true', 'false', 'present', and 'absent'. Default: 'present'.
|
429
|
-
|
430
|
-
####tomcat::config::server::host
|
431
|
-
|
432
|
-
#####`additional_attributes`
|
433
|
-
|
434
|
-
Specifies any further attributes to add to the Host. Valid options: a hash of '< attribute >' => '< value >' pairs. Default: {}.
|
435
|
-
|
436
|
-
#####`app_base`
|
437
|
-
|
438
|
-
*Required unless [`host_ensure`](#host_ensure) is set to 'false' or 'absent'.* Specifies the Application Base directory for the virtual host. Maps to the [appBase XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/host.html#Common_Attributes). Valid options: a string.
|
439
|
-
|
440
|
-
#####`attributes_to_remove`
|
441
|
-
|
442
|
-
Specifies any attributes to remove from the Host. Valid options: an array of '< attribute >' => '< value >' pairs. Default: [].
|
443
|
-
|
444
|
-
#####`catalina_base`
|
445
|
-
|
446
|
-
Specifies the base directory of the Tomcat installation to manage. Valid options: a string containing an absolute path. Default: $::tomcat::catalina_home.
|
447
|
-
|
448
|
-
#####`host_ensure`
|
449
|
-
|
450
|
-
Specifies whether the virtual host (the [Host XML element](http://tomcat.apache.org/tomcat-8.0-doc/config/host.html#Introduction)) should exist in the configuration file. Valid options: 'true', 'false', 'present', and 'absent'. Default: 'present'.
|
451
|
-
|
452
|
-
#####`host_name`
|
453
|
-
|
454
|
-
Specifies the network name of the virtual host, as registered on your DNS server. Maps to the [name XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/host.html#Common_Attributes). Valid options: a string. Default: the '[name]' passed in your define.
|
455
|
-
|
456
|
-
#####`parent_service`
|
457
|
-
|
458
|
-
Specifies which Service element the Host should nest under. Valid options: a string containing the name attribute of the Service. Default: 'Catalina'.
|
459
|
-
|
460
|
-
#####`server_config`
|
461
|
-
|
462
|
-
Specifies a server.xml file to manage. Valid options: a string containing an absolute path. Default: '${catalina_base}/config/server.xml'.
|
463
|
-
|
464
|
-
####tomcat::config::server::listener
|
465
|
-
|
466
|
-
#####`additional_attributes`
|
467
|
-
|
468
|
-
Specifies any further attributes to add to the Listener. Valid options: a hash of '< attribute >' => '< value >' pairs. Default: {}.
|
469
|
-
|
470
|
-
#####`attributes_to_remove`
|
471
|
-
|
472
|
-
Specifies any attributes to remove from the Listener. Valid options: a hash of '< attribute >' => '< value >' pairs. Default: [].
|
473
|
-
|
474
|
-
#####`catalina_base`
|
475
|
-
|
476
|
-
Specifies the base directory of the Tomcat installation. Valid options: a string containing an absolute path. Default: $::tomcat::catalina_home.
|
477
|
-
|
478
|
-
#####`class_name`
|
479
|
-
|
480
|
-
Specifies the Java class name of a server implementation to use. Maps to the [className XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/listeners.html#Common_Attributes) of a Listener Element. Valid options: a string containing a Java class name. Default: $name.
|
481
|
-
|
482
|
-
#####`listener_ensure`
|
483
|
-
|
484
|
-
Specifies whether the [Listener XML element](http://tomcat.apache.org/tomcat-8.0-doc/config/listeners.html) should exist in the configuration file. Valid options: 'true', 'false', 'present', and 'absent'. Default: 'present'.
|
485
|
-
|
486
|
-
#####`parent_engine`
|
487
|
-
|
488
|
-
Specifies which Engine element this Listener should nest under. Valid options: a string containing the name attribute of the Engine. Default: undef.
|
489
|
-
|
490
|
-
#####`parent_host`
|
491
|
-
|
492
|
-
Specifies which Host element this Listener should nest under. Valid options: a string containing the name attribute of the Host. Default: undef.
|
493
|
-
|
494
|
-
#####`parent_service`
|
495
|
-
|
496
|
-
Specifies which Service element the Listener should nest under. Only valid if `parent_engine` or `parent_host` is specified. Valid options: a string containing the name attribute of the Service. Default: 'Catalina'.
|
497
|
-
|
498
|
-
#####`server_config`
|
499
|
-
|
500
|
-
Specifies a server.xml file to manage. Valid options: a string containing an absolute path. Default: '${catalina_base}/config/server.xml'.
|
501
|
-
|
502
|
-
####tomcat::config::server::realm
|
503
|
-
|
504
|
-
#####`additional_attributes`
|
505
|
-
|
506
|
-
Specifies any further attributes to add to the Realm element. Valid options: a hash of '< attribute >' => '< value >' pairs. Default: {}.
|
507
|
-
|
508
|
-
#####`attributes_to_remove`
|
509
|
-
|
510
|
-
Specifies any attributes to remove from the Realm element. Valid options: an array of '< attribute >' => '< value >' pairs. Default: [].
|
511
|
-
|
512
|
-
#####`catalina_base`
|
513
|
-
|
514
|
-
Specifies the base directory of the Tomcat installation. Default: $::tomcat::catalina_home.
|
515
|
-
|
516
|
-
#####`class_name`
|
517
|
-
|
518
|
-
Specifies the Java class name of a Realm implementation to use. Maps to the [className XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/realm.html#Common_Attributes). Valid options: a string containing a Java class name. Default: the '[name]' passed in your define.
|
519
|
-
|
520
|
-
#####`parent_engine`
|
521
|
-
|
522
|
-
Specifies which Engine element this Realm should nest under. Valid options: a string containing the name attribute of the Engine. Default: 'Catalina'.
|
523
|
-
|
524
|
-
#####`parent_host`
|
525
|
-
|
526
|
-
Specifies which Host element this Realm should nest under. Valid options: a string containing the name attribute of the Host. Default: undef.
|
527
|
-
|
528
|
-
#####`parent_realm`
|
529
|
-
|
530
|
-
Specifies which Realm element this Realm should nest under. Valid options: a string containing the className attribute of the Realm element. Default: undef.
|
531
|
-
|
532
|
-
#####`parent_service`
|
533
|
-
|
534
|
-
Specifies which Service element this Realm element should nest under. Valid options: a string containing the name attribute of the Service. Default: 'Catalina'.
|
535
|
-
|
536
|
-
#####`purge_realms`
|
537
|
-
|
538
|
-
Specifies whether to purge any unmanaged Realm elements from the configuration file. Valid options: 'true' and 'false'. Default: 'false'.
|
539
|
-
|
540
|
-
#####`realm_ensure`
|
541
|
-
|
542
|
-
Specifies whether the Realm element should exist in the configuration file. Valid options: 'true', 'false', 'present', and 'absent'. Default: 'present'.
|
543
|
-
|
544
|
-
#####`server_config`
|
545
|
-
|
546
|
-
Specifies a server.xml file to manage. Valid options: a string containing an absolute path. Default: '${catalina_base}/config/server.xml'.
|
547
|
-
|
548
|
-
####tomcat::config::server::service
|
549
|
-
|
550
|
-
#####`catalina_base`
|
551
|
-
|
552
|
-
Specifies the base directory of the Tomcat installation. Valid options: a string containing an absolute path. Default: $::tomcat::catalina_home.
|
553
|
-
|
554
|
-
#####`class_name`
|
555
|
-
|
556
|
-
Specifies the Java class name of a server implementation to use. Maps to the [className XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/service.html#Common_Attributes). Valid options: a string containing a Java class name. Default: undef.
|
557
|
-
|
558
|
-
#####`class_name_ensure`
|
559
|
-
|
560
|
-
Specifies whether the [className XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/service.html#Common_Attributes) should exist in the configuration file. Valid options: 'true', 'false', 'present', and 'absent'. Default: 'present'.
|
561
|
-
|
562
|
-
#####`server_config`
|
563
|
-
|
564
|
-
Specifies a server.xml file to manage. Valid options: a string containing an absolute path. Default: '${catalina_base}/config/server.xml'.
|
565
|
-
|
566
|
-
#####`service_ensure`
|
567
|
-
|
568
|
-
Specifies whether the [Service element](http://tomcat.apache.org/tomcat-8.0-doc/config/service.html#Introduction) should exist in the configuration file. Valid options: 'true', 'false', 'present', and 'absent'. Default: 'present'.
|
569
|
-
|
570
|
-
####tomcat::config::server::tomcat_users
|
571
|
-
|
572
|
-
#####`catalina_base`
|
573
|
-
|
574
|
-
Specifies the base directory of the Tomcat installation. Valid options: a string containing an absolute path. Default: $::tomcat::catalina_home.
|
575
|
-
|
576
|
-
#####`element`
|
577
|
-
|
578
|
-
Specifies the type of element to manage. Valid options: 'user' or 'role'. Default: 'user'.
|
579
|
-
|
580
|
-
#####`element_name`
|
581
|
-
|
582
|
-
Sets the element's username (or rolename, if `element` is set to 'role'). Valid options: a string. Default: $name.
|
583
|
-
|
584
|
-
#####`ensure`
|
585
|
-
|
586
|
-
Determines whether the specified XML element should exist in the configuration file. Valid options: 'true', 'false', 'present', and 'absent'. Default: 'present'.
|
587
|
-
|
588
|
-
#####`file`
|
589
|
-
|
590
|
-
Specifies the configuration file to manage. Valid options: a string containing a fully-qualified path. Default: '$CATALINA_BASE/conf/tomcat-users.xml'.
|
591
|
-
|
592
|
-
#####`manage_file`
|
593
|
-
|
594
|
-
Specifies whether to create the specified configuration file if it doesn't exist. Uses Puppet's native [`file` resource type](https://docs.puppetlabs.com/references/latest/type.html#file) with default parameters. Valid options: 'true' and 'false'. Default: 'true'.
|
595
|
-
|
596
|
-
#####`password`
|
597
|
-
|
598
|
-
Specifies a password for user elements. Valid options: a string. Default: undef.
|
599
|
-
|
600
|
-
#####`roles`
|
601
|
-
|
602
|
-
Specifies one or more roles. Only valid if `element` is set to 'role'. Valid options: an array of strings. Default: [].
|
603
|
-
|
604
|
-
####tomcat::config::server::valve
|
605
|
-
|
606
|
-
#####`additional_attributes`
|
607
|
-
|
608
|
-
Specifies any further attributes to add to the Valve. Valid options: a hash of '< attribute >' => '< value >' pairs. Default: {}.
|
609
|
-
|
610
|
-
#####`attributes_to_remove`
|
611
|
-
|
612
|
-
Specifies any attributes to remove from the Valve. Valid options: a hash of '< attribute >' => '< value >' pairs. Default: [].
|
613
|
-
|
614
|
-
#####`catalina_base`
|
615
|
-
|
616
|
-
Specifies the base directory of the Tomcat installation. Valid options: a string containing an absolute path. Default: $::tomcat::catalina_home.
|
617
|
-
|
618
|
-
#####`class_name`
|
619
|
-
|
620
|
-
Specifies the Java class name of a server implementation to use. Maps to the [className XML attribute](http://tomcat.apache.org/tomcat-8.0-doc/config/valve.html#Access_Logging/Attributes). Valid options: a string containing a Java class name. Default: the '[name]' passed in your define.
|
621
|
-
|
622
|
-
#####`parent_host`
|
623
|
-
|
624
|
-
Specifies which virtual host the Valve should nest under. Valid options: a string containing the name of a Host element. Default: If you don't specify a host, the Valve element nests under the Engine of your specified parent Service.
|
625
|
-
|
626
|
-
#####`parent_service`
|
627
|
-
|
628
|
-
Specifies which Service element the Valve should nest under. Valid options: a string containing the name of a Service element. Default: 'Catalina'.
|
629
|
-
|
630
|
-
#####`server_config`
|
631
|
-
|
632
|
-
Specifies a server.xml file to manage. Valid options: a string containing an absolute path. Default: '${catalina_base}/config/server.xml'.
|
633
|
-
|
634
|
-
#####`valve_ensure`
|
635
|
-
|
636
|
-
Specifies whether the Valve should exist in the configuration file. Maps to the [Valve XML element](http://tomcat.apache.org/tomcat-8.0-doc/config/valve.html#Introduction). Valid options: 'true', 'false', 'present', and 'absent'. Default: 'present'.
|
637
|
-
|
638
|
-
####tomcat::instance
|
639
|
-
|
640
|
-
#####`catalina_base`
|
641
|
-
|
642
|
-
Specifies the base directory of the Tomcat installation. Only affects the instance installation if `install_from_source` is set to 'true'. Valid options: a string containing an absolute path. Default: $::tomcat::catalina_home.
|
643
|
-
|
644
|
-
#####`catalina_home`
|
645
|
-
|
646
|
-
Specifies the root directory of the Tomcat installation. Only affects the instance installation if `install_from_source` is set to 'true'. Valid options: a string containing an absolute path. Default: $::tomcat::catalina_home.
|
647
|
-
|
648
|
-
#####`install_from_source`
|
649
|
-
|
650
|
-
Specifies whether to install from source. If set to 'false', installation is driven by the `package_ensure` and `package_name` parameters. Valid options: 'true' and 'false'. Default: 'true'.
|
651
|
-
|
652
|
-
#####`package_ensure`
|
653
|
-
|
654
|
-
Determines whether the specified package should be installed. Only valid if `install_from_source` is set to 'false'. Maps to the `ensure` parameter of Puppet's native [`package` resource type](https://docs.puppetlabs.com/references/latest/type.html#package). Valid options: 'true', 'false', 'present', and 'absent'. Default: 'present'.
|
655
|
-
|
656
|
-
#####`package_name`
|
657
|
-
|
658
|
-
*Required if `install_from_source` is set to 'false'.* Specifies the package to install. Valid options: a string containing a valid package name.
|
659
|
-
|
660
|
-
#####`source_strip_first_dir`
|
661
|
-
|
662
|
-
Specifies whether to strip the topmost directory of the tarball when unpacking it. Only valid if `install_from_source` is set to 'true'. Valid options: 'true' and 'false'. Default: 'true'.
|
663
|
-
|
664
|
-
#####`source_url`
|
665
|
-
|
666
|
-
*Required if `install_from_source` is set to 'true'.* Specifies the source URL to install from. Valid options: a string containing a `puppet://`, `http(s)://`, or `ftp://` URL.
|
667
|
-
|
668
|
-
####tomcat::service
|
669
|
-
|
670
|
-
#####`catalina_base`
|
671
|
-
|
672
|
-
Specifies the base directory of the Tomcat installation. Valid options: a string containing an absolute path. Default: $::tomcat::catalina_home.
|
673
|
-
|
674
|
-
#####`catalina_home`
|
675
|
-
|
676
|
-
Specifies the root directory of the Tomcat installation. Valid options: a string containing an absolute path. Default: $::tomcat::catalina_home.
|
677
|
-
|
678
|
-
#####`java_home`
|
679
|
-
|
680
|
-
Specifies where Java is installed. Only applies if `use_jsvc` is set to 'true'. Valid options: a string containing an absolute path. Default: undef. Note: if you don't specify a home path in this parameter, Puppet does not pass the `-home` switch to Tomcat. That can cause problems on some systems, so we recommend including this parameter.
|
681
|
-
|
682
|
-
#####`service_enable`
|
683
|
-
|
684
|
-
Specifies whether to enable the Tomcat service at boot. Only valid if `use_init` is set to 'true'. Valid options: 'true' and 'false'. Default: 'true', if `use_init` is set to 'true' and `service_ensure` is set to 'running' or 'true'.
|
685
|
-
|
686
|
-
#####`service_ensure`
|
687
|
-
|
688
|
-
Specifies whether the Tomcat service should be running. Maps to the `ensure` parameter of Puppet's native [`service` resource type](https://docs.puppetlabs.com/references/latest/type.html#service). Valid options: 'running', 'stopped', 'true', and 'false'. Default: 'present'.
|
689
|
-
|
690
|
-
#####`service_name`
|
691
|
-
|
692
|
-
*Required if `use_init` is set to 'true'.* Specifies the name of the Tomcat service. Valid options: a string.
|
693
|
-
|
694
|
-
#####`start_command`
|
695
|
-
|
696
|
-
Designates a command to start the service. Valid options: a string. Default: determined by the values of `use_init` and `use_jsvc`.
|
697
|
-
|
698
|
-
#####`stop_command`
|
699
|
-
|
700
|
-
Designates a command to stop the service. Valid options: a string. Default: determined by the values of `use_init` and `use_jsvc`.
|
701
|
-
|
702
|
-
#####`use_init`
|
703
|
-
|
704
|
-
Specifies whether to use a package-provided init script for service management. Note that the tomcat module does not supply an init script. If both `use_jsvc` and `use_init` are set to 'false', tomcat uses the following commands for service management:
|
705
|
-
|
706
|
-
* `$CATALINA_BASE/bin/catalina.sh start`
|
707
|
-
* `$CATALINA_BASE/bin/catalina.sh stop`
|
708
|
-
|
709
|
-
Valid options: 'true' and 'false'. Default: 'false'.
|
710
|
-
|
711
|
-
#####`use_jsvc`
|
712
|
-
|
713
|
-
Specifies whether to use Jsvc for service management. If both `use_jsvc` and `use_init` are set to 'false', tomcat uses the following commands for service management:
|
714
|
-
|
715
|
-
* `$CATALINA_BASE/bin/catalina.sh start`
|
716
|
-
* `$CATALINA_BASE/bin/catalina.sh stop`
|
717
|
-
|
718
|
-
Valid options: 'true' and 'false'. Default: 'false'.
|
719
|
-
|
720
|
-
####tomcat::setenv::entry
|
721
|
-
|
722
|
-
#####`base_path`
|
723
|
-
|
724
|
-
**Deprecated.** Please use `config_file` instead.
|
725
|
-
|
726
|
-
#####`config_file`
|
727
|
-
|
728
|
-
Specifies the configuration file to edit. Valid options: a string containing an absolute path. Default: $'::tomcat::catalina_home/bin/setenv.sh'.
|
729
|
-
|
730
|
-
#####`ensure`
|
731
|
-
|
732
|
-
Determines whether the fragment should exist in the configuration file. Valid options: 'present', 'absent'. Default: 'present'.
|
733
|
-
|
734
|
-
#####`order`
|
735
|
-
|
736
|
-
Determines the ordering of your parameters in the configuration file (parameters with lower `order` values appear first.) Valid options: an integer or a string containing an integer. Default: '10'.
|
737
|
-
|
738
|
-
#####`param`
|
739
|
-
|
740
|
-
Specifies a parameter to manage. Valid options: a string. Default: the '[name]' passed in your define.
|
741
|
-
|
742
|
-
#####`quote_char`
|
743
|
-
|
744
|
-
Specifies a character to include before and after the specified value. Valid options: a string (usually a single or double quote). Default: (blank).
|
745
|
-
|
746
|
-
#####`value`
|
747
|
-
|
748
|
-
*Required.* Provides the value(s) of the managed parameter. Valid options: a string or an array. If passing an array, separate values with a single space.
|
749
|
-
|
750
|
-
####tomcat::war
|
751
|
-
|
752
|
-
#####`app_base`
|
753
|
-
|
754
|
-
Specifies where to deploy the WAR. Cannot be used in combination with `deployment_path`. Valid options: a string containing a path relative to $CATALINA_BASE. Default: If you don't specify an `app_base`, Puppet deploys the WAR to your specified `deployment_path`. If you don't specify that either, the WAR deploys to '${catalina_base}/webapps'.
|
755
|
-
|
756
|
-
#####`catalina_base`
|
757
|
-
|
758
|
-
Specifies the base directory of the Tomcat installation. Valid options: a string containing an absolute path. Default: $::tomcat::catalina_home.
|
759
|
-
|
760
|
-
#####`deployment_path`
|
761
|
-
|
762
|
-
Specifies where to deploy the WAR. Cannot be used in combination with `app_base`. Valid options: a string containing an absolute path. Default: If you don't specify a `deployment_path`, Puppet deploys the WAR to your specified `app_base`. If you don't specify that either, the WAR deploys to '${catalina_base}/webapps'.
|
763
|
-
|
764
|
-
#####`war_ensure`
|
765
|
-
|
766
|
-
Specifies whether the WAR should exist. Valid options: 'true', 'false', 'present', and 'absent'. Default: 'present'.
|
767
|
-
|
768
|
-
#####`war_name`
|
769
|
-
|
770
|
-
Specifies the name of the WAR. Valid options: a string containing a filename that ends in '.war'. Default: the '[name]' passed in your define.
|
771
|
-
|
772
|
-
#####`war_purge`
|
773
|
-
|
774
|
-
Specifies whether to purge the exploded WAR directory. Only applicable when `war_ensure` is set to 'absent' or 'false'.
|
775
|
-
|
776
|
-
**Note:** Setting this parameter to 'false' does not prevent Tomcat from removing the exploded WAR directory if Tomcat is running and autoDeploy is set to 'true'. Valid options: 'true' and 'false'. Default: 'true'.
|
777
|
-
|
778
|
-
#####`war_source`
|
779
|
-
|
780
|
-
*Required unless `war_ensure` is set to 'false' or 'absent'.* Specifies the source to deploy the WAR from. Valid options: a string containing a `puppet://`, `http(s)://`, or `ftp://` URL.
|
781
|
-
|
782
|
-
##Limitations
|
783
|
-
|
784
|
-
This module only supports Tomcat installations on \*nix systems. The `tomcat::config::server*` defines require Augeas version 1.0.0 or newer.
|
785
|
-
|
786
|
-
###Multiple Instances
|
787
|
-
|
788
|
-
Some Tomcat packages do not let you install more than one instance. You can avoid this limitation by installing Tomcat from source.
|
789
|
-
|
790
|
-
##Development
|
791
|
-
|
792
|
-
Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can't access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.
|
793
|
-
|
794
|
-
We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.
|
795
|
-
|
796
|
-
For more information, see our [module contribution guide.](https://docs.puppetlabs.com/forge/contributing.html)
|
797
|
-
|
798
|
-
###Contributors
|
799
|
-
|
800
|
-
To see who's already involved, see the [list of contributors.](https://github.com/puppetlabs/puppetlabs-tomcat/graphs/contributors)
|
801
|
-
|
802
|
-
###Running tests
|
803
|
-
|
804
|
-
This project contains tests for both [rspec-puppet](http://rspec-puppet.com/) and [beaker-rspec](https://github.com/puppetlabs/beaker-rspec) to verify functionality. For in-depth information, please see their respective documentation.
|
805
|
-
|
806
|
-
Quickstart:
|
807
|
-
|
808
|
-
gem install bundler
|
809
|
-
bundle install
|
810
|
-
bundle exec rake spec
|
811
|
-
bundle exec rspec spec/acceptance
|
812
|
-
RS_DEBUG=yes bundle exec rspec spec/acceptance
|