puppet_forge 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/.gitignore +22 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.txt +13 -0
  4. data/README.md +172 -0
  5. data/Rakefile +2 -0
  6. data/lib/her/lazy_accessors.rb +140 -0
  7. data/lib/her/lazy_relations.rb +86 -0
  8. data/lib/puppet_forge.rb +19 -0
  9. data/lib/puppet_forge/middleware/json_for_her.rb +37 -0
  10. data/lib/puppet_forge/v3.rb +10 -0
  11. data/lib/puppet_forge/v3/base.rb +98 -0
  12. data/lib/puppet_forge/v3/base/paginated_collection.rb +73 -0
  13. data/lib/puppet_forge/v3/module.rb +15 -0
  14. data/lib/puppet_forge/v3/release.rb +35 -0
  15. data/lib/puppet_forge/v3/user.rb +21 -0
  16. data/lib/puppet_forge/version.rb +3 -0
  17. data/puppet_forge.gemspec +31 -0
  18. data/spec/fixtures/v3/files/puppetlabs-apache-0.0.1.tar.gz.headers +14 -0
  19. data/spec/fixtures/v3/files/puppetlabs-apache-0.0.1.tar.gz.json +0 -0
  20. data/spec/fixtures/v3/modules.headers +14 -0
  21. data/spec/fixtures/v3/modules.json +4197 -0
  22. data/spec/fixtures/v3/modules/puppetlabs-apache.headers +14 -0
  23. data/spec/fixtures/v3/modules/puppetlabs-apache.json +390 -0
  24. data/spec/fixtures/v3/modules?owner=puppetlabs.headers +14 -0
  25. data/spec/fixtures/v3/modules?owner=puppetlabs.json +4179 -0
  26. data/spec/fixtures/v3/modules?query=apache.headers +14 -0
  27. data/spec/fixtures/v3/modules?query=apache.json +3151 -0
  28. data/spec/fixtures/v3/releases.headers +14 -0
  29. data/spec/fixtures/v3/releases.json +3072 -0
  30. data/spec/fixtures/v3/releases/puppetlabs-apache-0.0.1.headers +14 -0
  31. data/spec/fixtures/v3/releases/puppetlabs-apache-0.0.1.json +93 -0
  32. data/spec/fixtures/v3/releases/puppetlabs-apache-0.0.2.headers +14 -0
  33. data/spec/fixtures/v3/releases/puppetlabs-apache-0.0.2.json +93 -0
  34. data/spec/fixtures/v3/releases/puppetlabs-apache-0.0.3.headers +14 -0
  35. data/spec/fixtures/v3/releases/puppetlabs-apache-0.0.3.json +93 -0
  36. data/spec/fixtures/v3/releases/puppetlabs-apache-0.0.4.headers +14 -0
  37. data/spec/fixtures/v3/releases/puppetlabs-apache-0.0.4.json +126 -0
  38. data/spec/fixtures/v3/releases/puppetlabs-apache-0.1.1.headers +14 -0
  39. data/spec/fixtures/v3/releases/puppetlabs-apache-0.1.1.json +140 -0
  40. data/spec/fixtures/v3/releases?module=puppetlabs-apache.headers +14 -0
  41. data/spec/fixtures/v3/releases?module=puppetlabs-apache.json +3287 -0
  42. data/spec/fixtures/v3/users/puppetlabs.headers +14 -0
  43. data/spec/fixtures/v3/users/puppetlabs.json +10 -0
  44. data/spec/spec_helper.rb +60 -0
  45. data/spec/unit/forge/v3/base/paginated_collection_spec.rb +88 -0
  46. data/spec/unit/forge/v3/module_spec.rb +118 -0
  47. data/spec/unit/forge/v3/release_spec.rb +112 -0
  48. data/spec/unit/forge/v3/user_spec.rb +50 -0
  49. data/spec/unit/her/lazy_accessors_spec.rb +142 -0
  50. data/spec/unit/her/lazy_relations_spec.rb +309 -0
  51. metadata +261 -0
@@ -0,0 +1,14 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx
3
+ Date: Mon, 06 Jan 2014 22:42:07 GMT
4
+ Content-Type: application/json;charset=utf-8
5
+ Content-Length: 510801
6
+ Connection: keep-alive
7
+ Status: 200 OK
8
+ X-Frame-Options: sameorigin
9
+ X-XSS-Protection: 1; mode=block
10
+ Cache-Control: public, must-revalidate
11
+ Last-Modified: Mon, 06 Jan 2014 21:27:38 GMT
12
+ X-Node: forgeapi03
13
+ X-Revision: 49f66e061b0021c081fb58e754898cd928f61494
14
+
@@ -0,0 +1,3072 @@
1
+ {
2
+ "pagination": {
3
+ "limit": 20,
4
+ "offset": 0,
5
+ "first": "/v3/releases?limit=20&offset=0",
6
+ "previous": null,
7
+ "current": "/v3/releases?limit=20&offset=0",
8
+ "next": "/v3/releases?limit=20&offset=20",
9
+ "total": 5744
10
+ },
11
+ "results": [
12
+ {
13
+ "uri": "/v3/releases/puppetlabs-stdlib-4.1.0",
14
+ "module": {
15
+ "uri": "/v3/modules/puppetlabs-stdlib",
16
+ "name": "stdlib",
17
+ "owner": {
18
+ "uri": "/v3/users/puppetlabs",
19
+ "username": "puppetlabs",
20
+ "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
21
+ }
22
+ },
23
+ "version": "4.1.0",
24
+ "metadata": {
25
+ "types": [
26
+ {
27
+ "doc": " A simple resource type intended to be used as an anchor in a composite class.\n\n In Puppet 2.6, when a class declares another class, the resources in the\n interior class are not contained by the exterior class. This interacts badly\n with the pattern of composing complex modules from smaller classes, as it\n makes it impossible for end users to specify order relationships between the\n exterior class and other modules.\n\n The anchor type lets you work around this. By sandwiching any interior\n classes between two no-op resources that _are_ contained by the exterior\n class, you can ensure that all resources in the module are contained.\n\n class ntp {\n # These classes will have the correct order relationship with each\n # other. However, without anchors, they won't have any order\n # relationship to Class['ntp'].\n class { 'ntp::package': }\n -> class { 'ntp::config': }\n -> class { 'ntp::service': }\n\n # These two resources \"anchor\" the composed classes within the ntp\n # class.\n anchor { 'ntp::begin': } -> Class['ntp::package']\n Class['ntp::service'] -> anchor { 'ntp::end': }\n }\n\n This allows the end user of the ntp module to establish require and before\n relationships with Class['ntp']:\n\n class { 'ntp': } -> class { 'mcollective': }\n class { 'mcollective': } -> class { 'ntp': }\n\n",
28
+ "parameters": [
29
+ {
30
+ "doc": "The name of the anchor resource.",
31
+ "name": "name"
32
+ }
33
+ ],
34
+ "name": "anchor",
35
+ "properties": [
36
+
37
+ ]
38
+ },
39
+ {
40
+ "doc": " Ensures that a given line is contained within a file. The implementation\n matches the full line, including whitespace at the beginning and end. If\n the line is not contained in the given file, Puppet will add the line to\n ensure the desired state. Multiple resources may be declared to manage\n multiple lines in the same file.\n\n Example:\n\n file_line { 'sudo_rule':\n path => '/etc/sudoers',\n line => '%sudo ALL=(ALL) ALL',\n }\n file_line { 'sudo_rule_nopw':\n path => '/etc/sudoers',\n line => '%sudonopw ALL=(ALL) NOPASSWD: ALL',\n }\n\n In this example, Puppet will ensure both of the specified lines are\n contained in the file /etc/sudoers.\n\n",
41
+ "providers": [
42
+ {
43
+ "doc": "",
44
+ "name": "ruby"
45
+ }
46
+ ],
47
+ "parameters": [
48
+ {
49
+ "doc": "An arbitrary name used as the identity of the resource.",
50
+ "name": "name"
51
+ },
52
+ {
53
+ "doc": "An optional regular expression to run against existing lines in the file;\\nif a match is found, we replace that line rather than adding a new line.",
54
+ "name": "match"
55
+ },
56
+ {
57
+ "doc": "The line to be appended to the file located by the path parameter.",
58
+ "name": "line"
59
+ },
60
+ {
61
+ "doc": "The file Puppet will ensure contains the line specified by the line parameter.",
62
+ "name": "path"
63
+ }
64
+ ],
65
+ "name": "file_line",
66
+ "properties": [
67
+ {
68
+ "doc": "The basic property that the resource should be in. Valid values are `present`, `absent`.",
69
+ "name": "ensure"
70
+ }
71
+ ]
72
+ }
73
+ ],
74
+ "license": "Apache 2.0",
75
+ "checksums": {
76
+ "spec/unit/puppet/parser/functions/uriescape_spec.rb": "8d9e15156d93fe29bfe91a2e83352ff4",
77
+ "Gemfile": "a7144ac8fdb2255ed7badb6b54f6c342",
78
+ "spec/unit/facter/root_home_spec.rb": "4f4c4236ac2368d2e27fd2f3eb606a19",
79
+ "spec/unit/puppet/parser/functions/size_spec.rb": "d126b696b21a8cd754d58f78ddba6f06",
80
+ "spec/unit/puppet/parser/functions/shuffle_spec.rb": "2141a54d2fb3cf725b88184d639677f4",
81
+ "spec/unit/puppet/parser/functions/validate_re_spec.rb": "b21292ad2f30c0d43ab2f0c2df0ba7d5",
82
+ "lib/puppet/parser/functions/flatten.rb": "25777b76f9719162a8bab640e5595b7a",
83
+ "lib/puppet/parser/functions/ensure_packages.rb": "ca852b2441ca44b91a984094de4e3afc",
84
+ "lib/puppet/parser/functions/validate_augeas.rb": "d4acca7b8a9fdada9ae39e5101902cc1",
85
+ "spec/unit/puppet/parser/functions/unique_spec.rb": "2df8b3b2edb9503943cb4dcb4a371867",
86
+ "tests/has_ip_network.pp": "abc05686797a776ea8c054657e6f7456",
87
+ "spec/fixtures/manifests/site.pp": "d41d8cd98f00b204e9800998ecf8427e",
88
+ "lib/puppet/parser/functions/defined_with_params.rb": "ffab4433d03f32b551f2ea024a2948fc",
89
+ "lib/puppet/parser/functions/size.rb": "8972d48c0f9e487d659bd7326b40b642",
90
+ "lib/puppet/parser/functions/has_ip_address.rb": "ee207f47906455a5aa49c4fb219dd325",
91
+ "lib/facter/util/puppet_settings.rb": "9f1d2593d0ae56bfca89d4b9266aeee1",
92
+ "spec/unit/puppet/parser/functions/any2array_spec.rb": "167e114cfa222de971bf8be141766b6a",
93
+ "spec/unit/facter/pe_required_facts_spec.rb": "0ec83db2a004a0d7f6395b34939c53b9",
94
+ "spec/unit/puppet/parser/functions/bool2num_spec.rb": "67c3055d5d4e4c9fbcaca82038a09081",
95
+ "lib/facter/root_home.rb": "f559294cceafcf70799339627d94871d",
96
+ "lib/puppet/parser/functions/loadyaml.rb": "2b912f257aa078e376d3b3f6a86c2a00",
97
+ "spec/unit/puppet/parser/functions/is_float_spec.rb": "171fc0e382d9856c2d8db2b70c9ec9cd",
98
+ "lib/puppet/type/anchor.rb": "bbd36bb49c3b554f8602d8d3df366c0c",
99
+ "lib/puppet/parser/functions/getparam.rb": "4dd7a0e35f4a3780dcfc9b19b4e0006e",
100
+ "lib/facter/facter_dot_d.rb": "b35b8b59ec579901444f984127f0b833",
101
+ "lib/puppet/parser/functions/strftime.rb": "e02e01a598ca5d7d6eee0ba22440304a",
102
+ "lib/puppet/parser/functions/max.rb": "f652fd0b46ef7d2fbdb42b141f8fdd1d",
103
+ "spec/spec_helper.rb": "4449b0cafd8f7b2fb440c0cdb0a1f2b3",
104
+ "lib/puppet/parser/functions/merge.rb": "52281fe881b762e2adfef20f58dc4180",
105
+ "lib/puppet/parser/functions/validate_slength.rb": "0ca530d1d3b45c3fe2d604c69acfc22f",
106
+ "spec/unit/puppet/parser/functions/suffix_spec.rb": "c3eed8e40066f2ad56264405c4192f2e",
107
+ "spec/unit/puppet/parser/functions/validate_bool_spec.rb": "32a580f280ba62bf17ccd30460d357bd",
108
+ "spec/unit/puppet/parser/functions/str2bool_spec.rb": "60e3eaea48b0f6efccc97010df7d912c",
109
+ "lib/puppet/parser/functions/reject.rb": "689f6a7c961a55fe9dcd240921f4c7f9",
110
+ "lib/puppet/parser/functions/delete.rb": "9b17b9f7f820adf02360147c1a2f4279",
111
+ "lib/puppet/parser/functions/strip.rb": "273d547c7b05c0598556464dfd12f5fd",
112
+ "lib/puppet/parser/functions/values.rb": "066a6e4170e5034edb9a80463dff2bb5",
113
+ "LICENSE": "38a048b9d82e713d4e1b2573e370a756",
114
+ "lib/puppet/parser/functions/is_array.rb": "875ca4356cb0d7a10606fb146b4a3d11",
115
+ "spec/unit/puppet/parser/functions/strip_spec.rb": "a01796bebbdabd3fad12b0662ea5966e",
116
+ "lib/puppet/parser/functions/swapcase.rb": "4902f38f0b9292afec66d40fee4b02ec",
117
+ "lib/puppet/parser/functions/has_ip_network.rb": "b4d726c8b2a0afac81ced8a3a28aa731",
118
+ "spec/unit/puppet/parser/functions/validate_array_spec.rb": "bcd231229554785c4270ca92ef99cb60",
119
+ "lib/puppet/parser/functions/validate_re.rb": "c6664b3943bc820415a43f16372dc2a9",
120
+ "lib/puppet/parser/functions/time.rb": "08d88d52abd1e230e3a2f82107545d48",
121
+ "lib/puppet/parser/functions/is_numeric.rb": "0a9bcc49e8f57af81bdfbb7e7c3a575c",
122
+ "spec/unit/puppet/parser/functions/merge_spec.rb": "a63c0bc2f812e27fbef570d834ef61ce",
123
+ "lib/puppet/parser/functions/count.rb": "9eb74eccd93e2b3c87fd5ea14e329eba",
124
+ "spec/unit/puppet/parser/functions/values_at_spec.rb": "de45fd8abbc4c037c3c4fac2dcf186f9",
125
+ "spec/monkey_patches/publicize_methods.rb": "ce2c98f38b683138c5ac649344a39276",
126
+ "spec/unit/puppet/parser/functions/is_hash_spec.rb": "408e121a5e30c4c5c4a0a383beb6e209",
127
+ "lib/puppet/parser/functions/chop.rb": "4691a56e6064b792ed4575e4ad3f3d20",
128
+ "spec/unit/puppet/parser/functions/validate_cmd_spec.rb": "538db08292a0ecc4cd902a14aaa55d74",
129
+ "spec/unit/puppet/parser/functions/is_integer_spec.rb": "a302cf1de5ccb494ca9614d2fc2b53c5",
130
+ "spec/functions/ensure_resource_spec.rb": "3423a445e13efc7663a71c6641d49d07",
131
+ "spec/unit/puppet/parser/functions/keys_spec.rb": "35cc2ed490dc68da6464f245dfebd617",
132
+ "manifests/init.pp": "f2ba5f36e7227ed87bbb69034fc0de8b",
133
+ "lib/puppet/parser/functions/dirname.rb": "bef7214eb89db3eb8f7ee5fc9dca0233",
134
+ "lib/puppet/parser/functions/validate_hash.rb": "e9cfaca68751524efe16ecf2f958a9a0",
135
+ "lib/puppet/parser/functions/join_keys_to_values.rb": "f29da49531228f6ca5b3aa0df00a14c2",
136
+ "spec/unit/puppet/parser/functions/delete_spec.rb": "0d84186ea618523b4b2a4ca0b5a09c9e",
137
+ "lib/puppet/parser/functions/validate_string.rb": "6afcbc51f83f0714348b8d61e06ea7eb",
138
+ "spec/unit/puppet/parser/functions/rstrip_spec.rb": "a408e933753c9c323a05d7079d32cbb3",
139
+ "spec/unit/puppet/parser/functions/fqdn_rotate_spec.rb": "c67b71737bee9936f5261d41a37bad46",
140
+ "spec/unit/puppet/parser/functions/concat_spec.rb": "c21aaa84609f92290d5ffb2ce8ea4bf5",
141
+ "lib/puppet/parser/functions/unique.rb": "217ccce6d23235af92923f50f8556963",
142
+ "CHANGELOG": "344383410cb78409f0c59ecf38e8c21a",
143
+ "lib/puppet/parser/functions/member.rb": "541e67d06bc4155e79b00843a125e9bc",
144
+ "spec/unit/puppet/parser/functions/validate_string_spec.rb": "64a4f681084cba55775a070f7fab5e0c",
145
+ "lib/facter/puppet_vardir.rb": "c7ddc97e8a84ded3dd93baa5b9b3283d",
146
+ "lib/puppet/parser/functions/pick.rb": "2bede116a0651405c47e650bbf942abe",
147
+ "spec/unit/puppet/parser/functions/parseyaml_spec.rb": "65dfed872930ffe0d21954c15daaf498",
148
+ "lib/puppet/parser/functions/delete_at.rb": "6bc24b79390d463d8be95396c963381a",
149
+ "lib/puppet/parser/functions/zip.rb": "a80782461ed9465f0cd0c010936f1855",
150
+ "tests/file_line.pp": "67727539aa7b7dd76f06626fe734f7f7",
151
+ "lib/puppet/parser/functions/ensure_resource.rb": "3f68b8e17a16bfd01455cd73f8e324ba",
152
+ "lib/puppet/parser/functions/num2bool.rb": "605c12fa518c87ed2c66ae153e0686ce",
153
+ "spec/unit/puppet/parser/functions/grep_spec.rb": "78179537496a7150469e591a95e255d8",
154
+ "lib/puppet/parser/functions/keys.rb": "eb6ac815ea14fbf423580ed903ef7bad",
155
+ "spec/unit/puppet/parser/functions/num2bool_spec.rb": "8cd5b46b7c8e612dfae3362e3a68a5f9",
156
+ "lib/puppet/parser/functions/parsejson.rb": "e7f968c34928107b84cd0860daf50ab1",
157
+ "lib/puppet/parser/functions/is_mac_address.rb": "288bd4b38d4df42a83681f13e7eaaee0",
158
+ "lib/puppet/parser/functions/join.rb": "b28087823456ca5cf943de4a233ac77f",
159
+ "spec/unit/puppet/parser/functions/type_spec.rb": "422f2c33458fe9b0cc9614d16f7573ba",
160
+ "lib/puppet/parser/functions/downcase.rb": "9204a04c2a168375a38d502db8811bbe",
161
+ "spec/unit/puppet/parser/functions/validate_augeas_spec.rb": "1d5bcfbf97dc56b45734248a14358d4f",
162
+ "spec/unit/puppet/parser/functions/has_ip_address_spec.rb": "f53c7baeaf024ff577447f6c28c0f3a7",
163
+ "lib/puppet/parser/functions/is_function_available.rb": "88c63869cb5df3402bc9756a8d40c16d",
164
+ "lib/puppet/parser/functions/prefix.rb": "21fd6a2c1ee8370964346b3bfe829d2b",
165
+ "spec/watchr.rb": "b588ddf9ef1c19ab97aa892cc776da73",
166
+ "spec/unit/puppet/parser/functions/has_key_spec.rb": "3e4e730d98bbdfb88438b6e08e45868e",
167
+ "lib/puppet/parser/functions/values_at.rb": "094ac110ce9f7a5b16d0c80a0cf2243c",
168
+ "lib/puppet/parser/functions/fqdn_rotate.rb": "20743a138c56fc806a35cb7b60137dbc",
169
+ "lib/puppet/parser/functions/rstrip.rb": "8a0d69876bdbc88a2054ba41c9c38961",
170
+ "spec/unit/puppet/parser/functions/validate_slength_spec.rb": "a1b4d805149dc0143e9a57e43e1f84bf",
171
+ "spec/functions/ensure_packages_spec.rb": "935b4aec5ab36bdd0458c1a9b2a93ad5",
172
+ "lib/puppet/parser/functions/suffix.rb": "109279db4180441e75545dbd5f273298",
173
+ "lib/puppet/parser/functions/str2saltedsha512.rb": "49afad7b386be38ce53deaefef326e85",
174
+ "spec/unit/puppet/parser/functions/count_spec.rb": "db98ef89752a7112425f0aade10108e0",
175
+ "lib/puppet/parser/functions/hash.rb": "9d072527dfc7354b69292e9302906530",
176
+ "manifests/stages.pp": "cc6ed1751d334b0ea278c0335c7f0b5a",
177
+ "spec/unit/puppet/parser/functions/is_ip_address_spec.rb": "6040a9bae4e5c853966148b634501157",
178
+ "spec/unit/facter/pe_version_spec.rb": "ef031cca838f36f99b1dab3259df96a5",
179
+ "spec/unit/puppet/parser/functions/get_module_path_spec.rb": "b7ea196f548b1a9a745ab6671295ab27",
180
+ "lib/puppet/parser/functions/is_integer.rb": "a50ebc15c30bffd759e4a6f8ec6a0cf3",
181
+ "lib/puppet/parser/functions/reverse.rb": "1386371c0f5301055fdf99079e862b3e",
182
+ "spec/unit/puppet/parser/functions/has_interface_with_spec.rb": "7c16d731c518b434c81b8cb2227cc916",
183
+ "README_SPECS.markdown": "82bb4c6abbb711f40778b162ec0070c1",
184
+ "spec/unit/puppet/parser/functions/is_domain_name_spec.rb": "8eed3a9eb9334bf6a473ad4e2cabc2ec",
185
+ "spec/unit/puppet/parser/functions/join_spec.rb": "c3b50c39390a86b493511be2c6722235",
186
+ "lib/puppet/parser/functions/chomp.rb": "719d46923d75251f7b6b68b6e015cccc",
187
+ "lib/puppet/parser/functions/is_string.rb": "2bd9a652bbb2668323eee6c57729ff64",
188
+ "spec/unit/puppet/parser/functions/is_array_spec.rb": "8c020af9c360abdbbf1ba887bb26babe",
189
+ "Modulefile": "351bba73290cd526ca7bacd4c7d250dc",
190
+ "spec/unit/puppet/parser/functions/reject_spec.rb": "8e16c9f064870e958b6278261e480954",
191
+ "spec/unit/puppet/type/file_line_spec.rb": "d9f4e08e8b98e565a07f1b995593fa89",
192
+ "spec/unit/puppet/parser/functions/lstrip_spec.rb": "1fc2c2d80b5f724a358c3cfeeaae6249",
193
+ "lib/puppet/parser/functions/type.rb": "62f914d6c90662aaae40c5539701be60",
194
+ "lib/puppet/parser/functions/shuffle.rb": "6445e6b4dc62c37b184a60eeaf34414b",
195
+ "lib/puppet/parser/functions/has_key.rb": "7cd9728c38f0b0065f832dabd62b0e7e",
196
+ "lib/puppet/parser/functions/concat.rb": "f28a09811ff4d19bb5e7a540e767d65c",
197
+ "spec/unit/puppet/parser/functions/capitalize_spec.rb": "82a4209a033fc88c624f708c12e64e2a",
198
+ "tests/init.pp": "1d98070412c76824e66db4b7eb74d433",
199
+ "lib/puppet/provider/file_line/ruby.rb": "a445a57f9b884037320ea37307dbc92b",
200
+ "tests/has_ip_address.pp": "93ce02915f67ddfb43a049b2b84ef391",
201
+ "spec/unit/puppet/parser/functions/min_spec.rb": "bf80bf58261117bb24392670b624a611",
202
+ "lib/puppet/parser/functions/to_bytes.rb": "83f23c33adbfa42b2a9d9fc2db3daeb4",
203
+ "lib/puppet/parser/functions/sort.rb": "504b033b438461ca4f9764feeb017833",
204
+ "lib/puppet/parser/functions/capitalize.rb": "14481fc8c7c83fe002066ebcf6722f17",
205
+ "lib/puppet/type/file_line.rb": "3e8222cb58f3503b3ea7de3647c602a0",
206
+ "lib/puppet/parser/functions/has_interface_with.rb": "8d3ebca805dc6edb88b6b7a13d404787",
207
+ "spec/functions/getparam_spec.rb": "122f37cf9ec7489f1dae10db39c871b5",
208
+ "Rakefile": "f37e6131fe7de9a49b09d31596f5fbf1",
209
+ "spec/unit/puppet/parser/functions/downcase_spec.rb": "b0197829512f2e92a2d2b06ce8e2226f",
210
+ "spec/unit/puppet/parser/functions/max_spec.rb": "5562bccc643443af7e4fa7c9d1e52b8b",
211
+ "lib/puppet/parser/functions/validate_absolute_path.rb": "385137ac24a2dec6cecc4e6ea75be442",
212
+ "spec/unit/puppet/parser/functions/getvar_spec.rb": "842bf88d47077a9ae64097b6e39c3364",
213
+ "spec/unit/puppet/parser/functions/sort_spec.rb": "7039cd230a94e95d9d1de2e1094acae2",
214
+ "spec/unit/puppet/parser/functions/strftime_spec.rb": "bf140883ecf3254277306fa5b25f0344",
215
+ "spec/unit/puppet/parser/functions/is_mac_address_spec.rb": "644cd498b426ff2f9ea9cbc5d8e141d7",
216
+ "spec/unit/puppet/parser/functions/empty_spec.rb": "028c30267d648a172d8a81a9262c3abe",
217
+ "lib/puppet/parser/functions/is_domain_name.rb": "fba9f855df3bbf90d72dfd5201f65d2b",
218
+ "lib/puppet/parser/functions/get_module_path.rb": "d4bf50da25c0b98d26b75354fa1bcc45",
219
+ "spec/unit/puppet/provider/file_line/ruby_spec.rb": "e8cd7432739cb212d40a9148523bd4d7",
220
+ "spec/unit/puppet/parser/functions/reverse_spec.rb": "48169990e59081ccbd112b6703418ce4",
221
+ "spec/unit/puppet/parser/functions/str2saltedsha512_spec.rb": "1de174be8835ba6fef86b590887bb2cc",
222
+ "spec/unit/puppet/parser/functions/prefix_spec.rb": "16a95b321d76e773812693c80edfbe36",
223
+ "spec/spec.opts": "a600ded995d948e393fbe2320ba8e51c",
224
+ "spec/monkey_patches/alias_should_to_must.rb": "7cd4065c63f06f1ab3aaa1c5f92af947",
225
+ "lib/puppet/parser/functions/uriescape.rb": "9ebc34f1b2f319626512b8cd7cde604c",
226
+ "lib/puppet/parser/functions/floor.rb": "c5a960e9714810ebb99198ff81a11a3b",
227
+ "lib/puppet/parser/functions/empty.rb": "ae92905c9d94ddca30bf56b7b1dabedf",
228
+ "spec/unit/puppet/parser/functions/range_spec.rb": "91d69115dea43f62a2dca9a10467d836",
229
+ "tests/has_interface_with.pp": "59c98b4af0d39fc11d1ef4c7a6dc8f7a",
230
+ "spec/unit/puppet/parser/functions/is_function_available.rb": "069ef7490eba66424cab75444f36828a",
231
+ "README_DEVELOPER.markdown": "220a8b28521b5c5d2ea87c4ddb511165",
232
+ "spec/unit/puppet/parser/functions/flatten_spec.rb": "583c9a70f93e492cfb22ffa1811f6aa0",
233
+ "lib/puppet/parser/functions/upcase.rb": "a5744a74577cfa136fca2835e75888d3",
234
+ "lib/puppet/parser/functions/str2bool.rb": "c822a8944747f5624b13f2da0df8db21",
235
+ "lib/puppet/parser/functions/is_hash.rb": "8c7d9a05084dab0389d1b779c8a05b1a",
236
+ "lib/puppet/parser/functions/abs.rb": "32161bd0435fdfc2aec2fc559d2b454b",
237
+ "spec/unit/puppet/parser/functions/validate_hash_spec.rb": "8529c74051ceb71e6b1b97c9cecdf625",
238
+ "spec/unit/puppet/parser/functions/member_spec.rb": "067c60985efc57022ca1c5508d74d77f",
239
+ "README.markdown": "b63097a958f22abf7999d475a6a4d32a",
240
+ "spec/unit/puppet/parser/functions/values_spec.rb": "0ac9e141ed1f612d7cc224f747b2d1d9",
241
+ "lib/puppet/parser/functions/validate_cmd.rb": "0319a15d24fd077ebabc2f79969f6ab5",
242
+ "lib/puppet/parser/functions/is_float.rb": "f1b0d333061d31bf0c25bd4c33dc134b",
243
+ "lib/puppet/parser/functions/bool2num.rb": "8e627eee990e811e35e7e838c586bd77",
244
+ "lib/puppet/parser/functions/validate_bool.rb": "4ddffdf5954b15863d18f392950b88f4",
245
+ "lib/puppet/parser/functions/grep.rb": "5682995af458b05f3b53dd794c4bf896",
246
+ "spec/unit/puppet/parser/functions/upcase_spec.rb": "813668919bc62cdd1d349dafc19fbbb3",
247
+ "spec/unit/puppet/parser/functions/parsejson_spec.rb": "37ab84381e035c31d6a3dd9bf73a3d53",
248
+ "spec/unit/puppet/parser/functions/squeeze_spec.rb": "df5b349c208a9a2a4d4b8e6d9324756f",
249
+ "spec/unit/puppet/parser/functions/validate_absolute_path_spec.rb": "07839082d24d5a7628fd5bce6c8b35c3",
250
+ "spec/unit/puppet/parser/functions/chop_spec.rb": "4e9534d25b952b261c9f46add677c390",
251
+ "lib/puppet/parser/functions/squeeze.rb": "541f85b4203b55c9931d3d6ecd5c75f8",
252
+ "lib/puppet/parser/functions/lstrip.rb": "210b103f78622e099f91cc2956b6f741",
253
+ "spec/unit/puppet/type/anchor_spec.rb": "a5478a72a7fab2d215f39982a9230c18",
254
+ "lib/facter/pe_version.rb": "4a9353952963b011759f3e6652a10da5",
255
+ "spec/unit/puppet/parser/functions/hash_spec.rb": "826337a92d8f7a189b7ac19615db0ed7",
256
+ "spec/unit/puppet/parser/functions/floor_spec.rb": "d01ef7dfe0245d7a0a73d7df13cb02e3",
257
+ "spec/unit/puppet/parser/functions/time_spec.rb": "b6d0279062779efe5153fe5cfafc5bbd",
258
+ "spec/unit/puppet/parser/functions/swapcase_spec.rb": "0660ce8807608cc8f98ad1edfa76a402",
259
+ "lib/puppet/parser/functions/validate_array.rb": "72b29289b8af1cfc3662ef9be78911b8",
260
+ "lib/puppet/parser/functions/is_ip_address.rb": "a714a736c1560e8739aaacd9030cca00",
261
+ "lib/puppet/parser/functions/getvar.rb": "10bf744212947bc6a7bfd2c9836dbd23",
262
+ "RELEASE_PROCESS.markdown": "94b92bc99ac4106ba1a74d5c04e520f9",
263
+ "spec/classes/anchor_spec.rb": "695d65275c3ac310d7fa23b91f8bbb4a",
264
+ "lib/puppet/parser/functions/any2array.rb": "a81e71d6b67a551d38770ba9a1948a75",
265
+ "spec/functions/defined_with_params_spec.rb": "3bdfac38e3d6f06140ff2e926f4ebed2",
266
+ "spec/unit/puppet/parser/functions/pick_spec.rb": "aba6247d3925e373272fca6768fd5403",
267
+ "spec/unit/puppet/parser/functions/to_bytes_spec.rb": "80aaf68cf7e938e46b5278c1907af6be",
268
+ "spec/unit/puppet/parser/functions/is_string_spec.rb": "5c015d8267de852da3a12b984e077092",
269
+ "spec/unit/puppet/parser/functions/abs_spec.rb": "0a5864a29a8e9e99acc483268bd5917c",
270
+ "spec/unit/facter/util/puppet_settings_spec.rb": "345bcbef720458e25be0190b7638e4d9",
271
+ "spec/unit/puppet/parser/functions/zip_spec.rb": "06a86e4e70d2aea63812582aae1d26c4",
272
+ "spec/unit/puppet/parser/functions/dirname_spec.rb": "1d7cf70468c2cfa6dacfc75935322395",
273
+ "spec/unit/puppet/parser/functions/delete_at_spec.rb": "5a4287356b5bd36a6e4c100421215b8e",
274
+ "spec/unit/puppet/parser/functions/chomp_spec.rb": "3cd8e2fe6b12efeffad94cce5b693b7c",
275
+ "spec/unit/puppet/parser/functions/join_keys_to_values_spec.rb": "7c7937411b7fe4bb944c0c022d3a96b0",
276
+ "lib/puppet/parser/functions/range.rb": "033048bba333fe429e77e0f2e91db25f",
277
+ "lib/puppet/parser/functions/parseyaml.rb": "00f10ec1e2b050e23d80c256061ebdd7",
278
+ "spec/unit/puppet/parser/functions/is_numeric_spec.rb": "5f08148803b6088c27b211c446ad3658",
279
+ "spec/unit/puppet/parser/functions/has_ip_network_spec.rb": "885ea8a4c987b735d683b742bf846cb1",
280
+ "lib/puppet/parser/functions/min.rb": "0d2a1b7e735ab251c5469e735fa3f4c6",
281
+ "CONTRIBUTING.md": "fdddc4606dc3b6949e981e6bf50bc8e5"
282
+ },
283
+ "version": "4.1.0",
284
+ "description": "Standard Library for Puppet Modules",
285
+ "source": "git://github.com/puppetlabs/puppetlabs-stdlib.git",
286
+ "project_page": "https://github.com/puppetlabs/puppetlabs-stdlib",
287
+ "summary": "Puppet Module Standard Library",
288
+ "dependencies": [
289
+
290
+ ],
291
+ "author": "puppetlabs",
292
+ "name": "puppetlabs-stdlib"
293
+ },
294
+ "tags": [
295
+ "puppetlabs",
296
+ "library",
297
+ "stdlib",
298
+ "standard",
299
+ "stages"
300
+ ],
301
+ "file_uri": "/v3/files/puppetlabs-stdlib-4.1.0.tar.gz",
302
+ "file_size": 67586,
303
+ "file_md5": "bbf919d7ee9d278d2facf39c25578bf8",
304
+ "downloads": 628084,
305
+ "readme": "<section class=\"markdown\"><h1>Puppet Labs Standard Library</h1>\n\n<p><a href=\"https://travis-ci.org/puppetlabs/puppetlabs-stdlib\"><img src=\"https://travis-ci.org/puppetlabs/puppetlabs-stdlib.png?branch=master\" alt=\"Build Status\"></a></p>\n\n<p>This module provides a &quot;standard library&quot; of resources for developing Puppet\nModules. This modules will include the following additions to Puppet</p>\n\n<ul>\n<li>Stages</li>\n<li>Facts</li>\n<li>Functions</li>\n<li>Defined resource types</li>\n<li>Types</li>\n<li>Providers</li>\n</ul>\n\n<p>This module is officially curated and provided by Puppet Labs. The modules\nPuppet Labs writes and distributes will make heavy use of this standard\nlibrary.</p>\n\n<p>To report or research a bug with any part of this module, please go to\n<a href=\"http://projects.puppetlabs.com/projects/stdlib\">http://projects.puppetlabs.com/projects/stdlib</a></p>\n\n<h1>Versions</h1>\n\n<p>This module follows semver.org (v1.0.0) versioning guidelines. The standard\nlibrary module is released as part of <a href=\"http://puppetlabs.com/puppet/puppet-enterprise/\">Puppet\nEnterprise</a> and as a result\nolder versions of Puppet Enterprise that Puppet Labs still supports will have\nbugfix maintenance branches periodically &quot;merged up&quot; into master. The current\nlist of integration branches are:</p>\n\n<ul>\n<li>v2.1.x (v2.1.1 released in PE 1)</li>\n<li>v2.2.x (Never released as part of PE, only to the Forge)</li>\n<li>v2.3.x (Released in PE 2)</li>\n<li>v3.0.x (Never released as part of PE, only to the Forge)</li>\n<li>v4.0.x (Drops support for Puppet 2.7)</li>\n<li>master (mainline development branch)</li>\n</ul>\n\n<p>The first Puppet Enterprise version including the stdlib module is Puppet\nEnterprise 1.2.</p>\n\n<h1>Compatibility</h1>\n\n<table><thead>\n<tr>\n<th align=\"left\">Puppet Versions</th>\n<th align=\"center\">&lt; 2.6</th>\n<th align=\"center\">2.6</th>\n<th align=\"center\">2.7</th>\n<th align=\"center\">3.x</th>\n</tr>\n</thead><tbody>\n<tr>\n<td align=\"left\"><strong>stdlib 2.x</strong></td>\n<td align=\"center\">no</td>\n<td align=\"center\"><strong>yes</strong></td>\n<td align=\"center\"><strong>yes</strong></td>\n<td align=\"center\">no</td>\n</tr>\n<tr>\n<td align=\"left\"><strong>stdlib 3.x</strong></td>\n<td align=\"center\">no</td>\n<td align=\"center\">no</td>\n<td align=\"center\"><strong>yes</strong></td>\n<td align=\"center\"><strong>yes</strong></td>\n</tr>\n<tr>\n<td align=\"left\"><strong>stdlib 4.x</strong></td>\n<td align=\"center\">no</td>\n<td align=\"center\">no</td>\n<td align=\"center\">no</td>\n<td align=\"center\"><strong>yes</strong></td>\n</tr>\n</tbody></table>\n\n<p>The stdlib module does not work with Puppet versions released prior to Puppet\n2.6.0.</p>\n\n<h2>stdlib 2.x</h2>\n\n<p>All stdlib releases in the 2.0 major version support Puppet 2.6 and Puppet 2.7.</p>\n\n<h2>stdlib 3.x</h2>\n\n<p>The 3.0 major release of stdlib drops support for Puppet 2.6. Stdlib 3.x\nsupports Puppet 2 and Puppet 3.</p>\n\n<h2>stdlib 4.x</h2>\n\n<p>The 4.0 major release of stdlib drops support for Puppet 2.7. Stdlib 4.x\nsupports Puppet 3. Notably, ruby 1.8.5 is no longer supported though ruby\n1.8.7, 1.9.3, and 2.0.0 are fully supported.</p>\n\n<h1>Functions</h1>\n\n<h2>abs</h2>\n\n<p>Returns the absolute value of a number, for example -34.56 becomes\n34.56. Takes a single integer and float value as an argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>any2array</h2>\n\n<p>This converts any object to an array containing that object. Empty argument\nlists are converted to an empty array. Arrays are left untouched. Hashes are\nconverted to arrays of alternating keys and values.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>bool2num</h2>\n\n<p>Converts a boolean to a number. Converts the values:\nfalse, f, 0, n, and no to 0\ntrue, t, 1, y, and yes to 1\n Requires a single boolean or string as an input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>capitalize</h2>\n\n<p>Capitalizes the first letter of a string or array of strings.\nRequires either a single string or an array as an input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>chomp</h2>\n\n<p>Removes the record separator from the end of a string or an array of\nstrings, for example <code>hello\\n</code> becomes <code>hello</code>.\nRequires a single string or array as an input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>chop</h2>\n\n<p>Returns a new string with the last character removed. If the string ends\nwith <code>\\r\\n</code>, both characters are removed. Applying chop to an empty\nstring returns an empty string. If you wish to merely remove record\nseparators then you should use the <code>chomp</code> function.\nRequires a string or array of strings as input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>concat</h2>\n\n<p>Appends the contents of array 2 onto array 1.</p>\n\n<p><em>Example:</em></p>\n\n<pre><code>concat([&#39;1&#39;,&#39;2&#39;,&#39;3&#39;],[&#39;4&#39;,&#39;5&#39;,&#39;6&#39;])\n</code></pre>\n\n<p>Would result in:</p>\n\n<p>[&#39;1&#39;,&#39;2&#39;,&#39;3&#39;,&#39;4&#39;,&#39;5&#39;,&#39;6&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>count</h2>\n\n<p>Takes an array as first argument and an optional second argument.\nCount the number of elements in array that matches second argument.\nIf called with only an array it counts the number of elements that are not nil/undef.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>defined_with_params</h2>\n\n<p>Takes a resource reference and an optional hash of attributes.</p>\n\n<p>Returns true if a resource with the specified attributes has already been added\nto the catalog, and false otherwise.</p>\n\n<pre><code>user { &#39;dan&#39;:\n ensure =&gt; present,\n}\n\nif ! defined_with_params(User[dan], {&#39;ensure&#39; =&gt; &#39;present&#39; }) {\n user { &#39;dan&#39;: ensure =&gt; present, }\n}\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>delete</h2>\n\n<p>Deletes all instances of a given element from an array, substring from a\nstring, or key from a hash.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>delete([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;,&#39;b&#39;], &#39;b&#39;)\nWould return: [&#39;a&#39;,&#39;c&#39;]\n\ndelete({&#39;a&#39;=&gt;1,&#39;b&#39;=&gt;2,&#39;c&#39;=&gt;3}, &#39;b&#39;)\nWould return: {&#39;a&#39;=&gt;1,&#39;c&#39;=&gt;3}\n\ndelete(&#39;abracadabra&#39;, &#39;bra&#39;)\nWould return: &#39;acada&#39;\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>delete_at</h2>\n\n<p>Deletes a determined indexed value from an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>delete_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], 1)\n</code></pre>\n\n<p>Would return: [&#39;a&#39;,&#39;c&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>dirname</h2>\n\n<p>Returns the <code>dirname</code> of a path.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>dirname(&#39;/path/to/a/file.ext&#39;)\n</code></pre>\n\n<p>Would return: &#39;/path/to/a&#39;</p>\n\n<h2>downcase</h2>\n\n<p>Converts the case of a string or all strings in an array to lower case.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>empty</h2>\n\n<p>Returns true if the variable is empty.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>ensure_packages</h2>\n\n<p>Takes a list of packages and only installs them if they don&#39;t already exist.</p>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>ensure_resource</h2>\n\n<p>Takes a resource type, title, and a list of attributes that describe a\nresource.</p>\n\n<pre><code>user { &#39;dan&#39;:\n ensure =&gt; present,\n}\n</code></pre>\n\n<p>This example only creates the resource if it does not already exist:</p>\n\n<pre><code>ensure_resource(&#39;user, &#39;dan&#39;, {&#39;ensure&#39; =&gt; &#39;present&#39; })\n</code></pre>\n\n<p>If the resource already exists but does not match the specified parameters,\nthis function will attempt to recreate the resource leading to a duplicate\nresource definition error.</p>\n\n<p>An array of resources can also be passed in and each will be created with\nthe type and parameters specified if it doesn&#39;t already exist.</p>\n\n<pre><code>ensure_resource(&#39;user&#39;, [&#39;dan&#39;,&#39;alex&#39;], {&#39;ensure&#39; =&gt; &#39;present&#39;})\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>flatten</h2>\n\n<p>This function flattens any deeply nested arrays and returns a single flat array\nas a result.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>flatten([&#39;a&#39;, [&#39;b&#39;, [&#39;c&#39;]]])\n</code></pre>\n\n<p>Would return: [&#39;a&#39;,&#39;b&#39;,&#39;c&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>floor</h2>\n\n<p>Returns the largest integer less or equal to the argument.\nTakes a single numeric value as an argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>fqdn_rotate</h2>\n\n<p>Rotates an array a random number of times based on a nodes fqdn.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>get_module_path</h2>\n\n<p>Returns the absolute path of the specified module for the current\nenvironment.</p>\n\n<p>Example:\n $module_path = get_module_path(&#39;stdlib&#39;)</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>getparam</h2>\n\n<p>Takes a resource reference and name of the parameter and\nreturns value of resource&#39;s parameter.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>define example_resource($param) {\n}\n\nexample_resource { &quot;example_resource_instance&quot;:\n param =&gt; &quot;param_value&quot;\n}\n\ngetparam(Example_resource[&quot;example_resource_instance&quot;], &quot;param&quot;)\n</code></pre>\n\n<p>Would return: param_value</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>getvar</h2>\n\n<p>Lookup a variable in a remote namespace.</p>\n\n<p>For example:</p>\n\n<pre><code>$foo = getvar(&#39;site::data::foo&#39;)\n# Equivalent to $foo = $site::data::foo\n</code></pre>\n\n<p>This is useful if the namespace itself is stored in a string:</p>\n\n<pre><code>$datalocation = &#39;site::data&#39;\n$bar = getvar(&quot;${datalocation}::bar&quot;)\n# Equivalent to $bar = $site::data::bar\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>grep</h2>\n\n<p>This function searches through an array and returns any elements that match\nthe provided regular expression.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>grep([&#39;aaa&#39;,&#39;bbb&#39;,&#39;ccc&#39;,&#39;aaaddd&#39;], &#39;aaa&#39;)\n</code></pre>\n\n<p>Would return:</p>\n\n<pre><code>[&#39;aaa&#39;,&#39;aaaddd&#39;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>has_interface_with</h2>\n\n<p>Returns boolean based on kind and value:</p>\n\n<ul>\n<li>macaddress</li>\n<li>netmask</li>\n<li>ipaddress</li>\n<li>network</li>\n</ul>\n\n<p>has_interface_with(&quot;macaddress&quot;, &quot;x:x:x:x:x:x&quot;)\nhas_interface_with(&quot;ipaddress&quot;, &quot;127.0.0.1&quot;) =&gt; true\netc.</p>\n\n<p>If no &quot;kind&quot; is given, then the presence of the interface is checked:\nhas_interface_with(&quot;lo&quot;) =&gt; true</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>has_ip_address</h2>\n\n<p>Returns true if the client has the requested IP address on some interface.</p>\n\n<p>This function iterates through the &#39;interfaces&#39; fact and checks the\n&#39;ipaddress_IFACE&#39; facts, performing a simple string comparison.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>has_ip_network</h2>\n\n<p>Returns true if the client has an IP address within the requested network.</p>\n\n<p>This function iterates through the &#39;interfaces&#39; fact and checks the\n&#39;network_IFACE&#39; facts, performing a simple string comparision.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>has_key</h2>\n\n<p>Determine if a hash has a certain key value.</p>\n\n<p>Example:</p>\n\n<pre><code>$my_hash = {&#39;key_one&#39; =&gt; &#39;value_one&#39;}\nif has_key($my_hash, &#39;key_two&#39;) {\n notice(&#39;we will not reach here&#39;)\n}\nif has_key($my_hash, &#39;key_one&#39;) {\n notice(&#39;this will be printed&#39;)\n}\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>hash</h2>\n\n<p>This function converts an array into a hash.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>hash([&#39;a&#39;,1,&#39;b&#39;,2,&#39;c&#39;,3])\n</code></pre>\n\n<p>Would return: {&#39;a&#39;=&gt;1,&#39;b&#39;=&gt;2,&#39;c&#39;=&gt;3}</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_array</h2>\n\n<p>Returns true if the variable passed to this function is an array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_domain_name</h2>\n\n<p>Returns true if the string passed to this function is a syntactically correct domain name.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_float</h2>\n\n<p>Returns true if the variable passed to this function is a float.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_function_available</h2>\n\n<p>This function accepts a string as an argument, determines whether the\nPuppet runtime has access to a function by that name. It returns a\ntrue if the function exists, false if not.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_hash</h2>\n\n<p>Returns true if the variable passed to this function is a hash.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_integer</h2>\n\n<p>Returns true if the variable returned to this string is an integer.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_ip_address</h2>\n\n<p>Returns true if the string passed to this function is a valid IP address.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_mac_address</h2>\n\n<p>Returns true if the string passed to this function is a valid mac address.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_numeric</h2>\n\n<p>Returns true if the variable passed to this function is a number.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_string</h2>\n\n<p>Returns true if the variable passed to this function is a string.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>join</h2>\n\n<p>This function joins an array into a string using a seperator.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>join([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], &quot;,&quot;)\n</code></pre>\n\n<p>Would result in: &quot;a,b,c&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>join_keys_to_values</h2>\n\n<p>This function joins each key of a hash to that key&#39;s corresponding value with a\nseparator. Keys and values are cast to strings. The return value is an array in\nwhich each element is one joined key/value pair.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>join_keys_to_values({&#39;a&#39;=&gt;1,&#39;b&#39;=&gt;2}, &quot; is &quot;)\n</code></pre>\n\n<p>Would result in: [&quot;a is 1&quot;,&quot;b is 2&quot;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>keys</h2>\n\n<p>Returns the keys of a hash as an array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>loadyaml</h2>\n\n<p>Load a YAML file containing an array, string, or hash, and return the data\nin the corresponding native data type.</p>\n\n<p>For example:</p>\n\n<pre><code>$myhash = loadyaml(&#39;/etc/puppet/data/myhash.yaml&#39;)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>lstrip</h2>\n\n<p>Strips leading spaces to the left of a string.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>max</h2>\n\n<p>Returns the highest value of all arguments.\nRequires at least one argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>member</h2>\n\n<p>This function determines if a variable is a member of an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>member([&#39;a&#39;,&#39;b&#39;], &#39;b&#39;)\n</code></pre>\n\n<p>Would return: true</p>\n\n<pre><code>member([&#39;a&#39;,&#39;b&#39;], &#39;c&#39;)\n</code></pre>\n\n<p>Would return: false</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>merge</h2>\n\n<p>Merges two or more hashes together and returns the resulting hash.</p>\n\n<p>For example:</p>\n\n<pre><code>$hash1 = {&#39;one&#39; =&gt; 1, &#39;two&#39;, =&gt; 2}\n$hash2 = {&#39;two&#39; =&gt; &#39;dos&#39;, &#39;three&#39;, =&gt; &#39;tres&#39;}\n$merged_hash = merge($hash1, $hash2)\n# The resulting hash is equivalent to:\n# $merged_hash = {&#39;one&#39; =&gt; 1, &#39;two&#39; =&gt; &#39;dos&#39;, &#39;three&#39; =&gt; &#39;tres&#39;}\n</code></pre>\n\n<p>When there is a duplicate key, the key in the rightmost hash will &quot;win.&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>min</h2>\n\n<p>Returns the lowest value of all arguments.\nRequires at least one argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>num2bool</h2>\n\n<p>This function converts a number or a string representation of a number into a\ntrue boolean. Zero or anything non-numeric becomes false. Numbers higher then 0\nbecome true.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>parsejson</h2>\n\n<p>This function accepts JSON as a string and converts into the correct Puppet\nstructure.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>parseyaml</h2>\n\n<p>This function accepts YAML as a string and converts it into the correct\nPuppet structure.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>pick</h2>\n\n<p>This function is similar to a coalesce function in SQL in that it will return\nthe first value in a list of values that is not undefined or an empty string\n(two things in Puppet that will return a boolean false value). Typically,\nthis function is used to check for a value in the Puppet Dashboard/Enterprise\nConsole, and failover to a default value like the following:</p>\n\n<pre><code>$real_jenkins_version = pick($::jenkins_version, &#39;1.449&#39;)\n</code></pre>\n\n<p>The value of $real_jenkins_version will first look for a top-scope variable\ncalled &#39;jenkins_version&#39; (note that parameters set in the Puppet Dashboard/\nEnterprise Console are brought into Puppet as top-scope variables), and,\nfailing that, will use a default value of 1.449.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>prefix</h2>\n\n<p>This function applies a prefix to all elements in an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>prefix([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], &#39;p&#39;)\n</code></pre>\n\n<p>Will return: [&#39;pa&#39;,&#39;pb&#39;,&#39;pc&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>range</h2>\n\n<p>When given range in the form of (start, stop) it will extrapolate a range as\nan array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>range(&quot;0&quot;, &quot;9&quot;)\n</code></pre>\n\n<p>Will return: [0,1,2,3,4,5,6,7,8,9]</p>\n\n<pre><code>range(&quot;00&quot;, &quot;09&quot;)\n</code></pre>\n\n<p>Will return: <a href=\"Zero%20padded%20strings%20are%20converted%20to%0Aintegers%20automatically\">0,1,2,3,4,5,6,7,8,9</a></p>\n\n<pre><code>range(&quot;a&quot;, &quot;c&quot;)\n</code></pre>\n\n<p>Will return: [&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]</p>\n\n<pre><code>range(&quot;host01&quot;, &quot;host10&quot;)\n</code></pre>\n\n<p>Will return: [&quot;host01&quot;, &quot;host02&quot;, ..., &quot;host09&quot;, &quot;host10&quot;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>reject</h2>\n\n<p>This function searches through an array and rejects all elements that match\nthe provided regular expression.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>reject([&#39;aaa&#39;,&#39;bbb&#39;,&#39;ccc&#39;,&#39;aaaddd&#39;], &#39;aaa&#39;)\n</code></pre>\n\n<p>Would return:</p>\n\n<pre><code>[&#39;bbb&#39;,&#39;ccc&#39;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>reverse</h2>\n\n<p>Reverses the order of a string or array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>rstrip</h2>\n\n<p>Strips leading spaces to the right of the string.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>shuffle</h2>\n\n<p>Randomizes the order of a string or array elements.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>size</h2>\n\n<p>Returns the number of elements in a string or array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>sort</h2>\n\n<p>Sorts strings and arrays lexically.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>squeeze</h2>\n\n<p>Returns a new string where runs of the same character that occur in this set\nare replaced by a single character.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>str2bool</h2>\n\n<p>This converts a string to a boolean. This attempt to convert strings that\ncontain things like: y, 1, t, true to &#39;true&#39; and strings that contain things\nlike: 0, f, n, false, no to &#39;false&#39;.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>str2saltedsha512</h2>\n\n<p>This converts a string to a salted-SHA512 password hash (which is used for\nOS X versions &gt;= 10.7). Given any simple string, you will get a hex version\nof a salted-SHA512 password hash that can be inserted into your Puppet\nmanifests as a valid password attribute.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>strftime</h2>\n\n<p>This function returns formatted time.</p>\n\n<p><em>Examples:</em></p>\n\n<p>To return the time since epoch:</p>\n\n<pre><code>strftime(&quot;%s&quot;)\n</code></pre>\n\n<p>To return the date:</p>\n\n<pre><code>strftime(&quot;%Y-%m-%d&quot;)\n</code></pre>\n\n<p><em>Format meaning:</em></p>\n\n<pre><code>%a - The abbreviated weekday name (``Sun&#39;&#39;)\n%A - The full weekday name (``Sunday&#39;&#39;)\n%b - The abbreviated month name (``Jan&#39;&#39;)\n%B - The full month name (``January&#39;&#39;)\n%c - The preferred local date and time representation\n%C - Century (20 in 2009)\n%d - Day of the month (01..31)\n%D - Date (%m/%d/%y)\n%e - Day of the month, blank-padded ( 1..31)\n%F - Equivalent to %Y-%m-%d (the ISO 8601 date format)\n%h - Equivalent to %b\n%H - Hour of the day, 24-hour clock (00..23)\n%I - Hour of the day, 12-hour clock (01..12)\n%j - Day of the year (001..366)\n%k - hour, 24-hour clock, blank-padded ( 0..23)\n%l - hour, 12-hour clock, blank-padded ( 0..12)\n%L - Millisecond of the second (000..999)\n%m - Month of the year (01..12)\n%M - Minute of the hour (00..59)\n%n - Newline (\n</code></pre>\n\n<p>)\n %N - Fractional seconds digits, default is 9 digits (nanosecond)\n %3N millisecond (3 digits)\n %6N microsecond (6 digits)\n %9N nanosecond (9 digits)\n %p - Meridian indicator (<code>AM&#39;&#39; or</code>PM&#39;&#39;)\n %P - Meridian indicator (<code>am&#39;&#39; or</code>pm&#39;&#39;)\n %r - time, 12-hour (same as %I:%M:%S %p)\n %R - time, 24-hour (%H:%M)\n %s - Number of seconds since 1970-01-01 00:00:00 UTC.\n %S - Second of the minute (00..60)\n %t - Tab character ( )\n %T - time, 24-hour (%H:%M:%S)\n %u - Day of the week as a decimal, Monday being 1. (1..7)\n %U - Week number of the current year,\n starting with the first Sunday as the first\n day of the first week (00..53)\n %v - VMS date (%e-%b-%Y)\n %V - Week number of year according to ISO 8601 (01..53)\n %W - Week number of the current year,\n starting with the first Monday as the first\n day of the first week (00..53)\n %w - Day of the week (Sunday is 0, 0..6)\n %x - Preferred representation for the date alone, no time\n %X - Preferred representation for the time alone, no date\n %y - Year without a century (00..99)\n %Y - Year with century\n %z - Time zone as hour offset from UTC (e.g. +0900)\n %Z - Time zone name\n %% - Literal ``%&#39;&#39; character</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>strip</h2>\n\n<p>This function removes leading and trailing whitespace from a string or from\nevery string inside an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>strip(&quot; aaa &quot;)\n</code></pre>\n\n<p>Would result in: &quot;aaa&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>suffix</h2>\n\n<p>This function applies a suffix to all elements in an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>suffix([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], &#39;p&#39;)\n</code></pre>\n\n<p>Will return: [&#39;ap&#39;,&#39;bp&#39;,&#39;cp&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>swapcase</h2>\n\n<p>This function will swap the existing case of a string.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>swapcase(&quot;aBcD&quot;)\n</code></pre>\n\n<p>Would result in: &quot;AbCd&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>time</h2>\n\n<p>This function will return the current time since epoch as an integer.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>time()\n</code></pre>\n\n<p>Will return something like: 1311972653</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>to_bytes</h2>\n\n<p>Converts the argument into bytes, for example 4 kB becomes 4096.\nTakes a single string value as an argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>type</h2>\n\n<p>Returns the type when passed a variable. Type can be one of:</p>\n\n<ul>\n<li>string</li>\n<li>array</li>\n<li>hash</li>\n<li>float</li>\n<li>integer</li>\n<li><p>boolean</p></li>\n<li><p><em>Type</em>: rvalue</p></li>\n</ul>\n\n<h2>unique</h2>\n\n<p>This function will remove duplicates from strings and arrays.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>unique(&quot;aabbcc&quot;)\n</code></pre>\n\n<p>Will return:</p>\n\n<pre><code>abc\n</code></pre>\n\n<p>You can also use this with arrays:</p>\n\n<pre><code>unique([&quot;a&quot;,&quot;a&quot;,&quot;b&quot;,&quot;b&quot;,&quot;c&quot;,&quot;c&quot;])\n</code></pre>\n\n<p>This returns:</p>\n\n<pre><code>[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>upcase</h2>\n\n<p>Converts a string or an array of strings to uppercase.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>upcase(&quot;abcd&quot;)\n</code></pre>\n\n<p>Will return:</p>\n\n<pre><code>ASDF\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>uriescape</h2>\n\n<p>Urlencodes a string or array of strings.\nRequires either a single string or an array as an input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>validate_absolute_path</h2>\n\n<p>Validate the string represents an absolute path in the filesystem. This function works\nfor windows and unix style paths.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_path = &quot;C:/Program Files (x86)/Puppet Labs/Puppet&quot;\nvalidate_absolute_path($my_path)\n$my_path2 = &quot;/var/lib/puppet&quot;\nvalidate_absolute_path($my_path2)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_absolute_path(true)\nvalidate_absolute_path([ &#39;var/lib/puppet&#39;, &#39;/var/foo&#39; ])\nvalidate_absolute_path([ &#39;/var/lib/puppet&#39;, &#39;var/foo&#39; ])\n$undefined = undef\nvalidate_absolute_path($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_array</h2>\n\n<p>Validate that all passed values are array data structures. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_array = [ &#39;one&#39;, &#39;two&#39; ]\nvalidate_array($my_array)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_array(true)\nvalidate_array(&#39;some_string&#39;)\n$undefined = undef\nvalidate_array($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_augeas</h2>\n\n<p>Perform validation of a string using an Augeas lens\nThe first argument of this function should be a string to\ntest, and the second argument should be the name of the Augeas lens to use.\nIf Augeas fails to parse the string with the lens, the compilation will\nabort with a parse error.</p>\n\n<p>A third argument can be specified, listing paths which should\nnot be found in the file. The <code>$file</code> variable points to the location\nof the temporary file being tested in the Augeas tree.</p>\n\n<p>For example, if you want to make sure your passwd content never contains\na user <code>foo</code>, you could write:</p>\n\n<pre><code>validate_augeas($passwdcontent, &#39;Passwd.lns&#39;, [&#39;$file/foo&#39;])\n</code></pre>\n\n<p>Or if you wanted to ensure that no users used the &#39;/bin/barsh&#39; shell,\nyou could use:</p>\n\n<pre><code>validate_augeas($passwdcontent, &#39;Passwd.lns&#39;, [&#39;$file/*[shell=&quot;/bin/barsh&quot;]&#39;]\n</code></pre>\n\n<p>If a fourth argument is specified, this will be the error message raised and\nseen by the user.</p>\n\n<p>A helpful error message can be returned like this:</p>\n\n<pre><code>validate_augeas($sudoerscontent, &#39;Sudoers.lns&#39;, [], &#39;Failed to validate sudoers content with Augeas&#39;)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_bool</h2>\n\n<p>Validate that all passed values are either true or false. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$iamtrue = true\nvalidate_bool(true)\nvalidate_bool(true, true, false, $iamtrue)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>$some_array = [ true ]\nvalidate_bool(&quot;false&quot;)\nvalidate_bool(&quot;true&quot;)\nvalidate_bool($some_array)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_cmd</h2>\n\n<p>Perform validation of a string with an external command.\nThe first argument of this function should be a string to\ntest, and the second argument should be a path to a test command\ntaking a file as last argument. If the command, launched against\na tempfile containing the passed string, returns a non-null value,\ncompilation will abort with a parse error.</p>\n\n<p>If a third argument is specified, this will be the error message raised and\nseen by the user.</p>\n\n<p>A helpful error message can be returned like this:</p>\n\n<p>Example:</p>\n\n<pre><code>validate_cmd($sudoerscontent, &#39;/usr/sbin/visudo -c -f&#39;, &#39;Visudo failed to validate sudoers content&#39;)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_hash</h2>\n\n<p>Validate that all passed values are hash data structures. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_hash = { &#39;one&#39; =&gt; &#39;two&#39; }\nvalidate_hash($my_hash)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_hash(true)\nvalidate_hash(&#39;some_string&#39;)\n$undefined = undef\nvalidate_hash($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_re</h2>\n\n<p>Perform simple validation of a string against one or more regular\nexpressions. The first argument of this function should be a string to\ntest, and the second argument should be a stringified regular expression\n(without the // delimiters) or an array of regular expressions. If none\nof the regular expressions match the string passed in, compilation will\nabort with a parse error.</p>\n\n<p>If a third argument is specified, this will be the error message raised and\nseen by the user.</p>\n\n<p>The following strings will validate against the regular expressions:</p>\n\n<pre><code>validate_re(&#39;one&#39;, &#39;^one$&#39;)\nvalidate_re(&#39;one&#39;, [ &#39;^one&#39;, &#39;^two&#39; ])\n</code></pre>\n\n<p>The following strings will fail to validate, causing compilation to abort:</p>\n\n<pre><code>validate_re(&#39;one&#39;, [ &#39;^two&#39;, &#39;^three&#39; ])\n</code></pre>\n\n<p>A helpful error message can be returned like this:</p>\n\n<pre><code>validate_re($::puppetversion, &#39;^2.7&#39;, &#39;The $puppetversion fact value does not match 2.7&#39;)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_slength</h2>\n\n<p>Validate that the first argument is a string (or an array of strings), and\nless/equal to than the length of the second argument. It fails if the first\nargument is not a string or array of strings, and if arg 2 is not convertable\nto a number.</p>\n\n<p>The following values will pass:</p>\n\n<p>validate_slength(&quot;discombobulate&quot;,17)\n validate_slength([&quot;discombobulate&quot;,&quot;moo&quot;],17)</p>\n\n<p>The following valueis will not:</p>\n\n<p>validate_slength(&quot;discombobulate&quot;,1)\n validate_slength([&quot;discombobulate&quot;,&quot;thermometer&quot;],5)</p>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_string</h2>\n\n<p>Validate that all passed values are string data structures. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_string = &quot;one two&quot;\nvalidate_string($my_string, &#39;three&#39;)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_string(true)\nvalidate_string([ &#39;some&#39;, &#39;array&#39; ])\n$undefined = undef\nvalidate_string($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>values</h2>\n\n<p>When given a hash this function will return the values of that hash.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>$hash = {\n &#39;a&#39; =&gt; 1,\n &#39;b&#39; =&gt; 2,\n &#39;c&#39; =&gt; 3,\n}\nvalues($hash)\n</code></pre>\n\n<p>This example would return:</p>\n\n<pre><code>[1,2,3]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>values_at</h2>\n\n<p>Finds value inside an array based on location.</p>\n\n<p>The first argument is the array you want to analyze, and the second element can\nbe a combination of:</p>\n\n<ul>\n<li>A single numeric index</li>\n<li>A range in the form of &#39;start-stop&#39; (eg. 4-9)</li>\n<li>An array combining the above</li>\n</ul>\n\n<p><em>Examples</em>:</p>\n\n<pre><code>values_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], 2)\n</code></pre>\n\n<p>Would return [&#39;c&#39;].</p>\n\n<pre><code>values_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], [&quot;0-1&quot;])\n</code></pre>\n\n<p>Would return [&#39;a&#39;,&#39;b&#39;].</p>\n\n<pre><code>values_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;,&#39;d&#39;,&#39;e&#39;], [0, &quot;2-3&quot;])\n</code></pre>\n\n<p>Would return [&#39;a&#39;,&#39;c&#39;,&#39;d&#39;].</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>zip</h2>\n\n<p>Takes one element from first array and merges corresponding elements from second array. This generates a sequence of n-element arrays, where n is one more than the count of arguments.</p>\n\n<p><em>Example:</em></p>\n\n<pre><code>zip([&#39;1&#39;,&#39;2&#39;,&#39;3&#39;],[&#39;4&#39;,&#39;5&#39;,&#39;6&#39;])\n</code></pre>\n\n<p>Would result in:</p>\n\n<pre><code>[&quot;1&quot;, &quot;4&quot;], [&quot;2&quot;, &quot;5&quot;], [&quot;3&quot;, &quot;6&quot;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<p><em>This page autogenerated on 2013-04-11 13:54:25 -0700</em></p>\n</section>",
306
+ "changelog": "<section class=\"plaintext\"><pre>2013-05-06 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.1.0\n * (#20582) Restore facter_dot_d to stdlib for PE users (3b887c8)\n * (maint) Update Gemfile with GEM_FACTER_VERSION (f44d535)\n\n2013-05-06 - Alex Cline &lt;acline@us.ibm.com&gt; - 4.1.0\n * Terser method of string to array conversion courtesy of ethooz. (d38bce0)\n\n2013-05-06 - Alex Cline &lt;acline@us.ibm.com&gt; 4.1.0\n * Refactor ensure_resource expectations (b33cc24)\n\n2013-05-06 - Alex Cline &lt;acline@us.ibm.com&gt; 4.1.0\n * Changed str-to-array conversion and removed abbreviation. (de253db)\n\n2013-05-03 - Alex Cline &lt;acline@us.ibm.com&gt; 4.1.0\n * (#20548) Allow an array of resource titles to be passed into the ensure_resource function (e08734a)\n\n2013-05-02 - Raphaël Pinson &lt;raphael.pinson@camptocamp.com&gt; - 4.1.0\n * Add a dirname function (2ba9e47)\n\n2013-04-29 - Mark Smith-Guerrero &lt;msmithgu@gmail.com&gt; - 4.1.0\n * (maint) Fix a small typo in hash() description (928036a)\n\n2013-04-12 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.2\n * Update user information in gemspec to make the intent of the Gem clear.\n\n2013-04-11 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.1\n * Fix README function documentation (ab3e30c)\n\n2013-04-11 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * stdlib 4.0 drops support with Puppet 2.7\n * stdlib 4.0 preserves support with Puppet 3\n\n2013-04-11 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * Add ability to use puppet from git via bundler (9c5805f)\n\n2013-04-10 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * (maint) Make stdlib usable as a Ruby GEM (e81a45e)\n\n2013-04-10 - Erik Dalén &lt;dalen@spotify.com&gt; - 4.0.0\n * Add a count function (f28550e)\n\n2013-03-31 - Amos Shapira &lt;ashapira@atlassian.com&gt; - 4.0.0\n * (#19998) Implement any2array (7a2fb80)\n\n2013-03-29 - Steve Huff &lt;shuff@vecna.org&gt; - 4.0.0\n * (19864) num2bool match fix (8d217f0)\n\n2013-03-20 - Erik Dalén &lt;dalen@spotify.com&gt; - 4.0.0\n * Allow comparisons of Numeric and number as String (ff5dd5d)\n\n2013-03-26 - Richard Soderberg &lt;rsoderberg@mozilla.com&gt; - 4.0.0\n * add suffix function to accompany the prefix function (88a93ac)\n\n2013-03-19 - Kristof Willaert &lt;kristof.willaert@gmail.com&gt; - 4.0.0\n * Add floor function implementation and unit tests (0527341)\n\n2012-04-03 - Eric Shamow &lt;eric@puppetlabs.com&gt; - 4.0.0\n * (#13610) Add is_function_available to stdlib (961dcab)\n\n2012-12-17 - Justin Lambert &lt;jlambert@eml.cc&gt; - 4.0.0\n * str2bool should return a boolean if called with a boolean (5d5a4d4)\n\n2012-10-23 - Uwe Stuehler &lt;ustuehler@team.mobile.de&gt; - 4.0.0\n * Fix number of arguments check in flatten() (e80207b)\n\n2013-03-11 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * Add contributing document (96e19d0)\n\n2013-03-04 - Raphaël Pinson &lt;raphael.pinson@camptocamp.com&gt; - 4.0.0\n * Add missing documentation for validate_augeas and validate_cmd to README.markdown (a1510a1)\n\n2013-02-14 - Joshua Hoblitt &lt;jhoblitt@cpan.org&gt; - 4.0.0\n * (#19272) Add has_element() function (95cf3fe)\n\n2013-02-07 - Raphaël Pinson &lt;raphael.pinson@camptocamp.com&gt; - 4.0.0\n * validate_cmd(): Use Puppet::Util::Execution.execute when available (69248df)\n\n2012-12-06 - Raphaël Pinson &lt;raphink@gmail.com&gt; - 4.0.0\n * Add validate_augeas function (3a97c23)\n\n2012-12-06 - Raphaël Pinson &lt;raphink@gmail.com&gt; - 4.0.0\n * Add validate_cmd function (6902cc5)\n\n2013-01-14 - David Schmitt &lt;david@dasz.at&gt; - 4.0.0\n * Add geppetto project definition (b3fc0a3)\n\n2013-01-02 - Jaka Hudoklin &lt;jakahudoklin@gmail.com&gt; - 4.0.0\n * Add getparam function to get defined resource parameters (20e0e07)\n\n2013-01-05 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * (maint) Add Travis CI Support (d082046)\n\n2012-12-04 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 4.0.0\n * Clarify that stdlib 3 supports Puppet 3 (3a6085f)\n\n2012-11-30 - Erik Dalén &lt;dalen@spotify.com&gt; - 4.0.0\n * maint: style guideline fixes (7742e5f)\n\n2012-11-09 - James Fryman &lt;james@frymanet.com&gt; - 4.0.0\n * puppet-lint cleanup (88acc52)\n\n2012-11-06 - Joe Julian &lt;me@joejulian.name&gt; - 4.0.0\n * Add function, uriescape, to URI.escape strings. Redmine #17459 (fd52b8d)\n\n2012-09-18 - Chad Metcalf &lt;chad@wibidata.com&gt; - 3.2.0\n * Add an ensure_packages function. (8a8c09e)\n\n2012-11-23 - Erik Dalén &lt;dalen@spotify.com&gt; - 3.2.0\n * (#17797) min() and max() functions (9954133)\n\n2012-05-23 - Peter Meier &lt;peter.meier@immerda.ch&gt; - 3.2.0\n * (#14670) autorequire a file_line resource&#x27;s path (dfcee63)\n\n2012-11-19 - Joshua Harlan Lifton &lt;lifton@puppetlabs.com&gt; - 3.2.0\n * Add join_keys_to_values function (ee0f2b3)\n\n2012-11-17 - Joshua Harlan Lifton &lt;lifton@puppetlabs.com&gt; - 3.2.0\n * Extend delete function for strings and hashes (7322e4d)\n\n2012-08-03 - Gary Larizza &lt;gary@puppetlabs.com&gt; - 3.2.0\n * Add the pick() function (ba6dd13)\n\n2012-03-20 - Wil Cooley &lt;wcooley@pdx.edu&gt; - 3.2.0\n * (#13974) Add predicate functions for interface facts (f819417)\n\n2012-11-06 - Joe Julian &lt;me@joejulian.name&gt; - 3.2.0\n * Add function, uriescape, to URI.escape strings. Redmine #17459 (70f4a0e)\n\n2012-10-25 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 3.1.1\n * (maint) Fix spec failures resulting from Facter API changes (97f836f)\n\n2012-10-23 - Matthaus Owens &lt;matthaus@puppetlabs.com&gt; - 3.1.0\n * Add PE facts to stdlib (cdf3b05)\n\n2012-08-16 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 3.0.1\n * Fix accidental removal of facts_dot_d.rb in 3.0.0 release\n\n2012-08-16 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 3.0.0\n * stdlib 3.0 drops support with Puppet 2.6\n * stdlib 3.0 preserves support with Puppet 2.7\n\n2012-08-07 - Dan Bode &lt;dan@puppetlabs.com&gt; - 3.0.0\n * Add function ensure_resource and defined_with_params (ba789de)\n\n2012-07-10 - Hailee Kenney &lt;hailee@puppetlabs.com&gt; - 3.0.0\n * (#2157) Remove facter_dot_d for compatibility with external facts (f92574f)\n\n2012-04-10 - Chris Price &lt;chris@puppetlabs.com&gt; - 3.0.0\n * (#13693) moving logic from local spec_helper to puppetlabs_spec_helper (85f96df)\n\n2012-10-25 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.1\n * (maint) Fix spec failures resulting from Facter API changes (97f836f)\n\n2012-10-23 - Matthaus Owens &lt;matthaus@puppetlabs.com&gt; - 2.5.0\n * Add PE facts to stdlib (cdf3b05)\n\n2012-08-15 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Explicitly load functions used by ensure_resource (9fc3063)\n\n2012-08-13 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Add better docs about duplicate resource failures (97d327a)\n\n2012-08-13 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Handle undef for parameter argument (4f8b133)\n\n2012-08-07 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Add function ensure_resource and defined_with_params (a0cb8cd)\n\n2012-08-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.0\n * Disable tests that fail on 2.6.x due to #15912 (c81496e)\n\n2012-08-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.0\n * (Maint) Fix mis-use of rvalue functions as statements (4492913)\n\n2012-08-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.0\n * Add .rspec file to repo root (88789e8)\n\n2012-06-07 - Chris Price &lt;chris@puppetlabs.com&gt; - 2.4.0\n * Add support for a &#x27;match&#x27; parameter to file_line (a06c0d8)\n\n2012-08-07 - Erik Dalén &lt;dalen@spotify.com&gt; - 2.4.0\n * (#15872) Add to_bytes function (247b69c)\n\n2012-07-19 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.4.0\n * (Maint) use PuppetlabsSpec::PuppetInternals.scope (master) (deafe88)\n\n2012-07-10 - Hailee Kenney &lt;hailee@puppetlabs.com&gt; - 2.4.0\n * (#2157) Make facts_dot_d compatible with external facts (5fb0ddc)\n\n2012-03-16 - Steve Traylen &lt;steve.traylen@cern.ch&gt; - 2.4.0\n * (#13205) Rotate array&#x2F;string randomley based on fqdn, fqdn_rotate() (fef247b)\n\n2012-05-22 - Peter Meier &lt;peter.meier@immerda.ch&gt; - 2.3.3\n * fix regression in #11017 properly (f0a62c7)\n\n2012-05-10 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.3.3\n * Fix spec tests using the new spec_helper (7d34333)\n\n2012-05-10 - Puppet Labs &lt;support@puppetlabs.com&gt; - 2.3.2\n * Make file_line default to ensure =&gt; present (1373e70)\n * Memoize file_line spec instance variables (20aacc5)\n * Fix spec tests using the new spec_helper (1ebfa5d)\n * (#13595) initialize_everything_for_tests couples modules Puppet ver (3222f35)\n * (#13439) Fix MRI 1.9 issue with spec_helper (15c5fd1)\n * (#13439) Fix test failures with Puppet 2.6.x (665610b)\n * (#13439) refactor spec helper for compatibility with both puppet 2.7 and master (82194ca)\n * (#13494) Specify the behavior of zero padded strings (61891bb)\n\n2012-03-29 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.3\n* (#11607) Add Rakefile to enable spec testing\n* (#12377) Avoid infinite loop when retrying require json\n\n2012-03-13 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.3.1\n* (#13091) Fix LoadError bug with puppet apply and puppet_vardir fact\n\n2012-03-12 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.3.0\n* Add a large number of new Puppet functions\n* Backwards compatibility preserved with 2.2.x\n\n2011-12-30 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.2.1\n* Documentation only release for the Forge\n\n2011-12-30 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.2\n* Documentation only release for PE 2.0.x\n\n2011-11-08 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.2.0\n* #10285 - Refactor json to use pson instead.\n* Maint - Add watchr autotest script\n* Maint - Make rspec tests work with Puppet 2.6.4\n* #9859 - Add root_home fact and tests\n\n2011-08-18 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.1\n* Change facts.d paths to match Facter 2.0 paths.\n* &#x2F;etc&#x2F;facter&#x2F;facts.d\n* &#x2F;etc&#x2F;puppetlabs&#x2F;facter&#x2F;facts.d\n\n2011-08-17 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.0\n* Add R.I. Pienaar&#x27;s facts.d custom facter fact\n* facts defined in &#x2F;etc&#x2F;facts.d and &#x2F;etc&#x2F;puppetlabs&#x2F;facts.d are\n automatically loaded now.\n\n2011-08-04 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.0.0\n* Rename whole_line to file_line\n* This is an API change and as such motivating a 2.0.0 release according to semver.org.\n\n2011-08-04 Puppet Labs &lt;support@puppetlabs.com&gt; - 1.1.0\n* Rename append_line to whole_line\n* This is an API change and as such motivating a 1.1.0 release.\n\n2011-08-04 Puppet Labs &lt;support@puppetlabs.com&gt; - 1.0.0\n* Initial stable release\n* Add validate_array and validate_string functions\n* Make merge() function work with Ruby 1.8.5\n* Add hash merging function\n* Add has_key function\n* Add loadyaml() function\n* Add append_line native\n\n2011-06-21 Jeff McCune &lt;jeff@puppetlabs.com&gt; - 0.1.7\n* Add validate_hash() and getvar() functions\n\n2011-06-15 Jeff McCune &lt;jeff@puppetlabs.com&gt; - 0.1.6\n* Add anchor resource type to provide containment for composite classes\n\n2011-06-03 Jeff McCune &lt;jeff@puppetlabs.com&gt; - 0.1.5\n* Add validate_bool() function to stdlib\n\n0.1.4 2011-05-26 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Move most stages after main\n\n0.1.3 2011-05-25 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Add validate_re() function\n\n0.1.2 2011-05-24 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Update to add annotated tag\n\n0.1.1 2011-05-24 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Add stdlib::stages class with a standard set of stages\n</pre></section>",
307
+ "license": "<section class=\"plaintext\"><pre>Copyright (C) 2011 Puppet Labs Inc\n\nand some parts:\n\nCopyright (C) 2011 Krzysztof Wilczynski\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
308
+ "created_at": "2013-05-13 08:31:19 -0700",
309
+ "updated_at": "2013-05-13 08:31:19 -0700",
310
+ "deleted_at": null
311
+ },
312
+ {
313
+ "uri": "/v3/releases/ripienaar-concat-0.2.0",
314
+ "module": {
315
+ "uri": "/v3/modules/ripienaar-concat",
316
+ "name": "concat",
317
+ "owner": {
318
+ "uri": "/v3/users/ripienaar",
319
+ "username": "ripienaar",
320
+ "gravatar_id": "9482a1c5a9c64c5d7296971f030165b7"
321
+ }
322
+ },
323
+ "version": "0.2.0",
324
+ "metadata": {
325
+ "license": "Apache",
326
+ "dependencies": [
327
+
328
+ ],
329
+ "source": "git://github.com/ripienaar/puppet-concat.git",
330
+ "version": "0.2.0",
331
+ "description": "Concat module",
332
+ "summary": "Concat module",
333
+ "types": [
334
+
335
+ ],
336
+ "author": "R.I.Pienaar",
337
+ "project_page": "http://github.com/ripienaar/puppet-concat",
338
+ "name": "ripienaar-concat",
339
+ "checksums": {
340
+ "spec/fixtures/manifests/site.pp": "d41d8cd98f00b204e9800998ecf8427e",
341
+ "files/concatfragments.sh": "256169ee61115a6b717b2844d2ea3128",
342
+ "spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",
343
+ "README.markdown": "f0605b99afffca3404e3a80dad951d83",
344
+ "Modulefile": "5dda7c51425f5337bb3234993a52732f",
345
+ "CHANGELOG": "543eb3beeb56b779171cff6e181a44cb",
346
+ "manifests/fragment.pp": "a34e1f60a31bb64eaed22745f70a88e7",
347
+ "lib/facter/concat_basedir.rb": "f2e991697602ffb3e80e0cc9efa37f3a",
348
+ "spec/defines/init_spec.rb": "cc8ce111b49906033dbf7837bc6b7495",
349
+ "manifests/init.pp": "7128c08a525c7bbc8bf4a721ad1c4f3e",
350
+ "manifests/setup.pp": "dc8d30bc47d447c5bde2c390fd34541c",
351
+ "Rakefile": "f37e6131fe7de9a49b09d31596f5fbf1",
352
+ "LICENSE": "f5a76685d453424cd63dde1535811cf0"
353
+ }
354
+ },
355
+ "tags": [
356
+ "fileserver",
357
+ "utilities"
358
+ ],
359
+ "file_uri": "/v3/files/ripienaar-concat-0.2.0.tar.gz",
360
+ "file_size": 9602,
361
+ "file_md5": "ec5888c7deee6e892b6ca1c8cb79006f",
362
+ "downloads": 77976,
363
+ "readme": "<section class=\"markdown\"><h1>What is it?</h1>\n\n<p>A Puppet module that can construct files from fragments.</p>\n\n<p>Please see the comments in the various .pp files for details\nas well as posts on my blog at <a href=\"http://www.devco.net/\">http://www.devco.net/</a></p>\n\n<p>Released under the Apache 2.0 licence</p>\n\n<h2>Usage:</h2>\n\n<p>If you wanted a /etc/motd file that listed all the major modules\non the machine. And that would be maintained automatically even\nif you just remove the include lines for other modules you could\nuse code like below, a sample /etc/motd would be:</p>\n\n<pre>\nPuppet modules on this server:\n\n -- Apache\n -- MySQL\n</pre>\n\n<p>Local sysadmins can also append to the file by just editing /etc/motd.local\ntheir changes will be incorporated into the puppet managed motd.</p>\n\n<pre>\n# class to setup basic motd, include on all nodes\nclass motd {\n $motd = \"/etc/motd\"\n\n concat{$motd:\n owner => root,\n group => root,\n mode => 644\n }\n\n concat::fragment{\"motd_header\":\n target => $motd,\n content => \"\\nPuppet modules on this server:\\n\\n\",\n order => 01,\n }\n\n # local users on the machine can append to motd by just creating\n # /etc/motd.local\n concat::fragment{\"motd_local\":\n target => $motd,\n ensure => \"/etc/motd.local\",\n order => 15\n }\n}\n\n# used by other modules to register themselves in the motd\ndefine motd::register($content=\"\", $order=10) {\n if $content == \"\" {\n $body = $name\n } else {\n $body = $content\n }\n\n concat::fragment{\"motd_fragment_$name\":\n target => \"/etc/motd\",\n content => \" -- $body\\n\"\n }\n}\n\n# a sample apache module\nclass apache {\n include apache::install, apache::config, apache::service\n\n motd::register{\"Apache\": }\n}\n</pre>\n\n<h2>Known Issues:</h2>\n\n<ul>\n<li>Since puppet-concat now relies on a fact for the concat directory,\nyou will need to set up pluginsync = true for at least the first run.\nYou have this issue if puppet fails to run on the client and you have\na message similar to\n&quot;err: Failed to apply catalog: Parameter path failed: File\npaths must be fully qualified, not &#39;undef&#39; at [...]/concat/manifests/setup.pp:44&quot;.</li>\n</ul>\n\n<h2>Contributors:</h2>\n\n<p><strong>Paul Elliot</strong></p>\n\n<ul>\n<li>Provided 0.24.8 support, shell warnings and empty file creation support.</li>\n</ul>\n\n<p><strong>Chad Netzer</strong></p>\n\n<ul>\n<li>Various patches to improve safety of file operations</li>\n<li>Symlink support</li>\n</ul>\n\n<p><strong>David Schmitt</strong></p>\n\n<ul>\n<li>Patch to remove hard coded paths relying on OS path</li>\n<li>Patch to use file{} to copy the resulting file to the final destination. This means Puppet client will show diffs and that hopefully we can change file ownerships now</li>\n</ul>\n\n<p><strong>Peter Meier</strong></p>\n\n<ul>\n<li>Basedir as a fact</li>\n<li>Unprivileged user support</li>\n</ul>\n\n<p><strong>Sharif Nassar</strong></p>\n\n<ul>\n<li>Solaris/Nexenta support</li>\n<li>Better error reporting</li>\n</ul>\n\n<p><strong>Christian G. Warden</strong></p>\n\n<ul>\n<li>Style improvements</li>\n</ul>\n\n<p><strong>Reid Vandewiele</strong></p>\n\n<ul>\n<li>Support non GNU systems by default</li>\n</ul>\n\n<p>**Erik Dalén*</p>\n\n<ul>\n<li>Style improvements</li>\n</ul>\n\n<p><strong>Gildas Le Nadan</strong></p>\n\n<ul>\n<li>Documentation improvements</li>\n</ul>\n\n<p><strong>Paul Belanger</strong></p>\n\n<ul>\n<li>Testing improvements and Travis support</li>\n</ul>\n\n<p><strong>Branan Purvine-Riley</strong></p>\n\n<ul>\n<li>Support Puppet Module Tool better</li>\n</ul>\n\n<p><strong>Dustin J. Mitchell</strong></p>\n\n<ul>\n<li>Always include setup when using the concat define</li>\n</ul>\n\n<p><strong>Andreas Jaggi</strong></p>\n\n<ul>\n<li>Puppet Lint support</li>\n</ul>\n\n<p><strong>Jan Vansteenkiste</strong></p>\n\n<ul>\n<li>Configurable paths</li>\n</ul>\n\n<h2>Contact:</h2>\n\n<p>R.I.Pienaar / <a href=\"mailto:rip@devco.net\">rip@devco.net</a> / @ripienaar / <a href=\"http://devco.net\">http://devco.net</a></p>\n</section>",
364
+ "changelog": "<section class=\"plaintext\"><pre>CHANGELOG:\n- 2010&#x2F;02&#x2F;19 - initial release\n- 2010&#x2F;03&#x2F;12 - add support for 0.24.8 and newer\n - make the location of sort configurable\n - add the ability to add shell comment based warnings to\n top of files\n - add the ablity to create empty files\n- 2010&#x2F;04&#x2F;05 - fix parsing of WARN and change code style to match rest\n of the code\n - Better and safer boolean handling for warn and force\n - Don&#x27;t use hard coded paths in the shell script, set PATH\n top of the script\n - Use file{} to copy the result and make all fragments owned\n by root. This means we can chnage the ownership&#x2F;group of the\n resulting file at any time.\n - You can specify ensure =&gt; &quot;&#x2F;some&#x2F;other&#x2F;file&quot; in concat::fragment\n to include the contents of a symlink into the final file.\n- 2010&#x2F;04&#x2F;16 - Add more cleaning of the fragment name - removing &#x2F; from the $name\n- 2010&#x2F;05&#x2F;22 - Improve documentation and show the use of ensure =&gt;\n- 2010&#x2F;07&#x2F;14 - Add support for setting the filebucket behavior of files\n- 2010&#x2F;10&#x2F;04 - Make the warning message configurable\n- 2010&#x2F;12&#x2F;03 - Add flags to make concat work better on Solaris - thanks Jonathan Boyett\n- 2011&#x2F;02&#x2F;03 - Make the shell script more portable and add a config option for root group\n- 2011&#x2F;06&#x2F;21 - Make base dir root readable only for security\n- 2011&#x2F;06&#x2F;23 - Set base directory using a fact instead of hardcoding it\n- 2011&#x2F;06&#x2F;23 - Support operating as non privileged user\n- 2011&#x2F;06&#x2F;23 - Support dash instead of bash or sh\n- 2011&#x2F;07&#x2F;11 - Better solaris support\n- 2011&#x2F;12&#x2F;05 - Use fully qualified variables\n- 2011&#x2F;12&#x2F;13 - Improve Nexenta support\n- 2012&#x2F;04&#x2F;11 - Do not use any GNU specific extensions in the shell script\n- 2012&#x2F;03&#x2F;24 - Comply to community style guides\n- 2012&#x2F;05&#x2F;23 - Better errors when basedir isnt set\n- 2012&#x2F;05&#x2F;31 - Add spec tests\n- 2012&#x2F;07&#x2F;11 - Include concat::setup in concat improving UX\n- 2012&#x2F;08&#x2F;14 - Puppet Lint improvements\n- 2012&#x2F;08&#x2F;30 - The target path can be different from the $name\n- 2012&#x2F;08&#x2F;30 - More Puppet Lint cleanup\n- 2012&#x2F;09&#x2F;04 - RELEASE 0.2.0\n</pre></section>",
365
+ "license": "<section class=\"plaintext\"><pre> Copyright 2012 R.I.Pienaar\n\n Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an &quot;AS IS&quot; BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n</pre></section>",
366
+ "created_at": "2012-09-04 11:44:59 -0700",
367
+ "updated_at": "2012-09-04 11:44:59 -0700",
368
+ "deleted_at": null
369
+ },
370
+ {
371
+ "uri": "/v3/releases/puppetlabs-concat-1.0.0",
372
+ "module": {
373
+ "uri": "/v3/modules/puppetlabs-concat",
374
+ "name": "concat",
375
+ "owner": {
376
+ "uri": "/v3/users/puppetlabs",
377
+ "username": "puppetlabs",
378
+ "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
379
+ }
380
+ },
381
+ "version": "1.0.0",
382
+ "metadata": {
383
+ "name": "puppetlabs-concat",
384
+ "version": "1.0.0",
385
+ "source": "git://github.com/puppetlabs/puppetlabs-concat.git",
386
+ "author": "Puppetlabs",
387
+ "license": "Apache 2.0",
388
+ "summary": "Concat module",
389
+ "description": "Concat module",
390
+ "project_page": "http://github.com/puppetlabs/puppetlabs-concat",
391
+ "dependencies": [
392
+
393
+ ],
394
+ "types": [
395
+
396
+ ],
397
+ "checksums": {
398
+ "CHANGELOG": "89220fae3ab04a350132fe94d7a6ca00",
399
+ "Gemfile": "a913d6f7a0420e07539d8ff1ef047ffb",
400
+ "LICENSE": "f5a76685d453424cd63dde1535811cf0",
401
+ "Modulefile": "f99ee2f6778b9e23635ac1027888bbd3",
402
+ "README": "d15ec3400f628942dd7b7fa8c1a18da3",
403
+ "README.markdown": "d82e203d729ea4785bdcaca1be166e62",
404
+ "Rakefile": "0428ea3759a4692c91604396c406a9c1",
405
+ "files/concatfragments.sh": "2fbba597a1513eb61229551d35d42b9f",
406
+ "lib/facter/concat_basedir.rb": "e152593fafe27ef305fc473929c62ca6",
407
+ "manifests/fragment.pp": "196ee8e405b3a31b84ae618ed54377ed",
408
+ "manifests/init.pp": "8d0cc8e9cf145ca7a23db05a30252476",
409
+ "manifests/setup.pp": "2246572410d94c68aff310f8132c55b4",
410
+ "spec/defines/init_spec.rb": "35e41d4abceba0dca090d3addd92bb4f",
411
+ "spec/fixtures/manifests/site.pp": "d41d8cd98f00b204e9800998ecf8427e",
412
+ "spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",
413
+ "spec/spec_helper_system.rb": "9c3742bf87d62027f080c6b9fa98b979",
414
+ "spec/system/basic_spec.rb": "9135d9af6a21f16980ab59b58e91ed9a",
415
+ "spec/system/concat_spec.rb": "5fe675ec42ca441d0c7e431c31bbc238",
416
+ "spec/system/empty_spec.rb": "51ab1fc7c86268f1ab1cda72dc5ff583",
417
+ "spec/system/replace_spec.rb": "275295e6b4f04fc840dc3f87faf56249",
418
+ "spec/system/warn_spec.rb": "0ea35b44e8f0ac5352256f95115995ce"
419
+ }
420
+ },
421
+ "tags": [
422
+ "concat",
423
+ "files",
424
+ "fragments",
425
+ "templates"
426
+ ],
427
+ "file_uri": "/v3/files/puppetlabs-concat-1.0.0.tar.gz",
428
+ "file_size": 11866,
429
+ "file_md5": "b46fed82226a08b37428769f4fa6e534",
430
+ "downloads": 66264,
431
+ "readme": "<section class=\"markdown\"><h1>What is it?</h1>\n\n<p>A Puppet module that can construct files from fragments.</p>\n\n<p>Please see the comments in the various .pp files for details\nas well as posts on my blog at <a href=\"http://www.devco.net/\">http://www.devco.net/</a></p>\n\n<p>Released under the Apache 2.0 licence</p>\n\n<h2>Usage:</h2>\n\n<p>If you wanted a /etc/motd file that listed all the major modules\non the machine. And that would be maintained automatically even\nif you just remove the include lines for other modules you could\nuse code like below, a sample /etc/motd would be:</p>\n\n<pre>\nPuppet modules on this server:\n\n -- Apache\n -- MySQL\n</pre>\n\n<p>Local sysadmins can also append to the file by just editing /etc/motd.local\ntheir changes will be incorporated into the puppet managed motd.</p>\n\n<pre>\n# class to setup basic motd, include on all nodes\nclass motd {\n $motd = \"/etc/motd\"\n\n concat{$motd:\n owner => root,\n group => root,\n mode => '0644',\n }\n\n concat::fragment{\"motd_header\":\n target => $motd,\n content => \"\\nPuppet modules on this server:\\n\\n\",\n order => 01,\n }\n\n # local users on the machine can append to motd by just creating\n # /etc/motd.local\n concat::fragment{\"motd_local\":\n target => $motd,\n ensure => \"/etc/motd.local\",\n order => 15\n }\n}\n\n# used by other modules to register themselves in the motd\ndefine motd::register($content=\"\", $order=10) {\n if $content == \"\" {\n $body = $name\n } else {\n $body = $content\n }\n\n concat::fragment{\"motd_fragment_$name\":\n target => \"/etc/motd\",\n content => \" -- $body\\n\"\n }\n}\n\n# a sample apache module\nclass apache {\n include apache::install, apache::config, apache::service\n\n motd::register{\"Apache\": }\n}\n</pre>\n\n<p>Detailed documentation of the class options can be found in the\nmanifest files.</p>\n\n<h2>Known Issues:</h2>\n\n<ul>\n<li>Since puppet-concat now relies on a fact for the concat directory,\nyou will need to set up pluginsync = true on the [master] section of your\nnode&#39;s &#39;/etc/puppet/puppet.conf&#39; for at least the first run.\nYou have this issue if puppet fails to run on the client and you have\na message similar to\n&quot;err: Failed to apply catalog: Parameter path failed: File\npaths must be fully qualified, not &#39;undef&#39; at [...]/concat/manifests/setup.pp:44&quot;.</li>\n</ul>\n\n<h2>Contributors:</h2>\n\n<p><strong>Paul Elliot</strong></p>\n\n<ul>\n<li>Provided 0.24.8 support, shell warnings and empty file creation support.</li>\n</ul>\n\n<p><strong>Chad Netzer</strong></p>\n\n<ul>\n<li>Various patches to improve safety of file operations</li>\n<li>Symlink support</li>\n</ul>\n\n<p><strong>David Schmitt</strong></p>\n\n<ul>\n<li>Patch to remove hard coded paths relying on OS path</li>\n<li>Patch to use file{} to copy the resulting file to the final destination. This means Puppet client will show diffs and that hopefully we can change file ownerships now</li>\n</ul>\n\n<p><strong>Peter Meier</strong></p>\n\n<ul>\n<li>Basedir as a fact</li>\n<li>Unprivileged user support</li>\n</ul>\n\n<p><strong>Sharif Nassar</strong></p>\n\n<ul>\n<li>Solaris/Nexenta support</li>\n<li>Better error reporting</li>\n</ul>\n\n<p><strong>Christian G. Warden</strong></p>\n\n<ul>\n<li>Style improvements</li>\n</ul>\n\n<p><strong>Reid Vandewiele</strong></p>\n\n<ul>\n<li>Support non GNU systems by default</li>\n</ul>\n\n<p><strong>Erik Dalén</strong></p>\n\n<ul>\n<li>Style improvements</li>\n</ul>\n\n<p><strong>Gildas Le Nadan</strong></p>\n\n<ul>\n<li>Documentation improvements</li>\n</ul>\n\n<p><strong>Paul Belanger</strong></p>\n\n<ul>\n<li>Testing improvements and Travis support</li>\n</ul>\n\n<p><strong>Branan Purvine-Riley</strong></p>\n\n<ul>\n<li>Support Puppet Module Tool better</li>\n</ul>\n\n<p><strong>Dustin J. Mitchell</strong></p>\n\n<ul>\n<li>Always include setup when using the concat define</li>\n</ul>\n\n<p><strong>Andreas Jaggi</strong></p>\n\n<ul>\n<li>Puppet Lint support</li>\n</ul>\n\n<p><strong>Jan Vansteenkiste</strong></p>\n\n<ul>\n<li>Configurable paths</li>\n</ul>\n\n<h2>Contact:</h2>\n\n<p>puppet-users@ mailing list.</p>\n</section>",
432
+ "changelog": "<section class=\"plaintext\"><pre>2013-08-09 1.0.0\n\nSummary:\n\nMany new features and bugfixes in this release, and if you&#x27;re a heavy concat\nuser you should test carefully before upgrading. The features should all be\nbackwards compatible but only light testing has been done from our side before\nthis release.\n\nFeatures:\n- New parameters in concat:\n - `replace`: specify if concat should replace existing files.\n - `ensure_newline`: controls if fragments should contain a newline at the end.\n- Improved README documentation.\n- Add rspec:system tests (rake spec:system to test concat)\n\nBugfixes\n- Gracefully handle \\n in a fragment resource name.\n- Adding more helpful message for &#x27;pluginsync = true&#x27;\n- Allow passing `source` and `content` directly to file resource, rather than\ndefining resource defaults.\n- Added -r flag to read so that filenames with \\ will be read correctly.\n- sort always uses LANG=C.\n- Allow WARNMSG to contain&#x2F;start with &#x27;#&#x27;.\n- Replace while-read pattern with for-do in order to support Solaris.\n\nCHANGELOG:\n- 2010&#x2F;02&#x2F;19 - initial release\n- 2010&#x2F;03&#x2F;12 - add support for 0.24.8 and newer\n - make the location of sort configurable\n - add the ability to add shell comment based warnings to\n top of files\n - add the ablity to create empty files\n- 2010&#x2F;04&#x2F;05 - fix parsing of WARN and change code style to match rest\n of the code\n - Better and safer boolean handling for warn and force\n - Don&#x27;t use hard coded paths in the shell script, set PATH\n top of the script\n - Use file{} to copy the result and make all fragments owned\n by root. This means we can chnage the ownership&#x2F;group of the\n resulting file at any time.\n - You can specify ensure =&gt; &quot;&#x2F;some&#x2F;other&#x2F;file&quot; in concat::fragment\n to include the contents of a symlink into the final file.\n- 2010&#x2F;04&#x2F;16 - Add more cleaning of the fragment name - removing &#x2F; from the $name\n- 2010&#x2F;05&#x2F;22 - Improve documentation and show the use of ensure =&gt;\n- 2010&#x2F;07&#x2F;14 - Add support for setting the filebucket behavior of files\n- 2010&#x2F;10&#x2F;04 - Make the warning message configurable\n- 2010&#x2F;12&#x2F;03 - Add flags to make concat work better on Solaris - thanks Jonathan Boyett\n- 2011&#x2F;02&#x2F;03 - Make the shell script more portable and add a config option for root group\n- 2011&#x2F;06&#x2F;21 - Make base dir root readable only for security\n- 2011&#x2F;06&#x2F;23 - Set base directory using a fact instead of hardcoding it\n- 2011&#x2F;06&#x2F;23 - Support operating as non privileged user\n- 2011&#x2F;06&#x2F;23 - Support dash instead of bash or sh\n- 2011&#x2F;07&#x2F;11 - Better solaris support\n- 2011&#x2F;12&#x2F;05 - Use fully qualified variables\n- 2011&#x2F;12&#x2F;13 - Improve Nexenta support\n- 2012&#x2F;04&#x2F;11 - Do not use any GNU specific extensions in the shell script\n- 2012&#x2F;03&#x2F;24 - Comply to community style guides\n- 2012&#x2F;05&#x2F;23 - Better errors when basedir isnt set\n- 2012&#x2F;05&#x2F;31 - Add spec tests\n- 2012&#x2F;07&#x2F;11 - Include concat::setup in concat improving UX\n- 2012&#x2F;08&#x2F;14 - Puppet Lint improvements\n- 2012&#x2F;08&#x2F;30 - The target path can be different from the $name\n- 2012&#x2F;08&#x2F;30 - More Puppet Lint cleanup\n- 2012&#x2F;09&#x2F;04 - RELEASE 0.2.0\n- 2012&#x2F;12&#x2F;12 - Added (file) $replace parameter to concat\n</pre></section>",
433
+ "license": "<section class=\"plaintext\"><pre> Copyright 2012 R.I.Pienaar\n\n Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an &quot;AS IS&quot; BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n</pre></section>",
434
+ "created_at": "2013-08-14 15:59:00 -0700",
435
+ "updated_at": "2013-08-14 15:59:00 -0700",
436
+ "deleted_at": null
437
+ },
438
+ {
439
+ "uri": "/v3/releases/puppetlabs-apt-1.4.0",
440
+ "module": {
441
+ "uri": "/v3/modules/puppetlabs-apt",
442
+ "name": "apt",
443
+ "owner": {
444
+ "uri": "/v3/users/puppetlabs",
445
+ "username": "puppetlabs",
446
+ "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
447
+ }
448
+ },
449
+ "version": "1.4.0",
450
+ "metadata": {
451
+ "name": "puppetlabs-apt",
452
+ "version": "1.4.0",
453
+ "summary": "Puppet Labs Apt Module",
454
+ "author": "Evolving Web / Puppet Labs",
455
+ "description": "APT Module for Puppet",
456
+ "dependencies": [
457
+ {
458
+ "name": "puppetlabs/stdlib",
459
+ "version_requirement": ">= 2.2.1"
460
+ }
461
+ ],
462
+ "types": [
463
+
464
+ ],
465
+ "checksums": {
466
+ ".bundle/config": "7f1c988748783d2a8d455376eed1470c",
467
+ ".fixtures.yml": "0c43f56b0bb8e8d04e8051a0e7aa37a5",
468
+ ".forge-release/pom.xml": "c650a84961ad88de03192e23b63b3549",
469
+ ".forge-release/publish": "1c1d6dd64ef52246db485eb5459aa941",
470
+ ".forge-release/settings.xml": "06d768a57d582fe1ee078b563427e750",
471
+ ".forge-release/validate": "7fffde8112f42a1ec986d49ba80ac219",
472
+ ".nodeset.yml": "78d78c172336a387a1067464434ffbcb",
473
+ ".travis.yml": "782420dcc9d6412c79c30f03b1f3613c",
474
+ "CHANGELOG": "f5488e1e891a8f8c47143dac790ddab3",
475
+ "Gemfile": "1bfa7eb6e30346c9ddb4a8b144b0d255",
476
+ "Gemfile.lock": "8ff8bc3d32bb7412bd97e48190a93b2f",
477
+ "LICENSE": "20bcc606fc61ffba2b8cea840e8dce4d",
478
+ "Modulefile": "b34e93626fbc137cbb651952e7509839",
479
+ "README.md": "65176b395f7202fe5d222ae7b0de4e05",
480
+ "Rakefile": "0428ea3759a4692c91604396c406a9c1",
481
+ "manifests/backports.pp": "09f1d86603d0f44a2169acb3eeea2a70",
482
+ "manifests/builddep.pp": "4f313b5140c84aa7d5793b5a073c30dd",
483
+ "manifests/conf.pp": "5ddf258195d414d93284dfd281a8d6e3",
484
+ "manifests/debian/testing.pp": "aeb625bacb6a8df46c864ee9ee1cb5a5",
485
+ "manifests/debian/unstable.pp": "108038596b05dc1d28975884693f73f5",
486
+ "manifests/force.pp": "cf871e869f4114f32ab164de2a67e7e2",
487
+ "manifests/init.pp": "5ec106a7a03313c544159a9a1f6b78e6",
488
+ "manifests/key.pp": "3cf082ed91a3933ab7218d1be3464f4f",
489
+ "manifests/params.pp": "ca4ce3730a65c43f884ab3e6445f1661",
490
+ "manifests/pin.pp": "dea8cbaabc37010ce25838080608802b",
491
+ "manifests/ppa.pp": "754a83944ae79b5001fc0c0a8c775985",
492
+ "manifests/release.pp": "427f3ee70a6a1e55fa291e58655bd5d9",
493
+ "manifests/source.pp": "6eab8d33c173a066f5dec8474efdedb6",
494
+ "manifests/unattended_upgrades.pp": "e97f908b42010ff9a85be4afd2c721ab",
495
+ "manifests/update.pp": "436c79f160f2cb603710795a9ec71ac7",
496
+ "spec/classes/apt_spec.rb": "54841b04b42026770ed6d744a82c55df",
497
+ "spec/classes/backports_spec.rb": "7d2454a881cc26edd3dcd3acb7ffd20f",
498
+ "spec/classes/debian_testing_spec.rb": "fad1384cb9d3c99b2663d7df4762dc0e",
499
+ "spec/classes/debian_unstable_spec.rb": "11131efffd18db3c96e2bbe3d98a2fb7",
500
+ "spec/classes/params_spec.rb": "a25396d3f0bbac784a7951f03ad7e8f4",
501
+ "spec/classes/release_spec.rb": "d8f01a3cf0c2f6f6952b835196163ce4",
502
+ "spec/classes/unattended_upgrades_spec.rb": "a2e206bda79d24cdb43312d035eff66f",
503
+ "spec/defines/builddep_spec.rb": "e1300bb4f3abbd34029b11d8b733a6e5",
504
+ "spec/defines/conf_spec.rb": "b7fc9fb6cb270c276aacbfa4a43f228c",
505
+ "spec/defines/force_spec.rb": "97098c5b123be49e321e71cda288fe53",
506
+ "spec/defines/key_spec.rb": "7800c30647b1ddf799b991110109cba0",
507
+ "spec/defines/pin_spec.rb": "c912e59e9e3d1145280d659cccabe72b",
508
+ "spec/defines/ppa_spec.rb": "72ce037a1d6ea0a33f369b1f3d98b3d6",
509
+ "spec/defines/source_spec.rb": "e553bb9598dbe2becba6ae7f91d4deb0",
510
+ "spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",
511
+ "spec/spec_helper_system.rb": "e67d2574baae312f1095f90d78fdf5e9",
512
+ "spec/system/apt_builddep_spec.rb": "97be5a48d2d16d96cb7c35ccdbcdcb69",
513
+ "spec/system/apt_key_spec.rb": "098835d0c53c69390d4c3b6ea8ef3815",
514
+ "spec/system/apt_ppa_spec.rb": "c96f6d0bbdafac39beaf0d5e6eba9010",
515
+ "spec/system/apt_source_spec.rb": "df5aa98b03688884903c564bb507469f",
516
+ "spec/system/basic_spec.rb": "0a5b33d18254bedcb7886e34846ebff6",
517
+ "spec/system/class_spec.rb": "2ba4265236f00685c23cb00f908defc1",
518
+ "templates/10periodic.erb": "2aeea866a39f19a62254abbb4f1bc59d",
519
+ "templates/50unattended-upgrades.erb": "ae995ade214fdaefab51d335c85819ae",
520
+ "templates/pin.pref.erb": "623249839cee7788fa0805a3474396db",
521
+ "templates/source.list.erb": "65a016e60daf065c481f3d5f2c883324",
522
+ "tests/builddep.pp": "4773f57072111e58f2ed833fa4489a88",
523
+ "tests/debian/testing.pp": "1cbee56baddd6a91d981db8fddec70fb",
524
+ "tests/debian/unstable.pp": "4b2a090afeb315752262386f4dbcd8ca",
525
+ "tests/force.pp": "2bb6cf0b3d655cb51f95aeb79035e600",
526
+ "tests/init.pp": "551138eb704e71ab3687932dda429a81",
527
+ "tests/key.pp": "371a695e1332d51a38e283a87be52798",
528
+ "tests/params.pp": "900db40f3fc84b0be173278df2ebff35",
529
+ "tests/pin.pp": "4b4c3612d75a19dba8eb7227070fa4ab",
530
+ "tests/ppa.pp": "b902cce8159128b5e8b21bed540743ff",
531
+ "tests/release.pp": "53ce5debe6fa5bee42821767599cc768",
532
+ "tests/source.pp": "9cecd9aa0dcde250fe49be9e26971a98",
533
+ "tests/unattended-upgrades.pp": "cdc853f1b58e5206c5a538621ddca161"
534
+ },
535
+ "source": "https://github.com/puppetlabs/puppetlabs-apt",
536
+ "project_page": "https://github.com/puppetlabs/puppetlabs-apt",
537
+ "license": "Apache License 2.0"
538
+ },
539
+ "tags": [
540
+ "apt",
541
+ "debian",
542
+ "ubuntu",
543
+ "dpkg",
544
+ "apt-get",
545
+ "aptitude",
546
+ "ppa"
547
+ ],
548
+ "file_uri": "/v3/files/puppetlabs-apt-1.4.0.tar.gz",
549
+ "file_size": 27238,
550
+ "file_md5": "c483d6e375387d5e1fe780ee51ee512c",
551
+ "downloads": 61047,
552
+ "readme": "<section class=\"markdown\"><h1>apt</h1>\n\n<p><a href=\"https://travis-ci.org/puppetlabs/puppetlabs-apt\"><img src=\"https://travis-ci.org/puppetlabs/puppetlabs-apt.png?branch=master\" alt=\"Build Status\"></a></p>\n\n<h2>Description</h2>\n\n<h1>Provides helpful definitions for dealing with Apt.</h1>\n\n<h2>Overview</h2>\n\n<p>The APT module provides a simple interface for managing APT source, key, and definitions with Puppet. </p>\n\n<h2>Module Description</h2>\n\n<p>APT automates obtaining and installing software packages on *nix systems. </p>\n\n<h2>Setup</h2>\n\n<p><strong>What APT affects:</strong></p>\n\n<ul>\n<li>package/service/configuration files for APT </li>\n<li>your system&#39;s <code>sources.list</code> file and <code>sources.list.d</code> directory\n\n<ul>\n<li>NOTE: Setting the <code>purge_sources_list</code> and <code>purge_sources_list_d</code> parameters to &#39;true&#39; will destroy any existing content that was not declared with Puppet. The default for these parameters is &#39;false&#39;.</li>\n</ul></li>\n<li>system repositories</li>\n<li>authentication keys</li>\n<li>wget (optional)</li>\n</ul>\n\n<h3>Beginning with APT</h3>\n\n<p>To begin using the APT module with default parameters, declare the class</p>\n\n<pre><code>class { &#39;apt&#39;: }\n</code></pre>\n\n<p>Puppet code that uses anything from the APT module requires that the core apt class be declared. </p>\n\n<h2>Usage</h2>\n\n<p>Using the APT module consists predominantly in declaring classes that provide desired functionality and features. </p>\n\n<h3>apt</h3>\n\n<p><code>apt</code> provides a number of common resources and options that are shared by the various defined types in this module, so you MUST always include this class in your manifests.</p>\n\n<p>The parameters for <code>apt</code> are not required in general and are predominantly for development environment use-cases.</p>\n\n<pre><code>class { &#39;apt&#39;:\n always_apt_update =&gt; false,\n disable_keys =&gt; undef,\n proxy_host =&gt; false,\n proxy_port =&gt; &#39;8080&#39;,\n purge_sources_list =&gt; false,\n purge_sources_list_d =&gt; false,\n purge_preferences_d =&gt; false,\n update_timeout =&gt; undef\n}\n</code></pre>\n\n<p>Puppet will manage your system&#39;s <code>sources.list</code> file and <code>sources.list.d</code> directory but will do its best to respect existing content. </p>\n\n<p>If you declare your apt class with <code>purge_sources_list</code> and <code>purge_sources_list_d</code> set to &#39;true&#39;, Puppet will unapologetically purge any existing content it finds that wasn&#39;t declared with Puppet. </p>\n\n<h3>apt::builddep</h3>\n\n<p>Installs the build depends of a specified package.</p>\n\n<pre><code>apt::builddep { &#39;glusterfs-server&#39;: }\n</code></pre>\n\n<h3>apt::force</h3>\n\n<p>Forces a package to be installed from a specific release. This class is particularly useful when using repositories, like Debian, that are unstable in Ubuntu.</p>\n\n<pre><code>apt::force { &#39;glusterfs-server&#39;:\n release =&gt; &#39;unstable&#39;,\n version =&gt; &#39;3.0.3&#39;,\n require =&gt; Apt::Source[&#39;debian_unstable&#39;],\n}\n</code></pre>\n\n<h3>apt::key</h3>\n\n<p>Adds a key to the list of keys used by APT to authenticate packages.</p>\n\n<pre><code>apt::key { &#39;puppetlabs&#39;:\n key =&gt; &#39;4BD6EC30&#39;,\n key_server =&gt; &#39;pgp.mit.edu&#39;,\n}\n\napt::key { &#39;jenkins&#39;:\n key =&gt; &#39;D50582E6&#39;,\n key_source =&gt; &#39;http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key&#39;,\n}\n</code></pre>\n\n<p>Note that use of <code>key_source</code> requires wget to be installed and working.</p>\n\n<h3>apt::pin</h3>\n\n<p>Adds an apt pin for a certain release.</p>\n\n<pre><code>apt::pin { &#39;karmic&#39;: priority =&gt; 700 }\napt::pin { &#39;karmic-updates&#39;: priority =&gt; 700 }\napt::pin { &#39;karmic-security&#39;: priority =&gt; 700 }\n</code></pre>\n\n<p>Note you can also specifying more complex pins using distribution properties.</p>\n\n<pre><code>apt::pin { &#39;stable&#39;:\n priority =&gt; -10,\n originator =&gt; &#39;Debian&#39;,\n release_version =&gt; &#39;3.0&#39;,\n component =&gt; &#39;main&#39;,\n label =&gt; &#39;Debian&#39;\n}\n</code></pre>\n\n<h3>apt::ppa</h3>\n\n<p>Adds a ppa repository using <code>add-apt-repository</code>.</p>\n\n<pre><code>apt::ppa { &#39;ppa:drizzle-developers/ppa&#39;: }\n</code></pre>\n\n<h3>apt::release</h3>\n\n<p>Sets the default apt release. This class is particularly useful when using repositories, like Debian, that are unstable in Ubuntu.</p>\n\n<pre><code>class { &#39;apt::release&#39;:\n release_id =&gt; &#39;precise&#39;,\n}\n</code></pre>\n\n<h3>apt::source</h3>\n\n<p>Adds an apt source to <code>/etc/apt/sources.list.d/</code>.</p>\n\n<pre><code>apt::source { &#39;debian_unstable&#39;:\n location =&gt; &#39;http://debian.mirror.iweb.ca/debian/&#39;,\n release =&gt; &#39;unstable&#39;,\n repos =&gt; &#39;main contrib non-free&#39;,\n required_packages =&gt; &#39;debian-keyring debian-archive-keyring&#39;,\n key =&gt; &#39;55BE302B&#39;,\n key_server =&gt; &#39;subkeys.pgp.net&#39;,\n pin =&gt; &#39;-10&#39;,\n include_src =&gt; true\n}\n</code></pre>\n\n<p>If you would like to configure your system so the source is the Puppet Labs APT repository</p>\n\n<pre><code>apt::source { &#39;puppetlabs&#39;:\n location =&gt; &#39;http://apt.puppetlabs.com&#39;,\n repos =&gt; &#39;main&#39;,\n key =&gt; &#39;4BD6EC30&#39;,\n key_server =&gt; &#39;pgp.mit.edu&#39;,\n}\n</code></pre>\n\n<h3>Testing</h3>\n\n<p>The APT module is mostly a collection of defined resource types, which provide reusable logic that can be leveraged to manage APT. It does provide smoke tests for testing functionality on a target system, as well as spec tests for checking a compiled catalog against an expected set of resources.</p>\n\n<h4>Example Test</h4>\n\n<p>This test will set up a Puppet Labs apt repository. Start by creating a new smoke test in the apt module&#39;s test folder. Call it puppetlabs-apt.pp. Inside, declare a single resource representing the Puppet Labs APT source and gpg key</p>\n\n<pre><code>apt::source { &#39;puppetlabs&#39;:\n location =&gt; &#39;http://apt.puppetlabs.com&#39;,\n repos =&gt; &#39;main&#39;,\n key =&gt; &#39;4BD6EC30&#39;,\n key_server =&gt; &#39;pgp.mit.edu&#39;,\n}\n</code></pre>\n\n<p>This resource creates an apt source named puppetlabs and gives Puppet information about the repository&#39;s location and key used to sign its packages. Puppet leverages Facter to determine the appropriate release, but you can set it directly by adding the release type.</p>\n\n<p>Check your smoke test for syntax errors</p>\n\n<pre><code>$ puppet parser validate tests/puppetlabs-apt.pp\n</code></pre>\n\n<p>If you receive no output from that command, it means nothing is wrong. Then apply the code</p>\n\n<pre><code>$ puppet apply --verbose tests/puppetlabs-apt.pp\nnotice: /Stage[main]//Apt::Source[puppetlabs]/File[puppetlabs.list]/ensure: defined content as &#39;{md5}3be1da4923fb910f1102a233b77e982e&#39;\ninfo: /Stage[main]//Apt::Source[puppetlabs]/File[puppetlabs.list]: Scheduling refresh of Exec[puppetlabs apt update]\nnotice: /Stage[main]//Apt::Source[puppetlabs]/Exec[puppetlabs apt update]: Triggered &#39;refresh&#39; from 1 events&gt;\n</code></pre>\n\n<p>The above example used a smoke test to easily lay out a resource declaration and apply it on your system. In production, you may want to declare your APT sources inside the classes where they’re needed. </p>\n\n<h2>Implementation</h2>\n\n<h3>apt::backports</h3>\n\n<p>Adds the necessary components to get backports for Ubuntu and Debian. The release name defaults to <code>$lsbdistcodename</code>. Setting this manually can cause undefined behavior (read: universe exploding).</p>\n\n<h2>Limitations</h2>\n\n<p>This module should work across all versions of Debian/Ubuntu and support all major APT repository management features. </p>\n\n<h2>Development</h2>\n\n<p>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.</p>\n\n<p>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.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h2>Contributors</h2>\n\n<p>A lot of great people have contributed to this module. A somewhat current list follows:</p>\n\n<ul>\n<li>Ben Godfrey <a href=\"mailto:ben.godfrey@wonga.com\">ben.godfrey@wonga.com</a></li>\n<li>Branan Purvine-Riley <a href=\"mailto:branan@puppetlabs.com\">branan@puppetlabs.com</a></li>\n<li>Christian G. Warden <a href=\"mailto:cwarden@xerus.org\">cwarden@xerus.org</a><br></li>\n<li>Dan Bode <a href=\"mailto:bodepd@gmail.com\">bodepd@gmail.com</a> <a href=\"mailto:dan@puppetlabs.com\">dan@puppetlabs.com</a><br></li>\n<li>Garrett Honeycutt <a href=\"mailto:github@garretthoneycutt.com\">github@garretthoneycutt.com</a><br></li>\n<li>Jeff Wallace <a href=\"mailto:jeff@evolvingweb.ca\">jeff@evolvingweb.ca</a> <a href=\"mailto:jeff@tjwallace.ca\">jeff@tjwallace.ca</a><br></li>\n<li>Ken Barber <a href=\"mailto:ken@bob.sh\">ken@bob.sh</a><br></li>\n<li>Matthaus Litteken <a href=\"mailto:matthaus@puppetlabs.com\">matthaus@puppetlabs.com</a> <a href=\"mailto:mlitteken@gmail.com\">mlitteken@gmail.com</a><br></li>\n<li>Matthias Pigulla <a href=\"mailto:mp@webfactory.de\">mp@webfactory.de</a><br></li>\n<li>Monty Taylor <a href=\"mailto:mordred@inaugust.com\">mordred@inaugust.com</a><br></li>\n<li>Peter Drake <a href=\"mailto:pdrake@allplayers.com\">pdrake@allplayers.com</a><br></li>\n<li>Reid Vandewiele <a href=\"mailto:marut@cat.pdx.edu\">marut@cat.pdx.edu</a><br></li>\n<li>Robert Navarro <a href=\"mailto:rnavarro@phiivo.com\">rnavarro@phiivo.com</a><br></li>\n<li>Ryan Coleman <a href=\"mailto:ryan@puppetlabs.com\">ryan@puppetlabs.com</a><br></li>\n<li>Scott McLeod <a href=\"mailto:scott.mcleod@theice.com\">scott.mcleod@theice.com</a><br></li>\n<li>Spencer Krum <a href=\"mailto:spencer@puppetlabs.com\">spencer@puppetlabs.com</a><br></li>\n<li>William Van Hevelingen <a href=\"mailto:blkperl@cat.pdx.edu\">blkperl@cat.pdx.edu</a> <a href=\"mailto:wvan13@gmail.com\">wvan13@gmail.com</a><br></li>\n<li>Zach Leslie <a href=\"mailto:zach@puppetlabs.com\">zach@puppetlabs.com</a><br></li>\n</ul>\n</section>",
553
+ "changelog": "<section class=\"plaintext\"><pre>2013-10-08 1.4.0\n\nSummary:\n\nMinor bugfix and allow the timeout to be adjusted.\n\nFeatures:\n- Add an `updates_timeout` to apt::params\n\nFixes:\n- Ensure apt::ppa can readd a ppa removed by hand.\n\nSummary\n\n1.3.0\n=====\n\nSummary:\n\nThis major feature in this release is the new apt::unattended_upgrades class,\nallowing you to handle Ubuntu&#x27;s unattended feature. This allows you to select\nspecific packages to automatically upgrade without any further user\ninvolvement.\n\nIn addition we extend our Wheezy support, add proxy support to apt:ppa and do\nvarious cleanups and tweaks.\n\nFeatures:\n- Add apt::unattended_upgrades support for Ubuntu.\n- Add wheezy backports support.\n- Use the geoDNS http.debian.net instead of the main debian ftp server.\n- Add `options` parameter to apt::ppa in order to pass options to apt-add-repository command.\n- Add proxy support for apt::ppa (uses proxy_host and proxy_port from apt).\n\nBugfixes:\n- Fix regsubst() calls to quote single letters (for future parser).\n- Fix lint warnings and other misc cleanup.\n\n1.2.0\n=====\n\nFeatures:\n- Add geppetto `.project` natures\n- Add GH auto-release\n- Add `apt::key::key_options` parameter\n- Add complex pin support using distribution properties for `apt::pin` via new properties:\n - `apt::pin::codename`\n - `apt::pin::release_version`\n - `apt::pin::component`\n - `apt::pin::originator`\n - `apt::pin::label`\n- Add source architecture support to `apt::source::architecture`\n\nBugfixes:\n- Use apt-get instead of aptitude in apt::force\n- Update default backports location\n- Add dependency for required packages before apt-get update\n\n\n1.1.1\n=====\n\nThis is a bug fix release that resolves a number of issues:\n\n* By changing template variable usage, we remove the deprecation warnings\n for Puppet 3.2.x\n* Fixed proxy file removal, when proxy absent\n\nSome documentation, style and whitespaces changes were also merged. This\nrelease also introduced proper rspec-puppet unit testing on Travis-CI to help\nreduce regression.\n\nThanks to all the community contributors below that made this patch possible.\n\n#### Detail Changes\n\n* fix minor comment type (Chris Rutter)\n* whitespace fixes (Michael Moll)\n* Update travis config file (William Van Hevelingen)\n* Build all branches on travis (William Van Hevelingen)\n* Standardize travis.yml on pattern introduced in stdlib (William Van Hevelingen)\n* Updated content to conform to README best practices template (Lauren Rother)\n* Fix apt::release example in readme (Brian Galey)\n* add @ to variables in template (Peter Hoeg)\n* Remove deprecation warnings for pin.pref.erb as well (Ken Barber)\n* Update travis.yml to latest versions of puppet (Ken Barber)\n* Fix proxy file removal (Scott Barber)\n* Add spec test for removing proxy configuration (Dean Reilly)\n* Fix apt::key listing longer than 8 chars (Benjamin Knofe)\n\n\n---------------------------------------\n\n1.1.0\n=====\n\nThis release includes Ubuntu 12.10 (Quantal) support for PPAs.\n\n---------------------------------------\n\n2012-05-25 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.4\n * Fix ppa list filename when there is a period in the PPA name\n * Add .pref extension to apt preferences files\n * Allow preferences to be purged\n * Extend pin support\n\n2012-05-04 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.3\n * only invoke apt-get update once\n * only install python-software-properties if a ppa is added\n * support &#x27;ensure =&gt; absent&#x27; for all defined types\n * add apt::conf\n * add apt::backports\n * fixed Modulefile for module tool dependency resolution\n * configure proxy before doing apt-get update\n * use apt-get update instead of aptitude for apt::ppa\n * add support to pin release\n\n\n2012-03-26 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.2\n41cedbb (#13261) Add real examples to smoke tests.\nd159a78 (#13261) Add key.pp smoke test\n7116c7a (#13261) Replace foo source with puppetlabs source\n1ead0bf Ignore pkg directory.\n9c13872 (#13289) Fix some more style violations\n0ea4ffa (#13289) Change test scaffolding to use a module &amp; manifest dir fixture path\na758247 (#13289) Clean up style violations and fix corresponding tests\n99c3fd3 (#13289) Add puppet lint tests to Rakefile\n5148cbf (#13125) Apt keys should be case insensitive\nb9607a4 Convert apt::key to use anchors\n\n2012-03-07 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.1\nd4fec56 Modify apt::source release parameter test\n1132a07 (#12917) Add contributors to README\n8cdaf85 (#12823) Add apt::key defined type and modify apt::source to use it\n7c0d10b (#12809) $release should use $lsbdistcodename and fall back to manual input\nbe2cc3e (#12522) Adjust spec test for splitting purge\n7dc60ae (#12522) Split purge option to spare sources.list\n9059c4e Fix source specs to test all key permutations\n8acb202 Add test for python-software-properties package\na4af11f Check if python-software-properties is defined before attempting to define it.\n1dcbf3d Add tests for required_packages change\nf3735d2 Allow duplicate $required_packages\n74c8371 (#12430) Add tests for changes to apt module\n97ebb2d Test two sources with the same key\n1160bcd (#12526) Add ability to reverse apt { disable_keys =&gt; true }\n2842d73 Add Modulefile to puppet-apt\nc657742 Allow the use of the same key in multiple sources\n8c27963 (#12522) Adding purge option to apt class\n997c9fd (#12529) Add unit test for apt proxy settings\n50f3cca (#12529) Add parameter to support setting a proxy for apt\nd522877 (#12094) Replace chained .with_* with a hash\n8cf1bd0 (#12094) Remove deprecated spec.opts file\n2d688f4 (#12094) Add rspec-puppet tests for apt\n0fb5f78 (#12094) Replace name with path in file resources\nf759bc0 (#11953) Apt::force passes $version to aptitude\nf71db53 (#11413) Add spec test for apt::force to verify changes to unless\n2f5d317 (#11413) Update dpkg query used by apt::force\ncf6caa1 (#10451) Add test coverage to apt::ppa\n0dd697d include_src parameter in example; Whitespace cleanup\nb662eb8 fix typos in &quot;repositories&quot;\n1be7457 Fix (#10451) - apt::ppa fails to &quot;apt-get update&quot; when new PPA source is added\n864302a Set the pin priority before adding the source (Fix #10449)\n1de4e0a Refactored as per mlitteken\n1af9a13 Added some crazy bash madness to check if the ppa is installed already. Otherwise the manifest tries to add it on every run!\n52ca73e (#8720) Replace Apt::Ppa with Apt::Builddep\n5c05fa0 added builddep command.\na11af50 added the ability to specify the content of a key\nc42db0f Fixes ppa test.\n77d2b0d reformatted whitespace to match recommended style of 2 space indentation.\n27ebdfc ignore swap files.\n377d58a added smoke tests for module.\n18f614b reformatted apt::ppa according to recommended style.\nd8a1e4e Created a params class to hold global data.\n636ae85 Added two params for apt class\n148fc73 Update LICENSE.\ned2d19e Support ability to add more than one PPA\n420d537 Add call to apt-update after add-apt-repository in apt::ppa\n945be77 Add package definition for python-software-properties\n71fc425 Abs paths for all commands\n9d51cd1 Adding LICENSE\n71796e3 Heading fix in README\n87777d8 Typo in README\nf848bac First commit\n</pre></section>",
554
+ "license": "<section class=\"plaintext\"><pre>Copyright (c) 2011 Evolving Web Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the &quot;Software&quot;), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and&#x2F;or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n</pre></section>",
555
+ "created_at": "2013-10-15 11:06:03 -0700",
556
+ "updated_at": "2013-10-15 11:06:03 -0700",
557
+ "deleted_at": null
558
+ },
559
+ {
560
+ "uri": "/v3/releases/puppetlabs-apt-1.1.0",
561
+ "module": {
562
+ "uri": "/v3/modules/puppetlabs-apt",
563
+ "name": "apt",
564
+ "owner": {
565
+ "uri": "/v3/users/puppetlabs",
566
+ "username": "puppetlabs",
567
+ "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
568
+ }
569
+ },
570
+ "version": "1.1.0",
571
+ "metadata": {
572
+ "description": "APT Module for Puppet",
573
+ "summary": "Puppet Labs Apt Module",
574
+ "types": [
575
+
576
+ ],
577
+ "author": "Evolving Web / Puppet Labs",
578
+ "source": "https://github.com/puppetlabs/puppetlabs-apt",
579
+ "project_page": "https://github.com/puppetlabs/puppetlabs-apt",
580
+ "name": "puppetlabs-apt",
581
+ "checksums": {
582
+ "tests/release.pp": "53ce5debe6fa5bee42821767599cc768",
583
+ "tests/force.pp": "2bb6cf0b3d655cb51f95aeb79035e600",
584
+ "spec/defines/conf_spec.rb": "b7fc9fb6cb270c276aacbfa4a43f228c",
585
+ "spec/classes/params_spec.rb": "a25396d3f0bbac784a7951f03ad7e8f4",
586
+ "README.md": "38107287d9158b875b0ef1ac485c0a54",
587
+ "manifests/init.pp": "2519ac8778de7b704c09abe5555a2a12",
588
+ "manifests/force.pp": "2c9e6c49e8afc188c106fb43ed580fa1",
589
+ "tests/debian/unstable.pp": "4b2a090afeb315752262386f4dbcd8ca",
590
+ "templates/source.list.erb": "7cfd5f0839f487c02653c749bc73f7f5",
591
+ "manifests/pin.pp": "a0e49c860bbcccf01d444e785a7ef8cb",
592
+ "manifests/key.pp": "c8926002997a59e5b3d7320aae783e6d",
593
+ "manifests/backports.pp": "09f1d86603d0f44a2169acb3eeea2a70",
594
+ "CHANGELOG": "1cad40be1ae7dbe34f8645a9ab8b5cca",
595
+ "spec/defines/ppa_spec.rb": "02394ce677512ef84d3868a4cc9be9ce",
596
+ "spec/defines/pin_spec.rb": "80334696011d40968a40f056bcfd6eb3",
597
+ "spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",
598
+ "spec/defines/key_spec.rb": "7800c30647b1ddf799b991110109cba0",
599
+ "Modulefile": "af09365541ea5bfe7bcb5fb13567ec1b",
600
+ "manifests/release.pp": "427f3ee70a6a1e55fa291e58655bd5d9",
601
+ "manifests/debian/unstable.pp": "108038596b05dc1d28975884693f73f5",
602
+ "tests/ppa.pp": "b902cce8159128b5e8b21bed540743ff",
603
+ "tests/debian/testing.pp": "1cbee56baddd6a91d981db8fddec70fb",
604
+ "spec/fixtures/manifests/site.pp": "d41d8cd98f00b204e9800998ecf8427e",
605
+ "spec/defines/source_spec.rb": "15c0c52e084815a3cc32c716f19878fd",
606
+ "spec/defines/builddep_spec.rb": "e1300bb4f3abbd34029b11d8b733a6e5",
607
+ "spec/classes/debian_unstable_spec.rb": "11131efffd18db3c96e2bbe3d98a2fb7",
608
+ "spec/classes/debian_testing_spec.rb": "fad1384cb9d3c99b2663d7df4762dc0e",
609
+ "spec/classes/apt_spec.rb": "632f0ae60f921728725b2567f29a2aa8",
610
+ "spec/classes/release_spec.rb": "d8f01a3cf0c2f6f6952b835196163ce4",
611
+ "manifests/debian/testing.pp": "aeb625bacb6a8df46c864ee9ee1cb5a5",
612
+ "manifests/builddep.pp": "4f313b5140c84aa7d5793b5a073c30dd",
613
+ "tests/pin.pp": "4b4c3612d75a19dba8eb7227070fa4ab",
614
+ "spec/classes/backports_spec.rb": "7d2454a881cc26edd3dcd3acb7ffd20f",
615
+ "manifests/ppa.pp": "cb185fcdad83e2ee6feb115fcef128f9",
616
+ "manifests/conf.pp": "5ddf258195d414d93284dfd281a8d6e3",
617
+ "Rakefile": "0254db5d3fc38c67a2c160d7296a24f8",
618
+ "manifests/source.pp": "b76cf7805a072b9936c253fe80f9d5dd",
619
+ "manifests/params.pp": "22111a8a26e5f972c79b82f9e5efd69e",
620
+ "tests/source.pp": "9cecd9aa0dcde250fe49be9e26971a98",
621
+ "tests/params.pp": "900db40f3fc84b0be173278df2ebff35",
622
+ "tests/init.pp": "551138eb704e71ab3687932dda429a81",
623
+ "spec/defines/force_spec.rb": "e9de1b32e63d9441f95f9dedbabbfea0",
624
+ "LICENSE": "20bcc606fc61ffba2b8cea840e8dce4d",
625
+ "tests/key.pp": "b2047c373bc698a42729c160bab875b6",
626
+ "tests/builddep.pp": "4773f57072111e58f2ed833fa4489a88",
627
+ "templates/pin.pref.erb": "cc6dcd4fbc24ebd9393122983ee0fae3",
628
+ "manifests/update.pp": "bff1331f5467f146edf9fa43475fe532"
629
+ },
630
+ "dependencies": [
631
+ {
632
+ "version_requirement": ">= 2.2.1",
633
+ "name": "puppetlabs/stdlib"
634
+ }
635
+ ],
636
+ "license": "Apache License 2.0",
637
+ "version": "1.1.0"
638
+ },
639
+ "tags": [
640
+ "apt",
641
+ "debian",
642
+ "ubuntu",
643
+ "dpkg",
644
+ "apt-get",
645
+ "aptitude",
646
+ "ppa"
647
+ ],
648
+ "file_uri": "/v3/files/puppetlabs-apt-1.1.0.tar.gz",
649
+ "file_size": 15880,
650
+ "file_md5": "ac35dd5b6b7ba473f587f46caf72b08b",
651
+ "downloads": 53232,
652
+ "readme": "<section class=\"markdown\"><h1>Apt module for Puppet</h1>\n\n<h2>Description</h2>\n\n<p>Provides helpful definitions for dealing with Apt.</p>\n\n<h2>Usage</h2>\n\n<h3>apt</h3>\n\n<p>The apt class provides a number of common resources and options which\nare shared by the various defined types in this module. This class\nshould always be included in your manifests if you are using the <code>apt</code>\nmodule.</p>\n\n<pre><code>class { &#39;apt&#39;:\n always_apt_update =&gt; false,\n disable_keys =&gt; undef,\n proxy_host =&gt; false,\n proxy_port =&gt; &#39;8080&#39;,\n purge_sources_list =&gt; false,\n purge_sources_list_d =&gt; false,\n purge_preferences_d =&gt; false\n}\n</code></pre>\n\n<h3>apt::builddep</h3>\n\n<p>Install the build depends of a specified package.</p>\n\n<pre><code>apt::builddep { &quot;glusterfs-server&quot;: }\n</code></pre>\n\n<h3>apt::force</h3>\n\n<p>Force a package to be installed from a specific release. Useful when\nusing repositories like Debian unstable in Ubuntu.</p>\n\n<pre><code>apt::force { &quot;glusterfs-server&quot;:\n release =&gt; &quot;unstable&quot;,\n version =&gt; &#39;3.0.3&#39;,\n require =&gt; Apt::Source[&quot;debian_unstable&quot;],\n}\n</code></pre>\n\n<h3>apt::pin</h3>\n\n<p>Add an apt pin for a certain release.</p>\n\n<pre><code>apt::pin { &quot;karmic&quot;: priority =&gt; 700 }\napt::pin { &quot;karmic-updates&quot;: priority =&gt; 700 }\napt::pin { &quot;karmic-security&quot;: priority =&gt; 700 }\n</code></pre>\n\n<h3>apt::ppa</h3>\n\n<p>Add a ppa repository using <code>add-apt-repository</code>. Somewhat experimental.</p>\n\n<pre><code>apt::ppa { &quot;ppa:drizzle-developers/ppa&quot;: }\n</code></pre>\n\n<h3>apt::release</h3>\n\n<p>Set the default apt release. Useful when using repositories like\nDebian unstable in Ubuntu.</p>\n\n<pre><code>apt::release { &quot;karmic&quot;: }\n</code></pre>\n\n<h3>apt::source</h3>\n\n<p>Add an apt source to <code>/etc/apt/sources.list.d/</code>.</p>\n\n<pre><code>apt::source { &quot;debian_unstable&quot;:\n location =&gt; &quot;http://debian.mirror.iweb.ca/debian/&quot;,\n release =&gt; &quot;unstable&quot;,\n repos =&gt; &quot;main contrib non-free&quot;,\n required_packages =&gt; &quot;debian-keyring debian-archive-keyring&quot;,\n key =&gt; &quot;55BE302B&quot;,\n key_server =&gt; &quot;subkeys.pgp.net&quot;,\n pin =&gt; &quot;-10&quot;,\n include_src =&gt; true\n}\n</code></pre>\n\n<p>This source will configure your system for the Puppet Labs APT\nrepository.</p>\n\n<pre><code>apt::source { &#39;puppetlabs&#39;:\n location =&gt; &#39;http://apt.puppetlabs.com&#39;,\n repos =&gt; &#39;main&#39;,\n key =&gt; &#39;4BD6EC30&#39;,\n key_server =&gt; &#39;pgp.mit.edu&#39;,\n}\n</code></pre>\n\n<h3>apt::key</h3>\n\n<p>Add a key to the list of keys used by apt to authenticate packages.</p>\n\n<pre><code>apt::key { &quot;puppetlabs&quot;:\n key =&gt; &quot;4BD6EC30&quot;,\n key_server =&gt; &quot;pgp.mit.edu&quot;,\n}\n\napt::key { &quot;jenkins&quot;:\n key =&gt; &quot;D50582E6&quot;,\n key_source =&gt; &quot;http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key&quot;,\n}\n</code></pre>\n\n<p>Note that use of the &quot;key_source&quot; parameter requires wget to be\ninstalled and working.</p>\n\n<h2>Contributors</h2>\n\n<p>A lot of great people have contributed to this module. A somewhat\ncurrent list follows.</p>\n\n<p>Ben Godfrey <a href=\"mailto:ben.godfrey@wonga.com\">ben.godfrey@wonga.com</a>\nBranan Purvine-Riley <a href=\"mailto:branan@puppetlabs.com\">branan@puppetlabs.com</a>\nChristian G. Warden <a href=\"mailto:cwarden@xerus.org\">cwarden@xerus.org</a><br>\nDan Bode <a href=\"mailto:bodepd@gmail.com\">bodepd@gmail.com</a> <a href=\"mailto:dan@puppetlabs.com\">dan@puppetlabs.com</a><br>\nGarrett Honeycutt <a href=\"mailto:github@garretthoneycutt.com\">github@garretthoneycutt.com</a><br>\nJeff Wallace <a href=\"mailto:jeff@evolvingweb.ca\">jeff@evolvingweb.ca</a> <a href=\"mailto:jeff@tjwallace.ca\">jeff@tjwallace.ca</a><br>\nKen Barber <a href=\"mailto:ken@bob.sh\">ken@bob.sh</a><br>\nMatthaus Litteken <a href=\"mailto:matthaus@puppetlabs.com\">matthaus@puppetlabs.com</a> <a href=\"mailto:mlitteken@gmail.com\">mlitteken@gmail.com</a><br>\nMatthias Pigulla <a href=\"mailto:mp@webfactory.de\">mp@webfactory.de</a><br>\nMonty Taylor <a href=\"mailto:mordred@inaugust.com\">mordred@inaugust.com</a><br>\nPeter Drake <a href=\"mailto:pdrake@allplayers.com\">pdrake@allplayers.com</a><br>\nReid Vandewiele <a href=\"mailto:marut@cat.pdx.edu\">marut@cat.pdx.edu</a><br>\nRobert Navarro <a href=\"mailto:rnavarro@phiivo.com\">rnavarro@phiivo.com</a><br>\nRyan Coleman <a href=\"mailto:ryan@puppetlabs.com\">ryan@puppetlabs.com</a><br>\nScott McLeod <a href=\"mailto:scott.mcleod@theice.com\">scott.mcleod@theice.com</a><br>\nSpencer Krum <a href=\"mailto:spencer@puppetlabs.com\">spencer@puppetlabs.com</a><br>\nWilliam Van Hevelingen <a href=\"mailto:blkperl@cat.pdx.edu\">blkperl@cat.pdx.edu</a> <a href=\"mailto:wvan13@gmail.com\">wvan13@gmail.com</a><br>\nZach Leslie <a href=\"mailto:zach@puppetlabs.com\">zach@puppetlabs.com</a> </p>\n</section>",
653
+ "changelog": "<section class=\"plaintext\"><pre>2012-05-25 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.4\n * Fix ppa list filename when there is a period in the PPA name\n * Add .pref extension to apt preferences files\n * Allow preferences to be purged\n * Extend pin support\n\n2012-05-04 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.3\n * only invoke apt-get update once\n * only install python-software-properties if a ppa is added\n * support &#x27;ensure =&gt; absent&#x27; for all defined types\n * add apt::conf\n * add apt::backports\n * fixed Modulefile for module tool dependency resolution\n * configure proxy before doing apt-get update\n * use apt-get update instead of aptitude for apt::ppa\n * add support to pin release\n\n\n2012-03-26 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.2\n41cedbb (#13261) Add real examples to smoke tests.\nd159a78 (#13261) Add key.pp smoke test\n7116c7a (#13261) Replace foo source with puppetlabs source\n1ead0bf Ignore pkg directory.\n9c13872 (#13289) Fix some more style violations\n0ea4ffa (#13289) Change test scaffolding to use a module &amp; manifest dir fixture path\na758247 (#13289) Clean up style violations and fix corresponding tests\n99c3fd3 (#13289) Add puppet lint tests to Rakefile\n5148cbf (#13125) Apt keys should be case insensitive\nb9607a4 Convert apt::key to use anchors\n\n2012-03-07 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.1\nd4fec56 Modify apt::source release parameter test\n1132a07 (#12917) Add contributors to README\n8cdaf85 (#12823) Add apt::key defined type and modify apt::source to use it\n7c0d10b (#12809) $release should use $lsbdistcodename and fall back to manual input\nbe2cc3e (#12522) Adjust spec test for splitting purge\n7dc60ae (#12522) Split purge option to spare sources.list\n9059c4e Fix source specs to test all key permutations\n8acb202 Add test for python-software-properties package\na4af11f Check if python-software-properties is defined before attempting to define it.\n1dcbf3d Add tests for required_packages change\nf3735d2 Allow duplicate $required_packages\n74c8371 (#12430) Add tests for changes to apt module\n97ebb2d Test two sources with the same key\n1160bcd (#12526) Add ability to reverse apt { disable_keys =&gt; true }\n2842d73 Add Modulefile to puppet-apt\nc657742 Allow the use of the same key in multiple sources\n8c27963 (#12522) Adding purge option to apt class\n997c9fd (#12529) Add unit test for apt proxy settings\n50f3cca (#12529) Add parameter to support setting a proxy for apt\nd522877 (#12094) Replace chained .with_* with a hash\n8cf1bd0 (#12094) Remove deprecated spec.opts file\n2d688f4 (#12094) Add rspec-puppet tests for apt\n0fb5f78 (#12094) Replace name with path in file resources\nf759bc0 (#11953) Apt::force passes $version to aptitude\nf71db53 (#11413) Add spec test for apt::force to verify changes to unless\n2f5d317 (#11413) Update dpkg query used by apt::force\ncf6caa1 (#10451) Add test coverage to apt::ppa\n0dd697d include_src parameter in example; Whitespace cleanup\nb662eb8 fix typos in &quot;repositories&quot;\n1be7457 Fix (#10451) - apt::ppa fails to &quot;apt-get update&quot; when new PPA source is added\n864302a Set the pin priority before adding the source (Fix #10449)\n1de4e0a Refactored as per mlitteken\n1af9a13 Added some crazy bash madness to check if the ppa is installed already. Otherwise the manifest tries to add it on every run!\n52ca73e (#8720) Replace Apt::Ppa with Apt::Builddep\n5c05fa0 added builddep command.\na11af50 added the ability to specify the content of a key\nc42db0f Fixes ppa test.\n77d2b0d reformatted whitespace to match recommended style of 2 space indentation.\n27ebdfc ignore swap files.\n377d58a added smoke tests for module.\n18f614b reformatted apt::ppa according to recommended style.\nd8a1e4e Created a params class to hold global data.\n636ae85 Added two params for apt class\n148fc73 Update LICENSE.\ned2d19e Support ability to add more than one PPA\n420d537 Add call to apt-update after add-apt-repository in apt::ppa\n945be77 Add package definition for python-software-properties\n71fc425 Abs paths for all commands\n9d51cd1 Adding LICENSE\n71796e3 Heading fix in README\n87777d8 Typo in README\nf848bac First commit\n</pre></section>",
654
+ "license": "<section class=\"plaintext\"><pre>Copyright (c) 2011 Evolving Web Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the &quot;Software&quot;), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and&#x2F;or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n</pre></section>",
655
+ "created_at": "2012-12-02 16:05:23 -0800",
656
+ "updated_at": "2012-12-02 16:05:23 -0800",
657
+ "deleted_at": null
658
+ },
659
+ {
660
+ "uri": "/v3/releases/puppetlabs-firewall-0.4.2",
661
+ "module": {
662
+ "uri": "/v3/modules/puppetlabs-firewall",
663
+ "name": "firewall",
664
+ "owner": {
665
+ "uri": "/v3/users/puppetlabs",
666
+ "username": "puppetlabs",
667
+ "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
668
+ }
669
+ },
670
+ "version": "0.4.2",
671
+ "metadata": {
672
+ "name": "puppetlabs-firewall",
673
+ "version": "0.4.2",
674
+ "source": "git://github.com/puppetlabs/puppetlabs-firewall.git",
675
+ "author": "puppetlabs",
676
+ "license": "ASL 2.0",
677
+ "summary": "Firewall Module",
678
+ "description": "Manages Firewalls such as iptables",
679
+ "project_page": "http://forge.puppetlabs.com/puppetlabs/firewall",
680
+ "dependencies": [
681
+
682
+ ],
683
+ "types": [
684
+ {
685
+ "name": "firewall",
686
+ "doc": " This type provides the capability to manage firewall rules within\n puppet.\n\n **Autorequires:**\n\n If Puppet is managing the iptables or ip6tables chains specified in the\n `chain` or `jump` parameters, the firewall resource will autorequire\n those firewallchain resources.\n\n If Puppet is managing the iptables or iptables-persistent packages, and\n the provider is iptables or ip6tables, the firewall resource will\n autorequire those packages to ensure that any required binaries are\n installed.\n",
687
+ "properties": [
688
+ {
689
+ "name": "ensure",
690
+ "doc": " Manage the state of this rule. The default action is *present*.\n Valid values are `present`, `absent`."
691
+ },
692
+ {
693
+ "name": "action",
694
+ "doc": " This is the action to perform on a match. Can be one of:\n\n * accept - the packet is accepted\n * reject - the packet is rejected with a suitable ICMP response\n * drop - the packet is dropped\n\n If you specify no value it will simply match the rule but perform no\n action unless you provide a provider specific parameter (such as *jump*).\n Valid values are `accept`, `reject`, `drop`."
695
+ },
696
+ {
697
+ "name": "source",
698
+ "doc": " The source address. For example:\n\n source => '192.168.2.0/24'\n\n The source can also be an IPv6 address if your provider supports it.\n"
699
+ },
700
+ {
701
+ "name": "src_range",
702
+ "doc": " The source IP range. For example:\n\n src_range => '192.168.1.1-192.168.1.10'\n\n The source IP range is must in 'IP1-IP2' format.\n Values can match `/^((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)\\.){3}(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)-((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)\\.){3}(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)/`. Requires features iprange."
703
+ },
704
+ {
705
+ "name": "destination",
706
+ "doc": " The destination address to match. For example:\n\n destination => '192.168.1.0/24'\n\n The destination can also be an IPv6 address if your provider supports it.\n"
707
+ },
708
+ {
709
+ "name": "dst_range",
710
+ "doc": " The destination IP range. For example:\n\n dst_range => '192.168.1.1-192.168.1.10'\n\n The destination IP range is must in 'IP1-IP2' format.\n Values can match `/^((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)\\.){3}(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)-((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)\\.){3}(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)/`. Requires features iprange."
711
+ },
712
+ {
713
+ "name": "sport",
714
+ "doc": " The source port to match for this filter (if the protocol supports\n ports). Will accept a single element or an array.\n\n For some firewall providers you can pass a range of ports in the format:\n\n <start_number>-<ending_number>\n\n For example:\n\n 1-1024\n\n This would cover ports 1 to 1024.\n"
715
+ },
716
+ {
717
+ "name": "dport",
718
+ "doc": " The destination port to match for this filter (if the protocol supports\n ports). Will accept a single element or an array.\n\n For some firewall providers you can pass a range of ports in the format:\n\n <start_number>-<ending_number>\n\n For example:\n\n 1-1024\n\n This would cover ports 1 to 1024.\n"
719
+ },
720
+ {
721
+ "name": "port",
722
+ "doc": " The destination or source port to match for this filter (if the protocol\n supports ports). Will accept a single element or an array.\n\n For some firewall providers you can pass a range of ports in the format:\n\n <start_number>-<ending_number>\n\n For example:\n\n 1-1024\n\n This would cover ports 1 to 1024.\n"
723
+ },
724
+ {
725
+ "name": "dst_type",
726
+ "doc": " The destination address type. For example:\n\n dst_type => 'LOCAL'\n\n Can be one of:\n\n * UNSPEC - an unspecified address\n * UNICAST - a unicast address\n * LOCAL - a local address\n * BROADCAST - a broadcast address\n * ANYCAST - an anycast packet\n * MULTICAST - a multicast address\n * BLACKHOLE - a blackhole address\n * UNREACHABLE - an unreachable address\n * PROHIBIT - a prohibited address\n * THROW - undocumented\n * NAT - undocumented\n * XRESOLVE - undocumented\n Valid values are `UNSPEC`, `UNICAST`, `LOCAL`, `BROADCAST`, `ANYCAST`, `MULTICAST`, `BLACKHOLE`, `UNREACHABLE`, `PROHIBIT`, `THROW`, `NAT`, `XRESOLVE`. Requires features address_type."
727
+ },
728
+ {
729
+ "name": "src_type",
730
+ "doc": " The source address type. For example:\n\n src_type => 'LOCAL'\n\n Can be one of:\n\n * UNSPEC - an unspecified address\n * UNICAST - a unicast address\n * LOCAL - a local address\n * BROADCAST - a broadcast address\n * ANYCAST - an anycast packet\n * MULTICAST - a multicast address\n * BLACKHOLE - a blackhole address\n * UNREACHABLE - an unreachable address\n * PROHIBIT - a prohibited address\n * THROW - undocumented\n * NAT - undocumented\n * XRESOLVE - undocumented\n Valid values are `UNSPEC`, `UNICAST`, `LOCAL`, `BROADCAST`, `ANYCAST`, `MULTICAST`, `BLACKHOLE`, `UNREACHABLE`, `PROHIBIT`, `THROW`, `NAT`, `XRESOLVE`. Requires features address_type."
731
+ },
732
+ {
733
+ "name": "proto",
734
+ "doc": " The specific protocol to match for this rule. By default this is\n *tcp*.\n Valid values are `tcp`, `udp`, `icmp`, `ipv6-icmp`, `esp`, `ah`, `vrrp`, `igmp`, `ipencap`, `ospf`, `gre`, `all`."
735
+ },
736
+ {
737
+ "name": "tcp_flags",
738
+ "doc": " Match when the TCP flags are as specified.\n Is a string with a list of comma-separated flag names for the mask,\n then a space, then a comma-separated list of flags that should be set.\n The flags are: SYN ACK FIN RST URG PSH ALL NONE\n Note that you specify them in the order that iptables --list-rules\n would list them to avoid having puppet think you changed the flags.\n Example: FIN,SYN,RST,ACK SYN matches packets with the SYN bit set and the\n\t ACK,RST and FIN bits cleared. Such packets are used to request\n TCP connection initiation.\n Requires features tcp_flags."
739
+ },
740
+ {
741
+ "name": "chain",
742
+ "doc": " Name of the chain to use. Can be one of the built-ins:\n\n * INPUT\n * FORWARD\n * OUTPUT\n * PREROUTING\n * POSTROUTING\n\n Or you can provide a user-based chain.\n\n The default value is 'INPUT'.\n Values can match `/^[a-zA-Z0-9\\-_]+$/`. Requires features iptables."
743
+ },
744
+ {
745
+ "name": "table",
746
+ "doc": " Table to use. Can be one of:\n\n * nat\n * mangle\n * filter\n * raw\n * rawpost\n\n By default the setting is 'filter'.\n Valid values are `nat`, `mangle`, `filter`, `raw`, `rawpost`. Requires features iptables."
747
+ },
748
+ {
749
+ "name": "jump",
750
+ "doc": " The value for the iptables --jump parameter. Normal values are:\n\n * QUEUE\n * RETURN\n * DNAT\n * SNAT\n * LOG\n * MASQUERADE\n * REDIRECT\n * MARK\n\n But any valid chain name is allowed.\n\n For the values ACCEPT, DROP and REJECT you must use the generic\n 'action' parameter. This is to enfore the use of generic parameters where\n possible for maximum cross-platform modelling.\n\n If you set both 'accept' and 'jump' parameters, you will get an error as\n only one of the options should be set.\n Requires features iptables."
751
+ },
752
+ {
753
+ "name": "iniface",
754
+ "doc": " Input interface to filter on.\n Values can match `/^[a-zA-Z0-9\\-\\._\\+]+$/`. Requires features interface_match."
755
+ },
756
+ {
757
+ "name": "outiface",
758
+ "doc": " Output interface to filter on.\n Values can match `/^[a-zA-Z0-9\\-\\._\\+]+$/`. Requires features interface_match."
759
+ },
760
+ {
761
+ "name": "tosource",
762
+ "doc": " When using jump => \"SNAT\" you can specify the new source address using\n this parameter.\n Requires features snat."
763
+ },
764
+ {
765
+ "name": "todest",
766
+ "doc": " When using jump => \"DNAT\" you can specify the new destination address\n using this paramter.\n Requires features dnat."
767
+ },
768
+ {
769
+ "name": "toports",
770
+ "doc": " For DNAT this is the port that will replace the destination port.\n Requires features dnat."
771
+ },
772
+ {
773
+ "name": "reject",
774
+ "doc": " When combined with jump => \"REJECT\" you can specify a different icmp\n response to be sent back to the packet sender.\n Requires features reject_type."
775
+ },
776
+ {
777
+ "name": "log_level",
778
+ "doc": " When combined with jump => \"LOG\" specifies the system log level to log\n to.\n Requires features log_level."
779
+ },
780
+ {
781
+ "name": "log_prefix",
782
+ "doc": " When combined with jump => \"LOG\" specifies the log prefix to use when\n logging.\n Requires features log_prefix."
783
+ },
784
+ {
785
+ "name": "icmp",
786
+ "doc": " When matching ICMP packets, this is the type of ICMP packet to match.\n\n A value of \"any\" is not supported. To achieve this behaviour the\n parameter should simply be omitted or undefined.\n Requires features icmp_match."
787
+ },
788
+ {
789
+ "name": "state",
790
+ "doc": " Matches a packet based on its state in the firewall stateful inspection\n table. Values can be:\n\n * INVALID\n * ESTABLISHED\n * NEW\n * RELATED\n Valid values are `INVALID`, `ESTABLISHED`, `NEW`, `RELATED`. Requires features state_match."
791
+ },
792
+ {
793
+ "name": "limit",
794
+ "doc": " Rate limiting value for matched packets. The format is:\n rate/[/second/|/minute|/hour|/day].\n\n Example values are: '50/sec', '40/min', '30/hour', '10/day'.\"\n Requires features rate_limiting."
795
+ },
796
+ {
797
+ "name": "burst",
798
+ "doc": " Rate limiting burst value (per second) before limit checks apply.\n Values can match `/^\\d+$/`. Requires features rate_limiting."
799
+ },
800
+ {
801
+ "name": "uid",
802
+ "doc": " UID or Username owner matching rule. Accepts a string argument\n only, as iptables does not accept multiple uid in a single\n statement.\n Requires features owner."
803
+ },
804
+ {
805
+ "name": "gid",
806
+ "doc": " GID or Group owner matching rule. Accepts a string argument\n only, as iptables does not accept multiple gid in a single\n statement.\n Requires features owner."
807
+ },
808
+ {
809
+ "name": "set_mark",
810
+ "doc": " Set the Netfilter mark value associated with the packet. Accepts either of:\n mark/mask or mark. These will be converted to hex if they are not already.\n Requires features mark."
811
+ },
812
+ {
813
+ "name": "pkttype",
814
+ "doc": " Sets the packet type to match.\n Valid values are `unicast`, `broadcast`, `multicast`. Requires features pkttype."
815
+ },
816
+ {
817
+ "name": "isfragment",
818
+ "doc": " Set to true to match tcp fragments (requires type to be set to tcp)\n Valid values are `true`, `false`. Requires features isfragment."
819
+ },
820
+ {
821
+ "name": "socket",
822
+ "doc": " If true, matches if an open socket can be found by doing a coket lookup\n on the packet.\n Valid values are `true`, `false`. Requires features socket."
823
+ }
824
+ ],
825
+ "parameters": [
826
+ {
827
+ "name": "name",
828
+ "doc": " The canonical name of the rule. This name is also used for ordering\n so make sure you prefix the rule with a number:\n\n 000 this runs first\n 999 this runs last\n\n Depending on the provider, the name of the rule can be stored using\n the comment feature of the underlying firewall subsystem.\n Values can match `/^\\d+[[:alpha:][:digit:][:punct:][:space:]]+$/`."
829
+ },
830
+ {
831
+ "name": "line",
832
+ "doc": " Read-only property for caching the rule line.\n"
833
+ }
834
+ ],
835
+ "providers": [
836
+ {
837
+ "name": "ip6tables",
838
+ "doc": "Ip6tables type provider\n\nRequired binaries: `ip6tables`, `ip6tables-save`. Supported features: `dnat`, `icmp_match`, `interface_match`, `iptables`, `log_level`, `log_prefix`, `mark`, `owner`, `pkttype`, `rate_limiting`, `reject_type`, `snat`, `state_match`, `tcp_flags`."
839
+ },
840
+ {
841
+ "name": "iptables",
842
+ "doc": "Iptables type provider\n\nRequired binaries: `iptables`, `iptables-save`. Default for `kernel` == `linux`. Supported features: `address_type`, `dnat`, `icmp_match`, `interface_match`, `iprange`, `iptables`, `isfragment`, `log_level`, `log_prefix`, `mark`, `owner`, `pkttype`, `rate_limiting`, `reject_type`, `snat`, `socket`, `state_match`, `tcp_flags`."
843
+ }
844
+ ]
845
+ },
846
+ {
847
+ "name": "firewallchain",
848
+ "doc": " This type provides the capability to manage rule chains for firewalls.\n\n Currently this supports only iptables, ip6tables and ebtables on Linux. And\n provides support for setting the default policy on chains and tables that\n allow it.\n\n **Autorequires:**\n If Puppet is managing the iptables or iptables-persistent packages, and\n the provider is iptables_chain, the firewall resource will autorequire\n those packages to ensure that any required binaries are installed.\n",
849
+ "properties": [
850
+ {
851
+ "name": "ensure",
852
+ "doc": "The basic property that the resource should be in. Valid values are `present`, `absent`."
853
+ },
854
+ {
855
+ "name": "policy",
856
+ "doc": " This is the action to when the end of the chain is reached.\n It can only be set on inbuilt chains (INPUT, FORWARD, OUTPUT,\n PREROUTING, POSTROUTING) and can be one of:\n\n * accept - the packet is accepted\n * drop - the packet is dropped\n * queue - the packet is passed userspace\n * return - the packet is returned to calling (jump) queue\n or the default of inbuilt chains\n Valid values are `accept`, `drop`, `queue`, `return`."
857
+ }
858
+ ],
859
+ "parameters": [
860
+ {
861
+ "name": "name",
862
+ "doc": " The canonical name of the chain.\n\n For iptables the format must be {chain}:{table}:{protocol}.\n"
863
+ }
864
+ ],
865
+ "providers": [
866
+ {
867
+ "name": "iptables_chain",
868
+ "doc": "Iptables chain provider\n\nRequired binaries: `iptables`, `iptables-save`, `ip6tables`, `ip6tables-save`, `ebtables`, `ebtables-save`. Default for `kernel` == `linux`. Supported features: `iptables_chain`, `policy`."
869
+ }
870
+ ]
871
+ }
872
+ ],
873
+ "checksums": {
874
+ "CONTRIBUTING.md": "346969b756bc432a2a2fab4307ebb93a",
875
+ "Changelog": "1de1691b4ab10ee354f761a1f4c6f443",
876
+ "Gemfile": "cbdce086f4dbabe5394121e2281b739f",
877
+ "Gemfile.lock": "df949ce515d5c06d6ed31b9d7e5e3391",
878
+ "LICENSE": "ade7f2bb88b5b4f034152822222ec314",
879
+ "Modulefile": "5e06a785cd9bce7b53f95c23eba506d2",
880
+ "README.markdown": "41df885b5286abc9ba27f054c5ff6dbf",
881
+ "Rakefile": "35d0261289b65faa09bef45b888d40ae",
882
+ "lib/facter/ip6tables_version.rb": "091123ad703f1706686bca4398c5b06f",
883
+ "lib/facter/iptables_persistent_version.rb": "b7a47827cd3d3bb1acbd526a31da3acb",
884
+ "lib/facter/iptables_version.rb": "facbd760223f236538b731c1d1f6cf8f",
885
+ "lib/puppet/provider/firewall/ip6tables.rb": "e9579ae3afdf8b1392cbdc0335ef5464",
886
+ "lib/puppet/provider/firewall/iptables.rb": "bb7ea2c54c60c1047e68745f3b370c6f",
887
+ "lib/puppet/provider/firewall.rb": "32d2f5e5dcc082986b82ef26a119038b",
888
+ "lib/puppet/provider/firewallchain/iptables_chain.rb": "e98592c22901792305e0d20376c9a281",
889
+ "lib/puppet/type/firewall.rb": "2a591254b2df7528eafaa6dff5459ace",
890
+ "lib/puppet/type/firewallchain.rb": "91ebccecff290a9ab2116867a74080c7",
891
+ "lib/puppet/util/firewall.rb": "a9f0057c1b16a51a0bace5d4a8cc4ea4",
892
+ "lib/puppet/util/ipcidr.rb": "e1160dfd6e73fc5ef2bb8abc291f6fd5",
893
+ "manifests/init.pp": "ba3e697f00fc3d4e7e5b9c7fdbc6a89d",
894
+ "manifests/linux/archlinux.pp": "1257fe335ecafa0629b285dc8621cf75",
895
+ "manifests/linux/debian.pp": "626f0fd23f2f451ca14e2b7f690675fe",
896
+ "manifests/linux/redhat.pp": "44ce25057ae8d814465260767b39c414",
897
+ "manifests/linux.pp": "7380519131fa8daae0ef45f9a162aff7",
898
+ "spec/fixtures/iptables/conversion_hash.rb": "012d92a358cc0c74304de14657bf9a23",
899
+ "spec/spec_helper.rb": "faae8467928b93bd251a1a66e1eedbe5",
900
+ "spec/spec_helper_system.rb": "4981e0b995c12996e628d004ffdcc9f4",
901
+ "spec/system/basic_spec.rb": "34a22dedba01b8239024137bda8ab3f8",
902
+ "spec/system/class_spec.rb": "04d89039312c3b9293dbb680878101c6",
903
+ "spec/system/params_spec.rb": "f982f9eb6ecc8d6782b9267b59d321bf",
904
+ "spec/system/purge_spec.rb": "a336e8a20d4c330606bf5955799a7e35",
905
+ "spec/system/resource_cmd_spec.rb": "f991d2b7a3e2eb6d28471534cd38b0c8",
906
+ "spec/system/standard_usage_spec.rb": "f80f86703843775ac14635464e9f7549",
907
+ "spec/unit/classes/firewall_linux_archlinux_spec.rb": "1c600a9852ec328b14cb15b0630ed5ff",
908
+ "spec/unit/classes/firewall_linux_debian_spec.rb": "6334936fb16223cf15f637083c67850e",
909
+ "spec/unit/classes/firewall_linux_redhat_spec.rb": "f41b21caf6948f3ac08f42c1bc59ba1b",
910
+ "spec/unit/classes/firewall_linux_spec.rb": "b934ab4e0a806f29bfdabd2369e41d0e",
911
+ "spec/unit/classes/firewall_spec.rb": "14fc76eeb702913159661c01125baabb",
912
+ "spec/unit/facter/iptables_persistent_version_spec.rb": "98aa337aae2ae8a2ac7f70586351e928",
913
+ "spec/unit/facter/iptables_spec.rb": "ebb008f0e01530a49007228ca1a81097",
914
+ "spec/unit/puppet/provider/iptables_chain_spec.rb": "6265dbb6be5af74f056d32c7e7236d0a",
915
+ "spec/unit/puppet/provider/iptables_spec.rb": "b1e92084c8595b7e2ef21aa0800ea084",
916
+ "spec/unit/puppet/type/firewall_spec.rb": "f229613c1bec34b6f84b544e021dc856",
917
+ "spec/unit/puppet/type/firewallchain_spec.rb": "49157d8703daf8776e414ef9ea9e5cb3",
918
+ "spec/unit/puppet/util/firewall_spec.rb": "3d7858f46ea3c97617311b7a5cebbae1",
919
+ "spec/unit/puppet/util/ipcidr_spec.rb": "1a6eeb2dd7c9634fcfb60d8ead6e1d79"
920
+ }
921
+ },
922
+ "tags": [
923
+ "iptables",
924
+ "security",
925
+ "firewall",
926
+ "ip6tables",
927
+ "archlinux",
928
+ "redhat",
929
+ "centos",
930
+ "debian",
931
+ "ubuntu"
932
+ ],
933
+ "file_uri": "/v3/files/puppetlabs-firewall-0.4.2.tar.gz",
934
+ "file_size": 51834,
935
+ "file_md5": "7862ef0aa64d9a4b87152ef27302c9e4",
936
+ "downloads": 53034,
937
+ "readme": "<section class=\"markdown\"><h1>firewall</h1>\n\n<p><a href=\"https://travis-ci.org/puppetlabs/puppetlabs-firewall\"><img src=\"https://travis-ci.org/puppetlabs/puppetlabs-firewall.png?branch=master\" alt=\"Build Status\"></a></p>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the Firewall module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with Firewall</a>\n\n<ul>\n<li><a href=\"#what-firewall-affects\">What Firewall affects</a></li>\n<li><a href=\"#setup-requirements\">Setup Requirements</a></li>\n<li><a href=\"#beginning-with-firewall\">Beginning with Firewall</a></li>\n<li><a href=\"#upgrading\">Upgrading</a></li>\n</ul></li>\n<li><a href=\"#usage\">Usage - Configuration and customization options</a>\n\n<ul>\n<li><a href=\"#default-rules\">Default rules - Setting up general configurations for all firewalls</a></li>\n<li><a href=\"#application-specific-rules\">Application-specific rules - Options for configuring and managing firewalls across applications</a></li>\n<li><a href=\"#other-rules\">Other Rules</a></li>\n</ul></li>\n<li><a href=\"#reference\">Reference - An under-the-hood peek at what the module is doing</a></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a>\n\n<ul>\n<li><a href=\"#tests\">Tests - Testing your configuration</a></li>\n</ul></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The Firewall module lets you manage firewall rules with Puppet.</p>\n\n<h2>Module Description</h2>\n\n<p>PuppetLabs&#39; Firewall introduces the resource <code>firewall</code>, which is used to manage and configure firewall rules from within the Puppet DSL. This module offers support for iptables, ip6tables, and ebtables.</p>\n\n<p>The module also introduces the resource <code>firewallchain</code>, which allows you to manage chains or firewall lists. At the moment, only iptables and ip6tables chains are supported.</p>\n\n<h2>Setup</h2>\n\n<h3>What Firewall affects:</h3>\n\n<ul>\n<li>every node running a firewall</li>\n<li>system&#39;s firewall settings</li>\n<li>connection settings for managed nodes</li>\n<li>unmanaged resources (get purged)</li>\n<li>site.pp</li>\n</ul>\n\n<h3>Setup Requirements</h3>\n\n<p>Firewall uses Ruby-based providers, so you must have <a href=\"http://docs.puppetlabs.com/guides/plugins_in_modules.html#enabling-pluginsync\">pluginsync enabled</a>.</p>\n\n<h3>Beginning with Firewall</h3>\n\n<p>To begin, you need to provide some initial top-scope configuration to ensure your firewall configurations are ordered properly and you do not lock yourself out of your box or lose any configuration.</p>\n\n<p>Persistence of rules between reboots is handled automatically, although there are known issues with ip6tables on older Debian/Ubuntu, as well as known issues with ebtables.</p>\n\n<p>In your <code>site.pp</code> (or some similarly top-scope file), set up a metatype to purge unmanaged firewall resources. This will clear any existing rules and make sure that only rules defined in Puppet exist on the machine.</p>\n\n<pre><code>resources { &quot;firewall&quot;:\n purge =&gt; true\n}\n</code></pre>\n\n<p>Next, set up the default parameters for all of the firewall rules you will be establishing later. These defaults will ensure that the pre and post classes (you will be setting up in just a moment) are run in the correct order to avoid locking you out of your box during the first puppet run.</p>\n\n<pre><code>Firewall {\n before =&gt; Class[&#39;my_fw::post&#39;],\n require =&gt; Class[&#39;my_fw::pre&#39;],\n}\n</code></pre>\n\n<p>You also need to declare the <code>my_fw::pre</code> &amp; <code>my_fw::post</code> classes so that dependencies are satisfied. This can be achieved using an External Node Classifier or the following</p>\n\n<pre><code>class { [&#39;my_fw::pre&#39;, &#39;my_fw::post&#39;]: }\n</code></pre>\n\n<p>Finally, you should include the <code>firewall</code> class to ensure the correct packages are installed.</p>\n\n<pre><code>class { &#39;firewall&#39;: }\n</code></pre>\n\n<p>Now to create the <code>my_fw::pre</code> and <code>my_fw::post</code> classes. Firewall acts on your running firewall, making immediate changes as the catalog executes. Defining default pre and post rules allows you provide global defaults for your hosts before and after any custom rules; it is also required to avoid locking yourself out of your own boxes when Puppet runs. This approach employs a whitelist setup, so you can define what rules you want and everything else is ignored rather than removed.</p>\n\n<p>The <code>pre</code> class should be located in <code>my_fw/manifests/pre.pp</code> and should contain any default rules to be applied first.</p>\n\n<pre><code>class my_fw::pre {\n Firewall {\n require =&gt; undef,\n }\n\n # Default firewall rules\n firewall { &#39;000 accept all icmp&#39;:\n proto =&gt; &#39;icmp&#39;,\n action =&gt; &#39;accept&#39;,\n }-&gt;\n firewall { &#39;001 accept all to lo interface&#39;:\n proto =&gt; &#39;all&#39;,\n iniface =&gt; &#39;lo&#39;,\n action =&gt; &#39;accept&#39;,\n }-&gt;\n firewall { &#39;002 accept related established rules&#39;:\n proto =&gt; &#39;all&#39;,\n state =&gt; [&#39;RELATED&#39;, &#39;ESTABLISHED&#39;],\n action =&gt; &#39;accept&#39;,\n }\n}\n</code></pre>\n\n<p>The rules in <code>pre</code> should allow basic networking (such as ICMP and TCP), as well as ensure that existing connections are not closed.</p>\n\n<p>The <code>post</code> class should be located in <code>my_fw/manifests/post.pp</code> and include any default rules to be applied last.</p>\n\n<pre><code>class my_fw::post {\n firewall { &#39;999 drop all&#39;:\n proto =&gt; &#39;all&#39;,\n action =&gt; &#39;drop&#39;,\n before =&gt; undef,\n }\n}\n</code></pre>\n\n<p>To put it all together: the <code>before</code> parameter in <code>Firewall {}</code> ensures <code>my_fw::post</code> is run before any other rules and the the <code>require</code> parameter ensures <code>my_fw::pre</code> is run after any other rules. So the run order is:</p>\n\n<ul>\n<li>run the rules in <code>my_fw::pre</code></li>\n<li>run your rules (defined in code)</li>\n<li>run the rules in <code>my_fw::post</code></li>\n</ul>\n\n<h3>Upgrading</h3>\n\n<h4>Upgrading from version 0.2.0 and newer</h4>\n\n<p>Upgrade the module with the puppet module tool as normal:</p>\n\n<pre><code>puppet module upgrade puppetlabs/firewall\n</code></pre>\n\n<h4>Upgrading from version 0.1.1 and older</h4>\n\n<p>Start by upgrading the module using the puppet module tool:</p>\n\n<pre><code>puppet module upgrade puppetlabs/firewall\n</code></pre>\n\n<p>Previously, you would have required the following in your <code>site.pp</code> (or some other global location):</p>\n\n<pre><code># Always persist firewall rules\nexec { &#39;persist-firewall&#39;:\n command =&gt; $operatingsystem ? {\n &#39;debian&#39; =&gt; &#39;/sbin/iptables-save &gt; /etc/iptables/rules.v4&#39;,\n /(RedHat|CentOS)/ =&gt; &#39;/sbin/iptables-save &gt; /etc/sysconfig/iptables&#39;,\n },\n refreshonly =&gt; true,\n}\nFirewall {\n notify =&gt; Exec[&#39;persist-firewall&#39;],\n before =&gt; Class[&#39;my_fw::post&#39;],\n require =&gt; Class[&#39;my_fw::pre&#39;],\n}\nFirewallchain {\n notify =&gt; Exec[&#39;persist-firewall&#39;],\n}\nresources { &quot;firewall&quot;:\n purge =&gt; true\n}\n</code></pre>\n\n<p>With the latest version, we now have in-built persistence, so this is no longer needed. However, you will still need some basic setup to define pre &amp; post rules.</p>\n\n<pre><code>resources { &quot;firewall&quot;:\n purge =&gt; true\n}\nFirewall {\n before =&gt; Class[&#39;my_fw::post&#39;],\n require =&gt; Class[&#39;my_fw::pre&#39;],\n}\nclass { [&#39;my_fw::pre&#39;, &#39;my_fw::post&#39;]: }\nclass { &#39;firewall&#39;: }\n</code></pre>\n\n<p>Consult the the documentation below for more details around the classes <code>my_fw::pre</code> and <code>my_fw::post</code>.</p>\n\n<h2>Usage</h2>\n\n<p>There are two kinds of firewall rules you can use with Firewall: default rules and application-specific rules. Default rules apply to general firewall settings, whereas application-specific rules manage firewall settings of a specific application, node, etc.</p>\n\n<p>All rules employ a numbering system in the resource&#39;s title that is used for ordering. When titling your rules, make sure you prefix the rule with a number.</p>\n\n<pre><code> 000 this runs first\n 999 this runs last\n</code></pre>\n\n<h3>Default rules</h3>\n\n<p>You can place default rules in either <code>my_fw::pre</code> or <code>my_fw::post</code>, depending on when you would like them to run. Rules placed in the <code>pre</code> class will run first, rules in the <code>post</code> class, last.</p>\n\n<p>Depending on the provider, the title of the rule can be stored using the comment feature of the underlying firewall subsystem. Values can match <code>/^\\d+[[:alpha:][:digit:][:punct:][:space:]]+$/</code>.</p>\n\n<h4>Examples of default rules</h4>\n\n<p>Basic accept ICMP request example:</p>\n\n<pre><code>firewall { &quot;000 accept all icmp requests&quot;:\n proto =&gt; &quot;icmp&quot;,\n action =&gt; &quot;accept&quot;,\n}\n</code></pre>\n\n<p>Drop all:</p>\n\n<pre><code>firewall { &quot;999 drop all other requests&quot;:\n action =&gt; &quot;drop&quot;,\n}\n</code></pre>\n\n<h3>Application-specific rules</h3>\n\n<p>Application-specific rules can live anywhere you declare the firewall resource. It is best to put your firewall rules close to the service that needs it, such as in the module that configures it.</p>\n\n<p>You should be able to add firewall rules to your application-specific classes so firewalling is performed at the same time when the class is invoked.</p>\n\n<p>For example, if you have an Apache module, you could declare the class as below</p>\n\n<pre><code>class apache {\n firewall { &#39;100 allow http and https access&#39;:\n port =&gt; [80, 443],\n proto =&gt; tcp,\n action =&gt; accept,\n }\n # ... the rest of your code ...\n}\n</code></pre>\n\n<p>When someone uses the class, firewalling is provided automatically.</p>\n\n<pre><code>class { &#39;apache&#39;: }\n</code></pre>\n\n<h3>Other rules</h3>\n\n<p>You can also apply firewall rules to specific nodes. Usually, you will want to put the firewall rule in another class and apply that class to a node. But you can apply a rule to a node.</p>\n\n<pre><code>node &#39;foo.bar.com&#39; {\n firewall { &#39;111 open port 111&#39;:\n dport =&gt; 111\n }\n}\n</code></pre>\n\n<p>You can also do more complex things with the <code>firewall</code> resource. Here we are doing some NAT configuration.</p>\n\n<pre><code>firewall { &#39;100 snat for network foo2&#39;:\n chain =&gt; &#39;POSTROUTING&#39;,\n jump =&gt; &#39;MASQUERADE&#39;,\n proto =&gt; &#39;all&#39;,\n outiface =&gt; &quot;eth0&quot;,\n source =&gt; &#39;10.1.2.0/24&#39;,\n table =&gt; &#39;nat&#39;,\n}\n</code></pre>\n\n<p>In the below example, we are creating a new chain and forwarding any port 5000 access to it.</p>\n\n<pre><code>firewall { &#39;100 forward to MY_CHAIN&#39;:\n chain =&gt; &#39;INPUT&#39;,\n jump =&gt; &#39;MY_CHAIN&#39;,\n}\n# The namevar here is in the format chain_name:table:protocol\nfirewallchain { &#39;MY_CHAIN:filter:IPv4&#39;:\n ensure =&gt; present,\n}\nfirewall { &#39;100 my rule&#39;:\n chain =&gt; &#39;MY_CHAIN&#39;,\n action =&gt; &#39;accept&#39;,\n proto =&gt; &#39;tcp&#39;,\n dport =&gt; 5000,\n}\n</code></pre>\n\n<h3>Additional Information</h3>\n\n<p>You can access the inline documentation:</p>\n\n<pre><code>puppet describe firewall\n</code></pre>\n\n<p>Or</p>\n\n<pre><code>puppet doc -r type\n(and search for firewall)\n</code></pre>\n\n<h2>Reference</h2>\n\n<p>Classes:</p>\n\n<ul>\n<li><a href=\"#class-firewall\">firewall</a></li>\n</ul>\n\n<p>Types:</p>\n\n<ul>\n<li><a href=\"#type-firewall\">firewall</a></li>\n<li><a href=\"#type-firewallchain\">firewallchain</a></li>\n</ul>\n\n<p>Facts:</p>\n\n<ul>\n<li><a href=\"#fact-ip6tablesversion\">ip6tables_version</a></li>\n<li><a href=\"#fact-iptablesversion\">iptables_version</a></li>\n<li><a href=\"#fact-iptablespersistentversion\">iptables_persistent_version</a></li>\n</ul>\n\n<h3>Class: firewall</h3>\n\n<p>This class is provided to do the basic setup tasks required for using the firewall resources.</p>\n\n<p>At the moment this takes care of:</p>\n\n<ul>\n<li>iptables-persistent package installation</li>\n</ul>\n\n<p>You should include the class for nodes that need to use the resources in this module. For example</p>\n\n<pre><code>class { &#39;firewall&#39;: }\n</code></pre>\n\n<h4><code>ensure</code></h4>\n\n<p>Indicates the state of <code>iptables</code> on your system, allowing you to disable <code>iptables</code> if desired.</p>\n\n<p>Can either be <code>running</code> or <code>stopped</code>. Default to <code>running</code>.</p>\n\n<h3>Type: firewall</h3>\n\n<p>This type provides the capability to manage firewall rules within puppet.</p>\n\n<p>For more documentation on the type, access the &#39;Types&#39; tab on the Puppet Labs Forge:</p>\n\n<p><a href=\"http://forge.puppetlabs.com/puppetlabs/firewall#types\">http://forge.puppetlabs.com/puppetlabs/firewall#types</a></p>\n\n<h3>Type:: firewallchain</h3>\n\n<p>This type provides the capability to manage rule chains for firewalls.</p>\n\n<p>For more documentation on the type, access the &#39;Types&#39; tab on the Puppet Labs Forge:</p>\n\n<p><a href=\"http://forge.puppetlabs.com/puppetlabs/firewall#types\">http://forge.puppetlabs.com/puppetlabs/firewall#types</a></p>\n\n<h3>Fact: ip6tables_version</h3>\n\n<p>The module provides a Facter fact that can be used to determine what the default version of ip6tables is for your operating system/distribution.</p>\n\n<h3>Fact: iptables_version</h3>\n\n<p>The module provides a Facter fact that can be used to determine what the default version of iptables is for your operating system/distribution.</p>\n\n<h3>Fact: iptables_persistent_version</h3>\n\n<p>Retrieves the version of iptables-persistent from your OS. This is a Debian/Ubuntu specific fact.</p>\n\n<h2>Limitations</h2>\n\n<p>While we aim to support as low as Puppet 2.6.x (for now), we recommend installing the latest Puppet version from the Puppetlabs official repos.</p>\n\n<p>Please note, we only aim support for the following distributions and versions - that is, we actually do ongoing system tests on these platforms:</p>\n\n<ul>\n<li>Redhat 5.9 and 6.4</li>\n<li>Debian 6.0 and 7.0</li>\n<li>Ubuntu 10.04 and 12.04</li>\n</ul>\n\n<p>If you want a new distribution supported feel free to raise a ticket and we&#39;ll consider it. If you want an older revision supported we&#39;ll also consider it, but don&#39;t get insulted if we reject it. Specifically, we will not consider Redhat 4.x support - its just too old.</p>\n\n<p>If you really want to get support for your OS we suggest writing any patch fix yourself, and for continual system testing if you can provide a sufficient trusted Veewee template we could consider adding such an OS to our ongoing continuous integration tests.</p>\n\n<p>Also, as this is a 0.x release the API is still in flux and may change. Make sure\nyou read the release notes before upgrading.</p>\n\n<p>Bugs can be reported using Github Issues:</p>\n\n<p><a href=\"http://github.com/puppetlabs/puppetlabs-firewall/issues\">http://github.com/puppetlabs/puppetlabs-firewall/issues</a></p>\n\n<h2>Development</h2>\n\n<p>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.</p>\n\n<p>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.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<p>For this particular module, please also read CONTRIBUTING.md before contributing.</p>\n\n<p>Currently we support:</p>\n\n<ul>\n<li>iptables</li>\n<li>ip6tables</li>\n<li>ebtables (chains only)</li>\n</ul>\n\n<p>But plans are to support lots of other firewall implementations:</p>\n\n<ul>\n<li>FreeBSD (ipf)</li>\n<li>Mac OS X (ipfw)</li>\n<li>OpenBSD (pf)</li>\n<li>Cisco (ASA and basic access lists)</li>\n</ul>\n\n<p>If you have knowledge in these technologies, know how to code, and wish to contribute to this project, we would welcome the help.</p>\n\n<h3>Testing</h3>\n\n<p>Make sure you have:</p>\n\n<ul>\n<li>rake</li>\n<li>bundler</li>\n</ul>\n\n<p>Install the necessary gems:</p>\n\n<pre><code>bundle install\n</code></pre>\n\n<p>And run the tests from the root of the source code:</p>\n\n<pre><code>rake test\n</code></pre>\n\n<p>If you have a copy of Vagrant 1.1.0 you can also run the system tests:</p>\n\n<pre><code>RSPEC_SET=debian-606-x64 rake spec:system\nRSPEC_SET=centos-58-x64 rake spec:system\n</code></pre>\n\n<p><em>Note:</em> system testing is fairly alpha at this point, your mileage may vary.</p>\n</section>",
938
+ "changelog": "<section class=\"plaintext\"><pre>## puppetlabs-firewall changelog\n\nRelease notes for puppetlabs-firewall module.\n\n---------------------------------------\n\n#### 0.4.2 - 2013-09-10\n\nAnother attempt to fix the packaging issue. We think we understand exactly\nwhat is failing and this should work properly for the first time.\n\n---------------------------------------\n\n#### 0.4.1 - 2013-08-09\n\nBugfix release to fix a packaging issue that may have caused puppet module\ninstall commands to fail.\n\n---------------------------------------\n\n#### 0.4.0 - 2013-07-11\n\nThis release adds support for address type, src&#x2F;dest ip ranges, and adds\nadditional testing and bugfixes.\n\n#### Features\n* Add `src_type` and `dst_type` attributes (Nick Stenning)\n* Add `src_range` and `dst_range` attributes (Lei Zhang)\n* Add SL and SLC operatingsystems as supported (Steve Traylen)\n\n#### Bugfixes\n* Fix parser for bursts other than 5 (Chris Rutter)\n* Fix parser for -f in --comment (Georg Koester)\n* Add doc headers to class files (Dan Carley)\n* Fix lint warnings&#x2F;errors (Wolf Noble)\n\n---------------------------------------\n\n#### 0.3.1 - 2013&#x2F;6&#x2F;10\n\nThis minor release provides some bugfixes and additional tests.\n\n#### Changes\n\n* Update tests for rspec-system-puppet 2 (Ken Barber)\n* Update rspec-system tests for rspec-system-puppet 1.5 (Ken Barber)\n* Ensure all services have &#x27;hasstatus =&gt; true&#x27; for Puppet 2.6 (Ken Barber)\n* Accept pre-existing rule with invalid name (Joe Julian)\n* Swap log_prefix and log_level order to match the way it&#x27;s saved (Ken Barber)\n* Fix log test to replicate bug #182 (Ken Barber)\n* Split argments while maintaining quoted strings (Joe Julian)\n* Add more log param tests (Ken Barber)\n* Add extra tests for logging parameters (Ken Barber)\n* Clarify OS support (Ken Barber)\n\n---------------------------------------\n\n#### 0.3.0 - 2013&#x2F;4&#x2F;25\n\nThis release introduces support for Arch Linux and extends support for Fedora 15 and up. There are also lots of bugs fixed and improved testing to prevent regressions.\n\n##### Changes\n\n* Fix error reporting for insane hostnames (Tomas Doran)\n* Support systemd on Fedora 15 and up (Eduardo Gutierrez)\n* Move examples to docs (Ken Barber)\n* Add support for Arch Linux platform (Ingmar Steen)\n* Add match rule for fragments (Georg Koester)\n* Fix boolean rules being recognized as changed (Georg Koester)\n* Same rules now get deleted (Anastasis Andronidis)\n* Socket params test (Ken Barber)\n* Ensure parameter can disable firewall (Marc Tardif)\n\n---------------------------------------\n\n#### 0.2.1 - 2012&#x2F;3&#x2F;13\n\nThis maintenance release introduces the new README layout, and fixes a bug with iptables_persistent_version.\n\n##### Changes\n\n* (GH-139) Throw away STDERR from dpkg-query in Fact\n* Update README to be consistent with module documentation template\n* Fix failing spec tests due to dpkg change in iptables_persistent_version\n\n---------------------------------------\n\n#### 0.2.0 - 2012&#x2F;3&#x2F;3\n\nThis release introduces automatic persistence, removing the need for the previous manual dependency requirement for persistent the running rules to the OS persistence file.\n\nPreviously you would have required the following in your site.pp (or some other global location):\n\n # Always persist firewall rules\n exec { &#x27;persist-firewall&#x27;:\n command =&gt; $operatingsystem ? {\n &#x27;debian&#x27; =&gt; &#x27;&#x2F;sbin&#x2F;iptables-save &gt; &#x2F;etc&#x2F;iptables&#x2F;rules.v4&#x27;,\n &#x2F;(RedHat|CentOS)&#x2F; =&gt; &#x27;&#x2F;sbin&#x2F;iptables-save &gt; &#x2F;etc&#x2F;sysconfig&#x2F;iptables&#x27;,\n },\n refreshonly =&gt; true,\n }\n Firewall {\n notify =&gt; Exec[&#x27;persist-firewall&#x27;],\n before =&gt; Class[&#x27;my_fw::post&#x27;],\n require =&gt; Class[&#x27;my_fw::pre&#x27;],\n }\n Firewallchain {\n notify =&gt; Exec[&#x27;persist-firewall&#x27;],\n }\n resources { &quot;firewall&quot;:\n purge =&gt; true\n }\n\nYou only need:\n\n class { &#x27;firewall&#x27;: }\n Firewall {\n before =&gt; Class[&#x27;my_fw::post&#x27;],\n require =&gt; Class[&#x27;my_fw::pre&#x27;],\n }\n\nTo install pre-requisites and to create dependencies on your pre &amp; post rules. Consult the README for more information.\n\n##### Changes\n\n* Firewall class manifests (Dan Carley)\n* Firewall and firewallchain persistence (Dan Carley)\n* (GH-134) Autorequire iptables related packages (Dan Carley)\n* Typo in #persist_iptables OS normalisation (Dan Carley)\n* Tests for #persist_iptables (Dan Carley)\n* (GH-129) Replace errant return in autoreq block (Dan Carley)\n\n---------------------------------------\n\n#### 0.1.1 - 2012&#x2F;2&#x2F;28\n\nThis release primarily fixes changing parameters in 3.x\n\n##### Changes\n\n* (GH-128) Change method_missing usage to define_method for 3.x compatibility\n* Update travis.yml gem specifications to actually test 2.6\n* Change source in Gemfile to use a specific URL for Ruby 2.0.0 compatibility\n\n---------------------------------------\n\n#### 0.1.0 - 2012&#x2F;2&#x2F;24\n\nThis release is somewhat belated, so no summary as there are far too many changes this time around. Hopefully we won&#x27;t fall this far behind again :-).\n\n##### Changes\n\n* Add support for MARK target and set-mark property (Johan Huysmans)\n* Fix broken call to super for ruby-1.9.2 in munge (Ken Barber)\n* simple fix of the error message for allowed values of the jump property (Daniel Black)\n* Adding OSPF(v3) protocol to puppetlabs-firewall (Arnoud Vermeer)\n* Display multi-value: port, sport, dport and state command seperated (Daniel Black)\n* Require jump=&gt;LOG for log params (Daniel Black)\n* Reject and document icmp =&gt; &quot;any&quot; (Dan Carley)\n* add firewallchain type and iptables_chain provider (Daniel Black)\n* Various fixes for firewallchain resource (Ken Barber)\n* Modify firewallchain name to be chain:table:protocol (Ken Barber)\n* Fix allvalidchain iteration (Ken Barber)\n* Firewall autorequire Firewallchains (Dan Carley)\n* Tests and docstring for chain autorequire (Dan Carley)\n* Fix README so setup instructions actually work (Ken Barber)\n* Support vlan interfaces (interface containing &quot;.&quot;) (Johan Huysmans)\n* Add tests for VLAN support for iniface&#x2F;outiface (Ken Barber)\n* Add the table when deleting rules (Johan Huysmans)\n* Fix tests since we are now prefixing -t)\n* Changed &#x27;jump&#x27; to &#x27;action&#x27;, commands to lower case (Jason Short)\n* Support interface names containing &quot;+&quot; (Simon Deziel)\n* Fix for when iptables-save spews out &quot;FATAL&quot; errors (Sharif Nassar)\n* Fix for incorrect limit command arguments for ip6tables provider (Michael Hsu)\n* Document Util::Firewall.host_to_ip (Dan Carley)\n* Nullify addresses with zero prefixlen (Dan Carley)\n* Add support for --tcp-flags (Thomas Vander Stichele)\n* Make tcp_flags support a feature (Ken Barber)\n* OUTPUT is a valid chain for the mangle table (Adam Gibbins)\n* Enable travis-ci support (Ken Barber)\n* Convert an existing test to CIDR (Dan Carley)\n* Normalise iptables-save to CIDR (Dan Carley)\n* be clearer about what distributions we support (Ken Barber)\n* add gre protocol to list of acceptable protocols (Jason Hancock)\n* Added pkttype property (Ashley Penney)\n* Fix mark to not repeat rules with iptables 1.4.1+ (Sharif Nassar)\n* Stub iptables_version for now so tests run on non-Linux hosts (Ken Barber)\n* Stub iptables facts for set_mark tests (Dan Carley)\n* Update formatting of README to meet Puppet Labs best practices (Will Hopper)\n* Support for ICMP6 type code resolutions (Dan Carley)\n* Insert order hash included chains from different tables (Ken Barber)\n* rspec 2.11 compatibility (Jonathan Boyett)\n* Add missing class declaration in README (sfozz)\n* array_matching is contraindicated (Sharif Nassar)\n* Convert port Fixnum into strings (Sharif Nassar)\n* Update test framework to the modern age (Ken Barber)\n* working with ip6tables support (wuwx)\n* Remove gemfile.lock and add to gitignore (William Van Hevelingen)\n* Update travis and gemfile to be like stdlib travis files (William Van Hevelingen)\n* Add support for -m socket option (Ken Barber)\n* Add support for single --sport and --dport parsing (Ken Barber)\n* Fix tests for Ruby 1.9.3 from 3e13bf3 (Dan Carley)\n* Mock Resolv.getaddress in #host_to_ip (Dan Carley)\n* Update docs for source and dest - they are not arrays (Ken Barber)\n\n---------------------------------------\n\n#### 0.0.4 - 2011&#x2F;12&#x2F;05\n\nThis release adds two new parameters, &#x27;uid&#x27; and &#x27;gid&#x27;. As a part of the owner module, these params allow you to specify a uid, username, gid, or group got a match:\n\n firewall { &#x27;497 match uid&#x27;:\n port =&gt; &#x27;123&#x27;,\n proto =&gt; &#x27;mangle&#x27;,\n chain =&gt; &#x27;OUTPUT&#x27;,\n action =&gt; &#x27;drop&#x27;\n uid =&gt; &#x27;123&#x27;\n }\n\nThis release also adds value munging for the &#x27;log_level&#x27;, &#x27;source&#x27;, and &#x27;destination&#x27; parameters. The &#x27;source&#x27; and &#x27;destination&#x27; now support hostnames:\n\n firewall { &#x27;498 accept from puppetlabs.com&#x27;:\n port =&gt; &#x27;123&#x27;,\n proto =&gt; &#x27;tcp&#x27;,\n source =&gt; &#x27;puppetlabs.com&#x27;,\n action =&gt; &#x27;accept&#x27;\n }\n\n\nThe &#x27;log_level&#x27; parameter now supports using log level names, such as &#x27;warn&#x27;, &#x27;debug&#x27;, and &#x27;panic&#x27;:\n\n firewall { &#x27;499 logging&#x27;:\n port =&gt; &#x27;123&#x27;,\n proto =&gt; &#x27;udp&#x27;,\n log_level =&gt; &#x27;debug&#x27;,\n action =&gt; &#x27;drop&#x27;\n }\n\nAdditional changes include iptables and ip6tables version facts, general whitespace cleanup, and adding additional unit tests.\n\n##### Changes\n\n* (#10957) add iptables_version and ip6tables_version facts\n* (#11093) Improve log_level property so it converts names to numbers\n* (#10723) Munge hostnames and IPs to IPs with CIDR\n* (#10718) Add owner-match support\n* (#10997) Add fixtures for ipencap\n* (#11034) Whitespace cleanup\n* (#10690) add port property support to ip6tables\n\n---------------------------------------\n\n#### 0.0.3 - 2011&#x2F;11&#x2F;12\n\nThis release introduces a new parameter &#x27;port&#x27; which allows you to set both\nsource and destination ports for a match:\n\n firewall { &quot;500 allow NTP requests&quot;:\n port =&gt; &quot;123&quot;,\n proto =&gt; &quot;udp&quot;,\n action =&gt; &quot;accept&quot;,\n }\n\nWe also have the limit parameter finally working:\n\n firewall { &quot;500 limit HTTP requests&quot;:\n dport =&gt; 80,\n proto =&gt; tcp,\n limit =&gt; &quot;60&#x2F;sec&quot;,\n burst =&gt; 30,\n action =&gt; accept,\n }\n\nState ordering has been fixed now, and more characters are allowed in the\nnamevar:\n\n* Alphabetical\n* Numbers\n* Punctuation\n* Whitespace\n\n##### Changes\n\n* (#10693) Ensure -m limit is added for iptables when using &#x27;limit&#x27; param\n* (#10690) Create new port property\n* (#10700) allow additional characters in comment string\n* (#9082) Sort iptables --state option values internally to keep it consistent across runs\n* (#10324) Remove extraneous whitespace from iptables rule line in spec tests\n\n---------------------------------------\n\n#### 0.0.2 - 2011&#x2F;10&#x2F;26\n\nThis is largely a maintanence and cleanup release, but includes the ability to\nspecify ranges of ports in the sport&#x2F;dport parameter:\n\n firewall { &quot;500 allow port range&quot;:\n dport =&gt; [&quot;3000-3030&quot;,&quot;5000-5050&quot;],\n sport =&gt; [&quot;1024-65535&quot;],\n action =&gt; &quot;accept&quot;,\n }\n\n##### Changes\n\n* (#10295) Work around bug #4248 whereby the puppet&#x2F;util paths are not being loaded correctly on the puppetmaster\n* (#10002) Change to dport and sport to handle ranges, and fix handling of name to name to port\n* (#10263) Fix tests on Puppet 2.6.x\n* (#10163) Cleanup some of the inline documentation and README file to align with general forge usage\n\n---------------------------------------\n\n#### 0.0.1 - 2011&#x2F;10&#x2F;18\n\nInitial release.\n\n##### Changes\n\n* (#9362) Create action property and perform transformation for accept, drop, reject value for iptables jump parameter\n* (#10088) Provide a customised version of CONTRIBUTING.md\n* (#10026) Re-arrange provider and type spec files to align with Puppet\n* (#10026) Add aliases for test,specs,tests to Rakefile and provide -T as default\n* (#9439) fix parsing and deleting existing rules\n* (#9583) Fix provider detection for gentoo and unsupported linuxes for the iptables provider\n* (#9576) Stub provider so it works properly outside of Linux\n* (#9576) Align spec framework with Puppet core\n* and lots of other earlier development tasks ...\n</pre></section>",
939
+ "license": "<section class=\"plaintext\"><pre>Puppet Firewall Module - Puppet module for managing Firewalls\n\nCopyright (C) 2011-2013 Puppet Labs, Inc.\nCopyright (C) 2011 Jonathan Boyett\nCopyright (C) 2011 Media Temple, Inc.\n\nSome of the iptables code was taken from puppet-iptables which was:\n\nCopyright (C) 2011 Bob.sh Limited\nCopyright (C) 2008 Camptocamp Association\nCopyright (C) 2007 Dmitri Priimak\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
940
+ "created_at": "2013-09-10 13:27:07 -0700",
941
+ "updated_at": "2013-09-10 13:27:07 -0700",
942
+ "deleted_at": null
943
+ },
944
+ {
945
+ "uri": "/v3/releases/puppetlabs-stdlib-3.2.0",
946
+ "module": {
947
+ "uri": "/v3/modules/puppetlabs-stdlib",
948
+ "name": "stdlib",
949
+ "owner": {
950
+ "uri": "/v3/users/puppetlabs",
951
+ "username": "puppetlabs",
952
+ "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
953
+ }
954
+ },
955
+ "version": "3.2.0",
956
+ "metadata": {
957
+ "license": "Apache 2.0",
958
+ "version": "3.2.0",
959
+ "types": [
960
+ {
961
+ "doc": " A simple resource type intended to be used as an anchor in a composite class.\n\n In Puppet 2.6, when a class declares another class, the resources in the\n interior class are not contained by the exterior class. This interacts badly\n with the pattern of composing complex modules from smaller classes, as it\n makes it impossible for end users to specify order relationships between the\n exterior class and other modules.\n\n The anchor type lets you work around this. By sandwiching any interior\n classes between two no-op resources that _are_ contained by the exterior\n class, you can ensure that all resources in the module are contained.\n\n class ntp {\n # These classes will have the correct order relationship with each\n # other. However, without anchors, they won't have any order\n # relationship to Class['ntp'].\n class { 'ntp::package': }\n -> class { 'ntp::config': }\n -> class { 'ntp::service': }\n\n # These two resources \"anchor\" the composed classes within the ntp\n # class.\n anchor { 'ntp::begin': } -> Class['ntp::package']\n Class['ntp::service'] -> anchor { 'ntp::end': }\n }\n\n This allows the end user of the ntp module to establish require and before\n relationships with Class['ntp']:\n\n class { 'ntp': } -> class { 'mcollective': }\n class { 'mcollective': } -> class { 'ntp': }\n\n",
962
+ "parameters": [
963
+ {
964
+ "doc": "The name of the anchor resource.",
965
+ "name": "name"
966
+ }
967
+ ],
968
+ "name": "anchor",
969
+ "properties": [
970
+
971
+ ]
972
+ },
973
+ {
974
+ "doc": " Ensures that a given line is contained within a file. The implementation\n matches the full line, including whitespace at the beginning and end. If\n the line is not contained in the given file, Puppet will add the line to\n ensure the desired state. Multiple resources may be declared to manage\n multiple lines in the same file.\n\n Example:\n\n file_line { 'sudo_rule':\n path => '/etc/sudoers',\n line => '%sudo ALL=(ALL) ALL',\n }\n file_line { 'sudo_rule_nopw':\n path => '/etc/sudoers',\n line => '%sudonopw ALL=(ALL) NOPASSWD: ALL',\n }\n\n In this example, Puppet will ensure both of the specified lines are\n contained in the file /etc/sudoers.\n\n",
975
+ "providers": [
976
+ {
977
+ "doc": "",
978
+ "name": "ruby"
979
+ }
980
+ ],
981
+ "parameters": [
982
+ {
983
+ "doc": "An arbitrary name used as the identity of the resource.",
984
+ "name": "name"
985
+ },
986
+ {
987
+ "doc": "An optional regular expression to run against existing lines in the file;\\nif a match is found, we replace that line rather than adding a new line.",
988
+ "name": "match"
989
+ },
990
+ {
991
+ "doc": "The line to be appended to the file located by the path parameter.",
992
+ "name": "line"
993
+ },
994
+ {
995
+ "doc": "The file Puppet will ensure contains the line specified by the line parameter.",
996
+ "name": "path"
997
+ }
998
+ ],
999
+ "name": "file_line",
1000
+ "properties": [
1001
+ {
1002
+ "doc": "The basic property that the resource should be in. Valid values are `present`, `absent`.",
1003
+ "name": "ensure"
1004
+ }
1005
+ ]
1006
+ }
1007
+ ],
1008
+ "description": "Standard Library for Puppet Modules",
1009
+ "source": "git://github.com/puppetlabs/puppetlabs-stdlib",
1010
+ "summary": "Puppet Module Standard Library",
1011
+ "author": "puppetlabs",
1012
+ "dependencies": [
1013
+
1014
+ ],
1015
+ "name": "puppetlabs-stdlib",
1016
+ "checksums": {
1017
+ "spec/unit/puppet/parser/functions/member_spec.rb": "067c60985efc57022ca1c5508d74d77f",
1018
+ "spec/unit/puppet/parser/functions/validate_string_spec.rb": "3c04a751615a86656f04d313028a4cf4",
1019
+ "lib/puppet/parser/functions/str2saltedsha512.rb": "49afad7b386be38ce53deaefef326e85",
1020
+ "lib/puppet/parser/functions/grep.rb": "5682995af458b05f3b53dd794c4bf896",
1021
+ "spec/spec_helper.rb": "4449b0cafd8f7b2fb440c0cdb0a1f2b3",
1022
+ "spec/functions/ensure_packages_spec.rb": "935b4aec5ab36bdd0458c1a9b2a93ad5",
1023
+ "spec/unit/puppet/provider/file_line/ruby_spec.rb": "e8cd7432739cb212d40a9148523bd4d7",
1024
+ "spec/unit/puppet/parser/functions/getvar_spec.rb": "842bf88d47077a9ae64097b6e39c3364",
1025
+ "lib/puppet/parser/functions/is_array.rb": "875ca4356cb0d7a10606fb146b4a3d11",
1026
+ "lib/puppet/parser/functions/parsejson.rb": "e7f968c34928107b84cd0860daf50ab1",
1027
+ "lib/puppet/parser/functions/validate_array.rb": "72b29289b8af1cfc3662ef9be78911b8",
1028
+ "spec/unit/puppet/parser/functions/upcase_spec.rb": "813668919bc62cdd1d349dafc19fbbb3",
1029
+ "lib/puppet/parser/functions/ensure_packages.rb": "ca852b2441ca44b91a984094de4e3afc",
1030
+ "lib/puppet/parser/functions/values.rb": "066a6e4170e5034edb9a80463dff2bb5",
1031
+ "lib/puppet/parser/functions/chomp.rb": "7040b3348d2f770f265cf4c8c25c51c5",
1032
+ "lib/puppet/parser/functions/sort.rb": "504b033b438461ca4f9764feeb017833",
1033
+ "spec/unit/puppet/parser/functions/to_bytes_spec.rb": "80aaf68cf7e938e46b5278c1907af6be",
1034
+ "lib/puppet/parser/functions/validate_re.rb": "c6664b3943bc820415a43f16372dc2a9",
1035
+ "lib/puppet/parser/functions/validate_bool.rb": "4ddffdf5954b15863d18f392950b88f4",
1036
+ "lib/puppet/parser/functions/is_numeric.rb": "6283dd52935fb1aba41958e50c85b1ed",
1037
+ "lib/puppet/parser/functions/to_bytes.rb": "83f23c33adbfa42b2a9d9fc2db3daeb4",
1038
+ "spec/unit/puppet/parser/functions/has_interface_with_spec.rb": "7c16d731c518b434c81b8cb2227cc916",
1039
+ "spec/unit/puppet/parser/functions/size_spec.rb": "d126b696b21a8cd754d58f78ddba6f06",
1040
+ "spec/watchr.rb": "b588ddf9ef1c19ab97aa892cc776da73",
1041
+ "lib/puppet/parser/functions/min.rb": "35f1e50e7f9ff6d5b04e48952d4e13bd",
1042
+ "lib/puppet/parser/functions/prefix.rb": "6a2d86233c9435afc1738f60a0c34576",
1043
+ "spec/unit/puppet/parser/functions/sort_spec.rb": "7039cd230a94e95d9d1de2e1094acae2",
1044
+ "spec/unit/puppet/parser/functions/downcase_spec.rb": "b0197829512f2e92a2d2b06ce8e2226f",
1045
+ "spec/unit/facter/root_home_spec.rb": "4f4c4236ac2368d2e27fd2f3eb606a19",
1046
+ "lib/puppet/parser/functions/flatten.rb": "251d63696564254d41742ecbfbfcb9fd",
1047
+ "spec/unit/puppet/parser/functions/join_keys_to_values_spec.rb": "7c7937411b7fe4bb944c0c022d3a96b0",
1048
+ "spec/unit/puppet/parser/functions/delete_spec.rb": "0d84186ea618523b4b2a4ca0b5a09c9e",
1049
+ "lib/puppet/parser/functions/downcase.rb": "9204a04c2a168375a38d502db8811bbe",
1050
+ "spec/unit/puppet/parser/functions/flatten_spec.rb": "c1c039171d1baef89452092731b9e003",
1051
+ "manifests/init.pp": "f2ba5f36e7227ed87bbb69034fc0de8b",
1052
+ "spec/unit/puppet/parser/functions/is_domain_name_spec.rb": "8eed3a9eb9334bf6a473ad4e2cabc2ec",
1053
+ "spec/unit/puppet/parser/functions/is_integer_spec.rb": "8237a89bdb32c69c5bd4a275eb7df8b7",
1054
+ "tests/file_line.pp": "67727539aa7b7dd76f06626fe734f7f7",
1055
+ "lib/puppet/parser/functions/empty.rb": "ae92905c9d94ddca30bf56b7b1dabedf",
1056
+ "spec/unit/puppet/parser/functions/is_ip_address_spec.rb": "6040a9bae4e5c853966148b634501157",
1057
+ "spec/spec.opts": "a600ded995d948e393fbe2320ba8e51c",
1058
+ "tests/has_ip_network.pp": "2250fc62ed9aec64bd8542ac12829005",
1059
+ "spec/unit/puppet/parser/functions/hash_spec.rb": "826337a92d8f7a189b7ac19615db0ed7",
1060
+ "spec/unit/puppet/parser/functions/capitalize_spec.rb": "82a4209a033fc88c624f708c12e64e2a",
1061
+ "lib/puppet/parser/functions/delete.rb": "9b17b9f7f820adf02360147c1a2f4279",
1062
+ "spec/unit/puppet/parser/functions/has_ip_network_spec.rb": "885ea8a4c987b735d683b742bf846cb1",
1063
+ "lib/puppet/parser/functions/chop.rb": "4cc840d63ec172d8533a613676391d39",
1064
+ "lib/puppet/parser/functions/delete_at.rb": "6bc24b79390d463d8be95396c963381a",
1065
+ "lib/puppet/parser/functions/getvar.rb": "10bf744212947bc6a7bfd2c9836dbd23",
1066
+ "spec/unit/puppet/parser/functions/range_spec.rb": "91d69115dea43f62a2dca9a10467d836",
1067
+ "spec/unit/puppet/parser/functions/reverse_spec.rb": "48169990e59081ccbd112b6703418ce4",
1068
+ "lib/puppet/parser/functions/abs.rb": "c2f2c4a62a56e7adbf5cf0b292e081fc",
1069
+ "spec/unit/puppet/parser/functions/validate_hash_spec.rb": "399d936c9532e7f328291027b7535ea7",
1070
+ "lib/puppet/parser/functions/unique.rb": "217ccce6d23235af92923f50f8556963",
1071
+ "lib/facter/facter_dot_d.rb": "926b2c2e886a43c615d7663029d43595",
1072
+ "spec/unit/puppet/parser/functions/uriescape_spec.rb": "8d9e15156d93fe29bfe91a2e83352ff4",
1073
+ "lib/puppet/parser/functions/zip.rb": "a80782461ed9465f0cd0c010936f1855",
1074
+ "lib/puppet/parser/functions/has_key.rb": "7cd9728c38f0b0065f832dabd62b0e7e",
1075
+ "lib/puppet/parser/functions/is_float.rb": "491937483b14fbe2594a6e0e9af6acf9",
1076
+ "spec/unit/puppet/parser/functions/chop_spec.rb": "4e9534d25b952b261c9f46add677c390",
1077
+ "lib/puppet/type/anchor.rb": "cc1da7acfe1259d5b86a64e2dea42c34",
1078
+ "lib/puppet/parser/functions/has_ip_address.rb": "ee207f47906455a5aa49c4fb219dd325",
1079
+ "lib/puppet/provider/file_line/ruby.rb": "f0f61ee3076d6b8f5883872abe844f37",
1080
+ "spec/unit/puppet/parser/functions/prefix_spec.rb": "16a95b321d76e773812693c80edfbe36",
1081
+ "lib/puppet/parser/functions/bool2num.rb": "8e627eee990e811e35e7e838c586bd77",
1082
+ "spec/unit/puppet/parser/functions/shuffle_spec.rb": "2141a54d2fb3cf725b88184d639677f4",
1083
+ "lib/puppet/parser/functions/hash.rb": "75fd86c01d5b1e50be1bc8b22d3d0a61",
1084
+ "lib/puppet/parser/functions/reverse.rb": "1386371c0f5301055fdf99079e862b3e",
1085
+ "spec/unit/puppet/parser/functions/bool2num_spec.rb": "67c3055d5d4e4c9fbcaca82038a09081",
1086
+ "manifests/stages.pp": "cc6ed1751d334b0ea278c0335c7f0b5a",
1087
+ "lib/puppet/parser/functions/upcase.rb": "a5744a74577cfa136fca2835e75888d3",
1088
+ "lib/puppet/parser/functions/squeeze.rb": "ae5aafb7478cced0ba0c23856e45cec5",
1089
+ "lib/puppet/parser/functions/time.rb": "08d88d52abd1e230e3a2f82107545d48",
1090
+ "spec/unit/puppet/parser/functions/values_at_spec.rb": "de45fd8abbc4c037c3c4fac2dcf186f9",
1091
+ "lib/puppet/parser/functions/strip.rb": "273d547c7b05c0598556464dfd12f5fd",
1092
+ "spec/unit/puppet/parser/functions/str2saltedsha512_spec.rb": "215579d1a544bd62b251bf048c565b26",
1093
+ "lib/facter/pe_version.rb": "4a9353952963b011759f3e6652a10da5",
1094
+ "spec/unit/puppet/parser/functions/is_float_spec.rb": "6545a48ae74b5b9986f46e0cc177f200",
1095
+ "spec/unit/puppet/parser/functions/has_ip_address_spec.rb": "f53c7baeaf024ff577447f6c28c0f3a7",
1096
+ "spec/unit/puppet/parser/functions/validate_re_spec.rb": "b21292ad2f30c0d43ab2f0c2df0ba7d5",
1097
+ "lib/puppet/parser/functions/swapcase.rb": "4902f38f0b9292afec66d40fee4b02ec",
1098
+ "lib/puppet/parser/functions/capitalize.rb": "14481fc8c7c83fe002066ebcf6722f17",
1099
+ "spec/monkey_patches/publicize_methods.rb": "1b03a4af94f7dac35f7c2809caf372ca",
1100
+ "lib/puppet/parser/functions/fqdn_rotate.rb": "20743a138c56fc806a35cb7b60137dbc",
1101
+ "spec/unit/puppet/parser/functions/strftime_spec.rb": "bf140883ecf3254277306fa5b25f0344",
1102
+ "lib/puppet/parser/functions/validate_slength.rb": "0ca530d1d3b45c3fe2d604c69acfc22f",
1103
+ "lib/facter/root_home.rb": "f559294cceafcf70799339627d94871d",
1104
+ "lib/puppet/parser/functions/get_module_path.rb": "d4bf50da25c0b98d26b75354fa1bcc45",
1105
+ "spec/unit/puppet/parser/functions/get_module_path_spec.rb": "24c75fb78853f05d35d041b59232c3f4",
1106
+ "spec/unit/puppet/parser/functions/chomp_spec.rb": "3cd8e2fe6b12efeffad94cce5b693b7c",
1107
+ "spec/functions/ensure_resource_spec.rb": "0ff2b16e3b1d23603c6cbfca08109c02",
1108
+ "lib/puppet/parser/functions/is_hash.rb": "8c7d9a05084dab0389d1b779c8a05b1a",
1109
+ "spec/unit/puppet/parser/functions/merge_spec.rb": "a0e0d7514b90a157def16244cbbf81df",
1110
+ "spec/unit/puppet/parser/functions/has_key_spec.rb": "3e4e730d98bbdfb88438b6e08e45868e",
1111
+ "spec/unit/puppet/parser/functions/is_string_spec.rb": "5c015d8267de852da3a12b984e077092",
1112
+ "lib/puppet/parser/functions/type.rb": "62f914d6c90662aaae40c5539701be60",
1113
+ "LICENSE": "38a048b9d82e713d4e1b2573e370a756",
1114
+ "tests/init.pp": "1d98070412c76824e66db4b7eb74d433",
1115
+ "lib/puppet/parser/functions/loadyaml.rb": "2b912f257aa078e376d3b3f6a86c2a00",
1116
+ "spec/unit/facter/util/puppet_settings_spec.rb": "345bcbef720458e25be0190b7638e4d9",
1117
+ "spec/unit/puppet/type/file_line_spec.rb": "0f532215c0467bf323b233c9f1733e37",
1118
+ "lib/puppet/parser/functions/join_keys_to_values.rb": "f29da49531228f6ca5b3aa0df00a14c2",
1119
+ "lib/facter/util/puppet_settings.rb": "9f1d2593d0ae56bfca89d4b9266aeee1",
1120
+ "lib/puppet/parser/functions/lstrip.rb": "210b103f78622e099f91cc2956b6f741",
1121
+ "spec/unit/puppet/parser/functions/rstrip_spec.rb": "a408e933753c9c323a05d7079d32cbb3",
1122
+ "lib/puppet/parser/functions/pick.rb": "2bede116a0651405c47e650bbf942abe",
1123
+ "lib/puppet/parser/functions/member.rb": "541e67d06bc4155e79b00843a125e9bc",
1124
+ "spec/unit/puppet/parser/functions/str2bool_spec.rb": "a3f9c1e4121a58e02c1614cc771d180d",
1125
+ "lib/puppet/parser/functions/max.rb": "02975799d44ded069c1a0769cbf8b73b",
1126
+ "spec/unit/puppet/parser/functions/fqdn_rotate_spec.rb": "c053cb14a26e820713c882040f0569ab",
1127
+ "lib/puppet/parser/functions/size.rb": "8972d48c0f9e487d659bd7326b40b642",
1128
+ "spec/unit/puppet/parser/functions/validate_absolute_path_spec.rb": "07839082d24d5a7628fd5bce6c8b35c3",
1129
+ "Rakefile": "f37e6131fe7de9a49b09d31596f5fbf1",
1130
+ "spec/unit/puppet/parser/functions/num2bool_spec.rb": "7c80e016a73122fa5f921dac02626d89",
1131
+ "tests/has_interface_with.pp": "384f0afaafc04dcbd6b0bda20214854c",
1132
+ "spec/unit/puppet/parser/functions/unique_spec.rb": "2df8b3b2edb9503943cb4dcb4a371867",
1133
+ "spec/unit/puppet/parser/functions/validate_array_spec.rb": "3fd3c8cca1c69e47e89acf27fafd2ddb",
1134
+ "spec/unit/puppet/parser/functions/empty_spec.rb": "028c30267d648a172d8a81a9262c3abe",
1135
+ "spec/functions/defined_with_params_spec.rb": "3bdfac38e3d6f06140ff2e926f4ebed2",
1136
+ "lib/puppet/type/file_line.rb": "3e8222cb58f3503b3ea7de3647c602a0",
1137
+ "spec/unit/puppet/parser/functions/parsejson_spec.rb": "37ab84381e035c31d6a3dd9bf73a3d53",
1138
+ "spec/monkey_patches/alias_should_to_must.rb": "7cd4065c63f06f1ab3aaa1c5f92af947",
1139
+ "spec/unit/puppet/parser/functions/grep_spec.rb": "78179537496a7150469e591a95e255d8",
1140
+ "spec/unit/puppet/parser/functions/is_hash_spec.rb": "408e121a5e30c4c5c4a0a383beb6e209",
1141
+ "RELEASE_PROCESS.markdown": "1981f306c0047720e37be07bb6c976a4",
1142
+ "spec/unit/puppet/parser/functions/lstrip_spec.rb": "1fc2c2d80b5f724a358c3cfeeaae6249",
1143
+ "lib/puppet/parser/functions/shuffle.rb": "6445e6b4dc62c37b184a60eeaf34414b",
1144
+ "lib/puppet/parser/functions/reject.rb": "689f6a7c961a55fe9dcd240921f4c7f9",
1145
+ "lib/puppet/parser/functions/merge.rb": "52281fe881b762e2adfef20f58dc4180",
1146
+ "CHANGELOG": "0b2b98610735e1634acdf5596dedb262",
1147
+ "spec/unit/puppet/parser/functions/type_spec.rb": "422f2c33458fe9b0cc9614d16f7573ba",
1148
+ "lib/puppet/parser/functions/validate_hash.rb": "e9cfaca68751524efe16ecf2f958a9a0",
1149
+ "lib/puppet/parser/functions/ensure_resource.rb": "5c2e7990e22e5a532931627b4aaf545b",
1150
+ "spec/unit/puppet/parser/functions/validate_bool_spec.rb": "9b1e15d42a7aaa45e56cca0e60ac1fc3",
1151
+ "lib/puppet/parser/functions/str2bool.rb": "846b49d623cb847c1870d7ac4a6bedf3",
1152
+ "lib/puppet/parser/functions/range.rb": "033048bba333fe429e77e0f2e91db25f",
1153
+ "lib/puppet/parser/functions/is_domain_name.rb": "fba9f855df3bbf90d72dfd5201f65d2b",
1154
+ "lib/puppet/parser/functions/has_ip_network.rb": "b4d726c8b2a0afac81ced8a3a28aa731",
1155
+ "lib/facter/puppet_vardir.rb": "c7ddc97e8a84ded3dd93baa5b9b3283d",
1156
+ "README.markdown": "719cd9e9c77c8af555ac54baaf62c036",
1157
+ "spec/unit/puppet/parser/functions/keys_spec.rb": "35cc2ed490dc68da6464f245dfebd617",
1158
+ "spec/unit/puppet/parser/functions/strip_spec.rb": "a01796bebbdabd3fad12b0662ea5966e",
1159
+ "spec/unit/puppet/parser/functions/abs_spec.rb": "0a5864a29a8e9e99acc483268bd5917c",
1160
+ "spec/unit/puppet/parser/functions/is_array_spec.rb": "8c020af9c360abdbbf1ba887bb26babe",
1161
+ "lib/puppet/parser/functions/validate_absolute_path.rb": "385137ac24a2dec6cecc4e6ea75be442",
1162
+ "spec/unit/puppet/parser/functions/validate_slength_spec.rb": "a1b4d805149dc0143e9a57e43e1f84bf",
1163
+ "lib/puppet/parser/functions/rstrip.rb": "8a0d69876bdbc88a2054ba41c9c38961",
1164
+ "lib/puppet/parser/functions/join.rb": "b28087823456ca5cf943de4a233ac77f",
1165
+ "lib/puppet/parser/functions/is_ip_address.rb": "a53f6e3a5855954148230846ccb3e04d",
1166
+ "spec/unit/facter/pe_version_spec.rb": "ef031cca838f36f99b1dab3259df96a5",
1167
+ "spec/unit/puppet/parser/functions/is_numeric_spec.rb": "0527750a0960bae36c14f6705fd50f37",
1168
+ "spec/unit/puppet/parser/functions/reject_spec.rb": "8e16c9f064870e958b6278261e480954",
1169
+ "spec/unit/puppet/parser/functions/is_mac_address_spec.rb": "644cd498b426ff2f9ea9cbc5d8e141d7",
1170
+ "lib/puppet/parser/functions/has_interface_with.rb": "8d3ebca805dc6edb88b6b7a13d404787",
1171
+ "lib/puppet/parser/functions/defined_with_params.rb": "ffab4433d03f32b551f2ea024a2948fc",
1172
+ "spec/unit/puppet/parser/functions/join_spec.rb": "c3b50c39390a86b493511be2c6722235",
1173
+ "spec/unit/puppet/parser/functions/squeeze_spec.rb": "df5b349c208a9a2a4d4b8e6d9324756f",
1174
+ "spec/unit/puppet/parser/functions/parseyaml_spec.rb": "65dfed872930ffe0d21954c15daaf498",
1175
+ "lib/puppet/parser/functions/strftime.rb": "e02e01a598ca5d7d6eee0ba22440304a",
1176
+ "lib/puppet/parser/functions/parseyaml.rb": "6cfee471d287c8d110a3629a9ac31b69",
1177
+ "spec/unit/puppet/parser/functions/time_spec.rb": "b6d0279062779efe5153fe5cfafc5bbd",
1178
+ "spec/unit/puppet/parser/functions/delete_at_spec.rb": "5a4287356b5bd36a6e4c100421215b8e",
1179
+ "README_DEVELOPER.markdown": "220a8b28521b5c5d2ea87c4ddb511165",
1180
+ "lib/puppet/parser/functions/values_at.rb": "094ac110ce9f7a5b16d0c80a0cf2243c",
1181
+ "lib/puppet/parser/functions/num2bool.rb": "dbdc81982468ebb8ac24ab78d7097ad3",
1182
+ "lib/puppet/parser/functions/is_mac_address.rb": "288bd4b38d4df42a83681f13e7eaaee0",
1183
+ "spec/unit/puppet/parser/functions/swapcase_spec.rb": "0660ce8807608cc8f98ad1edfa76a402",
1184
+ "spec/unit/puppet/parser/functions/max_spec.rb": "8c8eb040afb373d55c88745377fc2313",
1185
+ "lib/puppet/parser/functions/keys.rb": "eb6ac815ea14fbf423580ed903ef7bad",
1186
+ "Modulefile": "a635981fa8fed0970b7eb1581e785924",
1187
+ "tests/has_ip_address.pp": "f8ac1b6d3c75c484d0b8b33f24a732b1",
1188
+ "spec/unit/puppet/parser/functions/min_spec.rb": "8371e367c8ff0525308b9cbeeba3ab94",
1189
+ "spec/unit/puppet/parser/functions/pick_spec.rb": "aba6247d3925e373272fca6768fd5403",
1190
+ "spec/unit/puppet/parser/functions/zip_spec.rb": "06a86e4e70d2aea63812582aae1d26c4",
1191
+ "lib/puppet/parser/functions/validate_string.rb": "6afcbc51f83f0714348b8d61e06ea7eb",
1192
+ "spec/unit/puppet/parser/functions/values_spec.rb": "0ac9e141ed1f612d7cc224f747b2d1d9",
1193
+ "spec/unit/puppet/type/anchor_spec.rb": "a5478a72a7fab2d215f39982a9230c18",
1194
+ "lib/puppet/parser/functions/uriescape.rb": "9ebc34f1b2f319626512b8cd7cde604c",
1195
+ "lib/puppet/parser/functions/is_string.rb": "2bd9a652bbb2668323eee6c57729ff64",
1196
+ "lib/puppet/parser/functions/is_integer.rb": "6520458000b349f1c7ba7c9ed382ae0b"
1197
+ },
1198
+ "project_page": "https://github.com/puppetlabs/puppetlabs-stdlib"
1199
+ },
1200
+ "tags": [
1201
+ "puppetlabs",
1202
+ "library",
1203
+ "stdlib",
1204
+ "standard",
1205
+ "stages"
1206
+ ],
1207
+ "file_uri": "/v3/files/puppetlabs-stdlib-3.2.0.tar.gz",
1208
+ "file_size": 55678,
1209
+ "file_md5": "aeef7a080c7367728dcb47239cddb5ef",
1210
+ "downloads": 51733,
1211
+ "readme": "<section class=\"markdown\"><h1>Puppet Labs Standard Library</h1>\n\n<p>This module provides a &quot;standard library&quot; of resources for developing Puppet\nModules. This modules will include the following additions to Puppet</p>\n\n<ul>\n<li>Stages</li>\n<li>Facts</li>\n<li>Functions</li>\n<li>Defined resource types</li>\n<li>Types</li>\n<li>Providers</li>\n</ul>\n\n<p>This module is officially curated and provided by Puppet Labs. The modules\nPuppet Labs writes and distributes will make heavy use of this standard\nlibrary.</p>\n\n<p>To report or research a bug with any part of this module, please go to\n<a href=\"http://projects.puppetlabs.com/projects/stdlib\">http://projects.puppetlabs.com/projects/stdlib</a></p>\n\n<h1>Versions</h1>\n\n<p>This module follows semver.org (v1.0.0) versioning guidelines. The standard\nlibrary module is released as part of <a href=\"http://puppetlabs.com/puppet/puppet-enterprise/\">Puppet\nEnterprise</a> and as a result\nolder versions of Puppet Enterprise that Puppet Labs still supports will have\nbugfix maintenance branches periodically &quot;merged up&quot; into master. The current\nlist of integration branches are:</p>\n\n<ul>\n<li>v2.1.x (v2.1.1 released in PE 1.2, 1.2.1, 1.2.3, 1.2.4)</li>\n<li>v2.2.x (Never released as part of PE, only to the Forge)</li>\n<li>v2.3.x (Released in PE 2.5.x)</li>\n<li>master (mainline development branch)</li>\n</ul>\n\n<p>The first Puppet Enterprise version including the stdlib module is Puppet\nEnterprise 1.2.</p>\n\n<h1>Compatibility</h1>\n\n<p>The stdlib module does not work with Puppet versions released prior to Puppet\n2.6.0.</p>\n\n<h2>stdlib 2.x</h2>\n\n<p>All stdlib releases in the 2.0 major version support Puppet 2.6 and Puppet 2.7.</p>\n\n<h2>stdlib 3.x</h2>\n\n<p>The 3.0 major release of stdlib drops support for Puppet 2.6. Stdlib 3.x\nsupports Puppet 2.7.</p>\n\n<h1>Functions</h1>\n\n<h2>abs</h2>\n\n<p>Returns the absolute value of a number, for example -34.56 becomes 34.56. Takes\na single integer and float value as an argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>bool2num</h2>\n\n<p>Converts a boolean to a number. Converts the values:\nfalse, f, 0, n, and no to 0\ntrue, t, 1, y, and yes to 1\n Requires a single boolean or string as an input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>capitalize</h2>\n\n<p>Capitalizes the first letter of a string or array of strings.\nRequires either a single string or an array as an input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>chomp</h2>\n\n<p>Removes the record separator from the end of a string or an array of strings,\nfor example <code>hello\\n</code> becomes <code>hello</code>. Requires a single string or array as an\ninput.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>chop</h2>\n\n<p>Returns a new string with the last character removed. If the string ends\nwith <code>\\r\\n</code>, both characters are removed. Applying chop to an empty\nstring returns an empty string. If you wish to merely remove record\nseparators then you should use the <code>chomp</code> function.\nRequires a string or array of strings as input.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>defined_with_params</h2>\n\n<p>Takes a resource reference and an optional hash of attributes.</p>\n\n<p>Returns true if a resource with the specified attributes has already been added\nto the catalog, and false otherwise.</p>\n\n<pre><code>user { &#39;dan&#39;:\n ensure =&gt; present,\n}\n\nif ! defined_with_params(User[dan], {&#39;ensure&#39; =&gt; &#39;present&#39; }) {\n user { &#39;dan&#39;: ensure =&gt; present, }\n}\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>delete</h2>\n\n<p>Deletes a selected element from an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>delete([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], &#39;b&#39;)\n</code></pre>\n\n<p>Would return: [&#39;a&#39;,&#39;c&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>delete_at</h2>\n\n<p>Deletes a determined indexed value from an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>delete_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], 1)\n</code></pre>\n\n<p>Would return: [&#39;a&#39;,&#39;c&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>downcase</h2>\n\n<p>Converts the case of a string or all strings in an array to lower case.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>empty</h2>\n\n<p>Returns true if the variable is empty.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>ensure_resource</h2>\n\n<p>Takes a resource type, title, and a list of attributes that describe a\nresource.</p>\n\n<pre><code>user { &#39;dan&#39;:\n ensure =&gt; present,\n}\n</code></pre>\n\n<p>This example only creates the resource if it does not already exist:</p>\n\n<pre><code>ensure_resource(&#39;user, &#39;dan&#39;, {&#39;ensure&#39; =&gt; &#39;present&#39; })\n</code></pre>\n\n<p>If the resource already exists but does not match the specified parameters,\nthis function will attempt to recreate the resource leading to a duplicate\nresource definition error.</p>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>flatten</h2>\n\n<p>This function flattens any deeply nested arrays and returns a single flat array\nas a result.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>flatten([&#39;a&#39;, [&#39;b&#39;, [&#39;c&#39;]]])\n</code></pre>\n\n<p>Would return: [&#39;a&#39;,&#39;b&#39;,&#39;c&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>fqdn_rotate</h2>\n\n<p>Rotates an array a random number of times based on a nodes fqdn.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>get_module_path</h2>\n\n<p>Returns the absolute path of the specified module for the current\nenvironment.</p>\n\n<p>Example:\n $module_path = get_module_path(&#39;stdlib&#39;)</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>getvar</h2>\n\n<p>Lookup a variable in a remote namespace.</p>\n\n<p>For example:</p>\n\n<pre><code>$foo = getvar(&#39;site::data::foo&#39;)\n# Equivalent to $foo = $site::data::foo\n</code></pre>\n\n<p>This is useful if the namespace itself is stored in a string:</p>\n\n<pre><code>$datalocation = &#39;site::data&#39;\n$bar = getvar(&quot;${datalocation}::bar&quot;)\n# Equivalent to $bar = $site::data::bar\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>grep</h2>\n\n<p>This function searches through an array and returns any elements that match\nthe provided regular expression.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>grep([&#39;aaa&#39;,&#39;bbb&#39;,&#39;ccc&#39;,&#39;aaaddd&#39;], &#39;aaa&#39;)\n</code></pre>\n\n<p>Would return:</p>\n\n<pre><code>[&#39;aaa&#39;,&#39;aaaddd&#39;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>has_key</h2>\n\n<p>Determine if a hash has a certain key value.</p>\n\n<p>Example:</p>\n\n<pre><code>$my_hash = {&#39;key_one&#39; =&gt; &#39;value_one&#39;}\nif has_key($my_hash, &#39;key_two&#39;) {\n notice(&#39;we will not reach here&#39;)\n}\nif has_key($my_hash, &#39;key_one&#39;) {\n notice(&#39;this will be printed&#39;)\n}\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>hash</h2>\n\n<p>This function converts and array into a hash.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>hash([&#39;a&#39;,1,&#39;b&#39;,2,&#39;c&#39;,3])\n</code></pre>\n\n<p>Would return: {&#39;a&#39;=&gt;1,&#39;b&#39;=&gt;2,&#39;c&#39;=&gt;3}</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_array</h2>\n\n<p>Returns true if the variable passed to this function is an array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_domain_name</h2>\n\n<p>Returns true if the string passed to this function is a syntactically correct domain name.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_float</h2>\n\n<p>Returns true if the variable passed to this function is a float.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_hash</h2>\n\n<p>Returns true if the variable passed to this function is a hash.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_integer</h2>\n\n<p>Returns true if the variable returned to this string is an integer.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_ip_address</h2>\n\n<p>Returns true if the string passed to this function is a valid IP address.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_mac_address</h2>\n\n<p>Returns true if the string passed to this function is a valid mac address.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_numeric</h2>\n\n<p>Returns true if the variable passed to this function is a number.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>is_string</h2>\n\n<p>Returns true if the variable passed to this function is a string.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>join</h2>\n\n<p>This function joins an array into a string using a seperator.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>join([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], &quot;,&quot;)\n</code></pre>\n\n<p>Would result in: &quot;a,b,c&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>keys</h2>\n\n<p>Returns the keys of a hash as an array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>loadyaml</h2>\n\n<p>Load a YAML file containing an array, string, or hash, and return the data\nin the corresponding native data type.</p>\n\n<p>For example:</p>\n\n<pre><code>$myhash = loadyaml(&#39;/etc/puppet/data/myhash.yaml&#39;)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>lstrip</h2>\n\n<p>Strips leading spaces to the left of a string.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>member</h2>\n\n<p>This function determines if a variable is a member of an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>member([&#39;a&#39;,&#39;b&#39;], &#39;b&#39;)\n</code></pre>\n\n<p>Would return: true</p>\n\n<pre><code>member([&#39;a&#39;,&#39;b&#39;], &#39;c&#39;)\n</code></pre>\n\n<p>Would return: false</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>merge</h2>\n\n<p>Merges two or more hashes together and returns the resulting hash.</p>\n\n<p>For example:</p>\n\n<pre><code>$hash1 = {&#39;one&#39; =&gt; 1, &#39;two&#39;, =&gt; 2}\n$hash2 = {&#39;two&#39; =&gt; &#39;dos&#39;, &#39;three&#39;, =&gt; &#39;tres&#39;}\n$merged_hash = merge($hash1, $hash2)\n# The resulting hash is equivalent to:\n# $merged_hash = {&#39;one&#39; =&gt; 1, &#39;two&#39; =&gt; &#39;dos&#39;, &#39;three&#39; =&gt; &#39;tres&#39;}\n</code></pre>\n\n<p>When there is a duplicate key, the key in the rightmost hash will &quot;win.&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>num2bool</h2>\n\n<p>This function converts a number into a true boolean. Zero becomes false. Numbers\nhigher then 0 become true.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>parsejson</h2>\n\n<p>This function accepts JSON as a string and converts into the correct Puppet\nstructure.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>parseyaml</h2>\n\n<p>This function accepts YAML as a string and converts it into the correct\nPuppet structure.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>prefix</h2>\n\n<p>This function applies a prefix to all elements in an array.</p>\n\n<p><em>Examles:</em></p>\n\n<pre><code>prefix([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], &#39;p&#39;)\n</code></pre>\n\n<p>Will return: [&#39;pa&#39;,&#39;pb&#39;,&#39;pc&#39;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>range</h2>\n\n<p>When given range in the form of (start, stop) it will extrapolate a range as\nan array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>range(&quot;0&quot;, &quot;9&quot;)\n</code></pre>\n\n<p>Will return: [0,1,2,3,4,5,6,7,8,9]</p>\n\n<pre><code>range(&quot;00&quot;, &quot;09&quot;)\n</code></pre>\n\n<p>Will return: <a href=\"Zero%20padded%20strings%20are%20converted%20to%0Aintegers%20automatically\">0,1,2,3,4,5,6,7,8,9</a></p>\n\n<pre><code>range(&quot;a&quot;, &quot;c&quot;)\n</code></pre>\n\n<p>Will return: [&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]</p>\n\n<pre><code>range(&quot;host01&quot;, &quot;host10&quot;)\n</code></pre>\n\n<p>Will return: [&quot;host01&quot;, &quot;host02&quot;, ..., &quot;host09&quot;, &quot;host10&quot;]</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>reverse</h2>\n\n<p>Reverses the order of a string or array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>rstrip</h2>\n\n<p>Strips leading spaces to the right of the string.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>shuffle</h2>\n\n<p>Randomizes the order of a string or array elements.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>size</h2>\n\n<p>Returns the number of elements in a string or array.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>sort</h2>\n\n<p>Sorts strings and arrays lexically.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>squeeze</h2>\n\n<p>Returns a new string where runs of the same character that occur in this set\nare replaced by a single character.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>str2bool</h2>\n\n<p>This converts a string to a boolean. This attempt to convert strings that\ncontain things like: y, 1, t, true to &#39;true&#39; and strings that contain things\nlike: 0, f, n, false, no to &#39;false&#39;.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>str2saltedsha512</h2>\n\n<p>This converts a string to a salted-SHA512 password hash (which is used for OS X\nversions &gt;= 10.7). Given any simple string, you will get a hex version of a\nsalted-SHA512 password hash that can be inserted into your Puppet manifests as\na valid password attribute.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>strftime</h2>\n\n<p>This function returns formatted time.</p>\n\n<p><em>Examples:</em></p>\n\n<p>To return the time since epoch:</p>\n\n<pre><code>strftime(&quot;%s&quot;)\n</code></pre>\n\n<p>To return the date:</p>\n\n<pre><code>strftime(&quot;%Y-%m-%d&quot;)\n</code></pre>\n\n<p><em>Format meaning:</em></p>\n\n<pre><code>%a - The abbreviated weekday name (``Sun&#39;&#39;)\n%A - The full weekday name (``Sunday&#39;&#39;)\n%b - The abbreviated month name (``Jan&#39;&#39;)\n%B - The full month name (``January&#39;&#39;)\n%c - The preferred local date and time representation\n%C - Century (20 in 2009)\n%d - Day of the month (01..31)\n%D - Date (%m/%d/%y)\n%e - Day of the month, blank-padded ( 1..31)\n%F - Equivalent to %Y-%m-%d (the ISO 8601 date format)\n%h - Equivalent to %b\n%H - Hour of the day, 24-hour clock (00..23)\n%I - Hour of the day, 12-hour clock (01..12)\n%j - Day of the year (001..366)\n%k - hour, 24-hour clock, blank-padded ( 0..23)\n%l - hour, 12-hour clock, blank-padded ( 0..12)\n%L - Millisecond of the second (000..999)\n%m - Month of the year (01..12)\n%M - Minute of the hour (00..59)\n%n - Newline (\n</code></pre>\n\n<p>)\n %N - Fractional seconds digits, default is 9 digits (nanosecond)\n %3N millisecond (3 digits)\n %6N microsecond (6 digits)\n %9N nanosecond (9 digits)\n %p - Meridian indicator (<code>AM&#39;&#39; or</code>PM&#39;&#39;)\n %P - Meridian indicator (<code>am&#39;&#39; or</code>pm&#39;&#39;)\n %r - time, 12-hour (same as %I:%M:%S %p)\n %R - time, 24-hour (%H:%M)\n %s - Number of seconds since 1970-01-01 00:00:00 UTC.\n %S - Second of the minute (00..60)\n %t - Tab character ( )\n %T - time, 24-hour (%H:%M:%S)\n %u - Day of the week as a decimal, Monday being 1. (1..7)\n %U - Week number of the current year,\n starting with the first Sunday as the first\n day of the first week (00..53)\n %v - VMS date (%e-%b-%Y)\n %V - Week number of year according to ISO 8601 (01..53)\n %W - Week number of the current year,\n starting with the first Monday as the first\n day of the first week (00..53)\n %w - Day of the week (Sunday is 0, 0..6)\n %x - Preferred representation for the date alone, no time\n %X - Preferred representation for the time alone, no date\n %y - Year without a century (00..99)\n %Y - Year with century\n %z - Time zone as hour offset from UTC (e.g. +0900)\n %Z - Time zone name\n %% - Literal ``%&#39;&#39; character</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>strip</h2>\n\n<p>This function removes leading and trailing whitespace from a string or from\nevery string inside an array.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>strip(&quot; aaa &quot;)\n</code></pre>\n\n<p>Would result in: &quot;aaa&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>swapcase</h2>\n\n<p>This function will swap the existing case of a string.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>swapcase(&quot;aBcD&quot;)\n</code></pre>\n\n<p>Would result in: &quot;AbCd&quot;</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>time</h2>\n\n<p>This function will return the current time since epoch as an integer.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>time()\n</code></pre>\n\n<p>Will return something like: 1311972653</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>to_bytes</h2>\n\n<p>Converts the argument into bytes, for example 4 kB becomes 4096.\nTakes a single string value as an argument.</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>type</h2>\n\n<p>Returns the type when passed a variable. Type can be one of:</p>\n\n<ul>\n<li>string</li>\n<li>array</li>\n<li>hash</li>\n<li>float</li>\n<li>integer</li>\n<li><p>boolean</p></li>\n<li><p><em>Type</em>: rvalue</p></li>\n</ul>\n\n<h2>unique</h2>\n\n<p>This function will remove duplicates from strings and arrays.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>unique(&quot;aabbcc&quot;)\n</code></pre>\n\n<p>Will return:</p>\n\n<pre><code>abc\n</code></pre>\n\n<p>You can also use this with arrays:</p>\n\n<pre><code>unique([&quot;a&quot;,&quot;a&quot;,&quot;b&quot;,&quot;b&quot;,&quot;c&quot;,&quot;c&quot;])\n</code></pre>\n\n<p>This returns:</p>\n\n<pre><code>[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>upcase</h2>\n\n<p>Converts a string or an array of strings to uppercase.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>upcase(&quot;abcd&quot;)\n</code></pre>\n\n<p>Will return:</p>\n\n<pre><code>ABCD\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>validate_absolute_path</h2>\n\n<p>Validate the string represents an absolute path in the filesystem. This function works\nfor windows and unix style paths.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_path = &quot;C:/Program Files (x86)/Puppet Labs/Puppet&quot;\nvalidate_absolute_path($my_path)\n$my_path2 = &quot;/var/lib/puppet&quot;\nvalidate_absolute_path($my_path2)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_absolute_path(true)\nvalidate_absolute_path([ &#39;var/lib/puppet&#39;, &#39;/var/foo&#39; ])\nvalidate_absolute_path([ &#39;/var/lib/puppet&#39;, &#39;var/foo&#39; ])\n$undefined = undef\nvalidate_absolute_path($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_array</h2>\n\n<p>Validate that all passed values are array data structures. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_array = [ &#39;one&#39;, &#39;two&#39; ]\nvalidate_array($my_array)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_array(true)\nvalidate_array(&#39;some_string&#39;)\n$undefined = undef\nvalidate_array($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_bool</h2>\n\n<p>Validate that all passed values are either true or false. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$iamtrue = true\nvalidate_bool(true)\nvalidate_bool(true, true, false, $iamtrue)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>$some_array = [ true ]\nvalidate_bool(&quot;false&quot;)\nvalidate_bool(&quot;true&quot;)\nvalidate_bool($some_array)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_hash</h2>\n\n<p>Validate that all passed values are hash data structures. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_hash = { &#39;one&#39; =&gt; &#39;two&#39; }\nvalidate_hash($my_hash)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_hash(true)\nvalidate_hash(&#39;some_string&#39;)\n$undefined = undef\nvalidate_hash($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_re</h2>\n\n<p>Perform simple validation of a string against one or more regular\nexpressions. The first argument of this function should be a string to\ntest, and the second argument should be a stringified regular expression\n(without the // delimiters) or an array of regular expressions. If none\nof the regular expressions match the string passed in, compilation will\nabort with a parse error.</p>\n\n<p>If a third argument is specified, this will be the error message raised and\nseen by the user.</p>\n\n<p>The following strings will validate against the regular expressions:</p>\n\n<pre><code>validate_re(&#39;one&#39;, &#39;^one$&#39;)\nvalidate_re(&#39;one&#39;, [ &#39;^one&#39;, &#39;^two&#39; ])\n</code></pre>\n\n<p>The following strings will fail to validate, causing compilation to abort:</p>\n\n<pre><code>validate_re(&#39;one&#39;, [ &#39;^two&#39;, &#39;^three&#39; ])\n</code></pre>\n\n<p>A helpful error message can be returned like this:</p>\n\n<pre><code>validate_re($::puppetversion, &#39;^2.7&#39;, &#39;The $puppetversion fact value does not match 2.7&#39;)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_slength</h2>\n\n<p>Validate that the first argument is a string (or an array of strings), and\nless/equal to than the length of the second argument. It fails if the first\nargument is not a string or array of strings, and if arg 2 is not convertable\nto a number.</p>\n\n<p>The following values will pass:</p>\n\n<p>validate_slength(&quot;discombobulate&quot;,17)\n validate_slength([&quot;discombobulate&quot;,&quot;moo&quot;],17)</p>\n\n<p>The following valueis will not:</p>\n\n<p>validate_slength(&quot;discombobulate&quot;,1)\n validate_slength([&quot;discombobulate&quot;,&quot;thermometer&quot;],5)</p>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>validate_string</h2>\n\n<p>Validate that all passed values are string data structures. Abort catalog\ncompilation if any value fails this check.</p>\n\n<p>The following values will pass:</p>\n\n<pre><code>$my_string = &quot;one two&quot;\nvalidate_string($my_string, &#39;three&#39;)\n</code></pre>\n\n<p>The following values will fail, causing compilation to abort:</p>\n\n<pre><code>validate_string(true)\nvalidate_string([ &#39;some&#39;, &#39;array&#39; ])\n$undefined = undef\nvalidate_string($undefined)\n</code></pre>\n\n<ul>\n<li><em>Type</em>: statement</li>\n</ul>\n\n<h2>values</h2>\n\n<p>When given a hash this function will return the values of that hash.</p>\n\n<p><em>Examples:</em></p>\n\n<pre><code>$hash = {\n &#39;a&#39; =&gt; 1,\n &#39;b&#39; =&gt; 2,\n &#39;c&#39; =&gt; 3,\n}\nvalues($hash)\n</code></pre>\n\n<p>This example would return:</p>\n\n<pre><code>[1,2,3]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>values_at</h2>\n\n<p>Finds value inside an array based on location.</p>\n\n<p>The first argument is the array you want to analyze, and the second element can\nbe a combination of:</p>\n\n<ul>\n<li>A single numeric index</li>\n<li>A range in the form of &#39;start-stop&#39; (eg. 4-9)</li>\n<li>An array combining the above</li>\n</ul>\n\n<p><em>Examples</em>:</p>\n\n<pre><code>values_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], 2)\n</code></pre>\n\n<p>Would return [&#39;c&#39;].</p>\n\n<pre><code>values_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;], [&quot;0-1&quot;])\n</code></pre>\n\n<p>Would return [&#39;a&#39;,&#39;b&#39;].</p>\n\n<pre><code>values_at([&#39;a&#39;,&#39;b&#39;,&#39;c&#39;,&#39;d&#39;,&#39;e&#39;], [0, &quot;2-3&quot;])\n</code></pre>\n\n<p>Would return [&#39;a&#39;,&#39;c&#39;,&#39;d&#39;].</p>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n\n<h2>zip</h2>\n\n<p>Takes one element from first array and merges corresponding elements from second array. This generates a sequence of n-element arrays, where n is one more than the count of arguments.</p>\n\n<p><em>Example:</em></p>\n\n<pre><code>zip([&#39;1&#39;,&#39;2&#39;,&#39;3&#39;],[&#39;4&#39;,&#39;5&#39;,&#39;6&#39;])\n</code></pre>\n\n<p>Would result in:</p>\n\n<pre><code>[&quot;1&quot;, &quot;4&quot;], [&quot;2&quot;, &quot;5&quot;], [&quot;3&quot;, &quot;6&quot;]\n</code></pre>\n\n<ul>\n<li><em>Type</em>: rvalue</li>\n</ul>\n</section>",
1212
+ "changelog": "<section class=\"plaintext\"><pre>2012-11-28 - Peter Meier &lt;peter.meier@immerda.ch&gt; - 3.2.0\n * Add reject() function (a79b2cd)\n\n2012-09-18 - Chad Metcalf &lt;chad@wibidata.com&gt; - 3.2.0\n * Add an ensure_packages function. (8a8c09e)\n\n2012-11-23 - Erik Dalén &lt;dalen@spotify.com&gt; - 3.2.0\n * (#17797) min() and max() functions (9954133)\n\n2012-05-23 - Peter Meier &lt;peter.meier@immerda.ch&gt; - 3.2.0\n * (#14670) autorequire a file_line resource&#x27;s path (dfcee63)\n\n2012-11-19 - Joshua Harlan Lifton &lt;lifton@puppetlabs.com&gt; - 3.2.0\n * Add join_keys_to_values function (ee0f2b3)\n\n2012-11-17 - Joshua Harlan Lifton &lt;lifton@puppetlabs.com&gt; - 3.2.0\n * Extend delete function for strings and hashes (7322e4d)\n\n2012-08-03 - Gary Larizza &lt;gary@puppetlabs.com&gt; - 3.2.0\n * Add the pick() function (ba6dd13)\n\n2012-03-20 - Wil Cooley &lt;wcooley@pdx.edu&gt; - 3.2.0\n * (#13974) Add predicate functions for interface facts (f819417)\n\n2012-11-06 - Joe Julian &lt;me@joejulian.name&gt; - 3.2.0\n * Add function, uriescape, to URI.escape strings. Redmine #17459 (70f4a0e)\n\n2012-10-25 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 3.1.1\n * (maint) Fix spec failures resulting from Facter API changes (97f836f)\n\n2012-10-23 - Matthaus Owens &lt;matthaus@puppetlabs.com&gt; - 3.1.0\n * Add PE facts to stdlib (cdf3b05)\n\n2012-08-16 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 3.0.1\n * Fix accidental removal of facts_dot_d.rb in 3.0.0 release\n\n2012-08-16 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 3.0.0\n * stdlib 3.0 drops support with Puppet 2.6\n * stdlib 3.0 preserves support with Puppet 2.7\n\n2012-08-07 - Dan Bode &lt;dan@puppetlabs.com&gt; - 3.0.0\n * Add function ensure_resource and defined_with_params (ba789de)\n\n2012-07-10 - Hailee Kenney &lt;hailee@puppetlabs.com&gt; - 3.0.0\n * (#2157) Remove facter_dot_d for compatibility with external facts (f92574f)\n\n2012-04-10 - Chris Price &lt;chris@puppetlabs.com&gt; - 3.0.0\n * (#13693) moving logic from local spec_helper to puppetlabs_spec_helper (85f96df)\n\n2012-10-25 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.1\n * (maint) Fix spec failures resulting from Facter API changes (97f836f)\n\n2012-10-23 - Matthaus Owens &lt;matthaus@puppetlabs.com&gt; - 2.5.0\n * Add PE facts to stdlib (cdf3b05)\n\n2012-08-15 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Explicitly load functions used by ensure_resource (9fc3063)\n\n2012-08-13 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Add better docs about duplicate resource failures (97d327a)\n\n2012-08-13 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Handle undef for parameter argument (4f8b133)\n\n2012-08-07 - Dan Bode &lt;dan@puppetlabs.com&gt; - 2.5.0\n * Add function ensure_resource and defined_with_params (a0cb8cd)\n\n2012-08-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.0\n * Disable tests that fail on 2.6.x due to #15912 (c81496e)\n\n2012-08-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.0\n * (Maint) Fix mis-use of rvalue functions as statements (4492913)\n\n2012-08-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.5.0\n * Add .rspec file to repo root (88789e8)\n\n2012-06-07 - Chris Price &lt;chris@puppetlabs.com&gt; - 2.4.0\n * Add support for a &#x27;match&#x27; parameter to file_line (a06c0d8)\n\n2012-08-07 - Erik Dalén &lt;dalen@spotify.com&gt; - 2.4.0\n * (#15872) Add to_bytes function (247b69c)\n\n2012-07-19 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.4.0\n * (Maint) use PuppetlabsSpec::PuppetInternals.scope (master) (deafe88)\n\n2012-07-10 - Hailee Kenney &lt;hailee@puppetlabs.com&gt; - 2.4.0\n * (#2157) Make facts_dot_d compatible with external facts (5fb0ddc)\n\n2012-03-16 - Steve Traylen &lt;steve.traylen@cern.ch&gt; - 2.4.0\n * (#13205) Rotate array&#x2F;string randomley based on fqdn, fqdn_rotate() (fef247b)\n\n2012-05-22 - Peter Meier &lt;peter.meier@immerda.ch&gt; - 2.3.3\n * fix regression in #11017 properly (f0a62c7)\n\n2012-05-10 - Jeff McCune &lt;jeff@puppetlabs.com&gt; - 2.3.3\n * Fix spec tests using the new spec_helper (7d34333)\n\n2012-05-10 - Puppet Labs &lt;support@puppetlabs.com&gt; - 2.3.2\n * Make file_line default to ensure =&gt; present (1373e70)\n * Memoize file_line spec instance variables (20aacc5)\n * Fix spec tests using the new spec_helper (1ebfa5d)\n * (#13595) initialize_everything_for_tests couples modules Puppet ver (3222f35)\n * (#13439) Fix MRI 1.9 issue with spec_helper (15c5fd1)\n * (#13439) Fix test failures with Puppet 2.6.x (665610b)\n * (#13439) refactor spec helper for compatibility with both puppet 2.7 and master (82194ca)\n * (#13494) Specify the behavior of zero padded strings (61891bb)\n\n2012-03-29 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.3\n* (#11607) Add Rakefile to enable spec testing\n* (#12377) Avoid infinite loop when retrying require json\n\n2012-03-13 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.3.1\n* (#13091) Fix LoadError bug with puppet apply and puppet_vardir fact\n\n2012-03-12 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.3.0\n* Add a large number of new Puppet functions\n* Backwards compatibility preserved with 2.2.x\n\n2011-12-30 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.2.1\n* Documentation only release for the Forge\n\n2011-12-30 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.2\n* Documentation only release for PE 2.0.x\n\n2011-11-08 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.2.0\n* #10285 - Refactor json to use pson instead.\n* Maint - Add watchr autotest script\n* Maint - Make rspec tests work with Puppet 2.6.4\n* #9859 - Add root_home fact and tests\n\n2011-08-18 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.1\n* Change facts.d paths to match Facter 2.0 paths.\n* &#x2F;etc&#x2F;facter&#x2F;facts.d\n* &#x2F;etc&#x2F;puppetlabs&#x2F;facter&#x2F;facts.d\n\n2011-08-17 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.1.0\n* Add R.I. Pienaar&#x27;s facts.d custom facter fact\n* facts defined in &#x2F;etc&#x2F;facts.d and &#x2F;etc&#x2F;puppetlabs&#x2F;facts.d are\n automatically loaded now.\n\n2011-08-04 Puppet Labs &lt;support@puppetlabs.com&gt; - 2.0.0\n* Rename whole_line to file_line\n* This is an API change and as such motivating a 2.0.0 release according to semver.org.\n\n2011-08-04 Puppet Labs &lt;support@puppetlabs.com&gt; - 1.1.0\n* Rename append_line to whole_line\n* This is an API change and as such motivating a 1.1.0 release.\n\n2011-08-04 Puppet Labs &lt;support@puppetlabs.com&gt; - 1.0.0\n* Initial stable release\n* Add validate_array and validate_string functions\n* Make merge() function work with Ruby 1.8.5\n* Add hash merging function\n* Add has_key function\n* Add loadyaml() function\n* Add append_line native\n\n2011-06-21 Jeff McCune &lt;jeff@puppetlabs.com&gt; - 0.1.7\n* Add validate_hash() and getvar() functions\n\n2011-06-15 Jeff McCune &lt;jeff@puppetlabs.com&gt; - 0.1.6\n* Add anchor resource type to provide containment for composite classes\n\n2011-06-03 Jeff McCune &lt;jeff@puppetlabs.com&gt; - 0.1.5\n* Add validate_bool() function to stdlib\n\n0.1.4 2011-05-26 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Move most stages after main\n\n0.1.3 2011-05-25 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Add validate_re() function\n\n0.1.2 2011-05-24 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Update to add annotated tag\n\n0.1.1 2011-05-24 Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* Add stdlib::stages class with a standard set of stages\n</pre></section>",
1213
+ "license": "<section class=\"plaintext\"><pre>Copyright (C) 2011 Puppet Labs Inc\n\nand some parts:\n\nCopyright (C) 2011 Krzysztof Wilczynski\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
1214
+ "created_at": "2012-11-28 14:53:03 -0800",
1215
+ "updated_at": "2012-11-28 14:53:03 -0800",
1216
+ "deleted_at": null
1217
+ },
1218
+ {
1219
+ "uri": "/v3/releases/puppetlabs-apt-1.2.0",
1220
+ "module": {
1221
+ "uri": "/v3/modules/puppetlabs-apt",
1222
+ "name": "apt",
1223
+ "owner": {
1224
+ "uri": "/v3/users/puppetlabs",
1225
+ "username": "puppetlabs",
1226
+ "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
1227
+ }
1228
+ },
1229
+ "version": "1.2.0",
1230
+ "metadata": {
1231
+ "name": "puppetlabs-apt",
1232
+ "version": "1.2.0",
1233
+ "summary": "Puppet Labs Apt Module",
1234
+ "author": "Evolving Web / Puppet Labs",
1235
+ "description": "APT Module for Puppet",
1236
+ "dependencies": [
1237
+ {
1238
+ "name": "puppetlabs/stdlib",
1239
+ "version_requirement": ">= 2.2.1"
1240
+ }
1241
+ ],
1242
+ "types": [
1243
+
1244
+ ],
1245
+ "checksums": {
1246
+ ".bundle/config": "b898efea5e8783d6593fcdabec67e925",
1247
+ ".fixtures.yml": "0c43f56b0bb8e8d04e8051a0e7aa37a5",
1248
+ ".forge-release/pom.xml": "6d418d97f34067f501aff90c2fe52b94",
1249
+ ".forge-release/publish": "1c1d6dd64ef52246db485eb5459aa941",
1250
+ ".forge-release/settings.xml": "06d768a57d582fe1ee078b563427e750",
1251
+ ".forge-release/validate": "7fffde8112f42a1ec986d49ba80ac219",
1252
+ ".travis.yml": "782420dcc9d6412c79c30f03b1f3613c",
1253
+ "CHANGELOG": "d2b6ac5ca0a7dda91b7103d6ff67ed8d",
1254
+ "Gemfile": "6bac61e5713dbf7c477c0c8dccc00cf6",
1255
+ "Gemfile.lock": "f16cfb9dbccc2174ede52c63431b6193",
1256
+ "LICENSE": "20bcc606fc61ffba2b8cea840e8dce4d",
1257
+ "Modulefile": "c84323ad284755f09d422de788bf033a",
1258
+ "README.md": "48d8b527c8c0efa83223be6aebfe7114",
1259
+ "Rakefile": "0254db5d3fc38c67a2c160d7296a24f8",
1260
+ "manifests/backports.pp": "09f1d86603d0f44a2169acb3eeea2a70",
1261
+ "manifests/builddep.pp": "4f313b5140c84aa7d5793b5a073c30dd",
1262
+ "manifests/conf.pp": "5ddf258195d414d93284dfd281a8d6e3",
1263
+ "manifests/debian/testing.pp": "aeb625bacb6a8df46c864ee9ee1cb5a5",
1264
+ "manifests/debian/unstable.pp": "108038596b05dc1d28975884693f73f5",
1265
+ "manifests/force.pp": "cf871e869f4114f32ab164de2a67e7e2",
1266
+ "manifests/init.pp": "670b069a94cfa6766715e2577e48fb15",
1267
+ "manifests/key.pp": "3cf082ed91a3933ab7218d1be3464f4f",
1268
+ "manifests/params.pp": "e34c27699b574e957940952f37714694",
1269
+ "manifests/pin.pp": "ee5610e8f493e4db81b5eefc675f62d5",
1270
+ "manifests/ppa.pp": "16da338782f3c4b55718c7a8d799bd98",
1271
+ "manifests/release.pp": "427f3ee70a6a1e55fa291e58655bd5d9",
1272
+ "manifests/source.pp": "6eab8d33c173a066f5dec8474efdedb6",
1273
+ "manifests/update.pp": "bff1331f5467f146edf9fa43475fe532",
1274
+ "spec/classes/apt_spec.rb": "54841b04b42026770ed6d744a82c55df",
1275
+ "spec/classes/backports_spec.rb": "7d2454a881cc26edd3dcd3acb7ffd20f",
1276
+ "spec/classes/debian_testing_spec.rb": "fad1384cb9d3c99b2663d7df4762dc0e",
1277
+ "spec/classes/debian_unstable_spec.rb": "11131efffd18db3c96e2bbe3d98a2fb7",
1278
+ "spec/classes/params_spec.rb": "a25396d3f0bbac784a7951f03ad7e8f4",
1279
+ "spec/classes/release_spec.rb": "d8f01a3cf0c2f6f6952b835196163ce4",
1280
+ "spec/defines/builddep_spec.rb": "e1300bb4f3abbd34029b11d8b733a6e5",
1281
+ "spec/defines/conf_spec.rb": "b7fc9fb6cb270c276aacbfa4a43f228c",
1282
+ "spec/defines/force_spec.rb": "97098c5b123be49e321e71cda288fe53",
1283
+ "spec/defines/key_spec.rb": "7800c30647b1ddf799b991110109cba0",
1284
+ "spec/defines/pin_spec.rb": "c912e59e9e3d1145280d659cccabe72b",
1285
+ "spec/defines/ppa_spec.rb": "02394ce677512ef84d3868a4cc9be9ce",
1286
+ "spec/defines/source_spec.rb": "caa3be1996630704730af19bc1ee798c",
1287
+ "spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",
1288
+ "templates/pin.pref.erb": "623249839cee7788fa0805a3474396db",
1289
+ "templates/source.list.erb": "9ddccd6b59757d40e99158dbfe9a97e2",
1290
+ "tests/builddep.pp": "4773f57072111e58f2ed833fa4489a88",
1291
+ "tests/debian/testing.pp": "1cbee56baddd6a91d981db8fddec70fb",
1292
+ "tests/debian/unstable.pp": "4b2a090afeb315752262386f4dbcd8ca",
1293
+ "tests/force.pp": "2bb6cf0b3d655cb51f95aeb79035e600",
1294
+ "tests/init.pp": "551138eb704e71ab3687932dda429a81",
1295
+ "tests/key.pp": "8a585cc7cc10671cc7b8795bf6a0a7ce",
1296
+ "tests/params.pp": "900db40f3fc84b0be173278df2ebff35",
1297
+ "tests/pin.pp": "4b4c3612d75a19dba8eb7227070fa4ab",
1298
+ "tests/ppa.pp": "b902cce8159128b5e8b21bed540743ff",
1299
+ "tests/release.pp": "53ce5debe6fa5bee42821767599cc768",
1300
+ "tests/source.pp": "9cecd9aa0dcde250fe49be9e26971a98"
1301
+ },
1302
+ "source": "https://github.com/puppetlabs/puppetlabs-apt",
1303
+ "project_page": "https://github.com/puppetlabs/puppetlabs-apt",
1304
+ "license": "Apache License 2.0"
1305
+ },
1306
+ "tags": [
1307
+ "apt",
1308
+ "debian",
1309
+ "ubuntu",
1310
+ "dpkg",
1311
+ "apt-get",
1312
+ "aptitude",
1313
+ "ppa"
1314
+ ],
1315
+ "file_uri": "/v3/files/puppetlabs-apt-1.2.0.tar.gz",
1316
+ "file_size": 21622,
1317
+ "file_md5": "8bb36e43b8755bbed80dc6ab58f7dba4",
1318
+ "downloads": 38345,
1319
+ "readme": "<section class=\"markdown\"><h1>apt</h1>\n\n<p><a href=\"https://travis-ci.org/puppetlabs/puppetlabs-apt\"><img src=\"https://travis-ci.org/puppetlabs/puppetlabs-apt.png?branch=master\" alt=\"Build Status\"></a></p>\n\n<h2>Description</h2>\n\n<h1>Provides helpful definitions for dealing with Apt.</h1>\n\n<h2>Overview</h2>\n\n<p>The APT module provides a simple interface for managing APT source, key, and definitions with Puppet. </p>\n\n<h2>Module Description</h2>\n\n<p>APT automates obtaining and installing software packages on *nix systems. </p>\n\n<h2>Setup</h2>\n\n<p><strong>What APT affects:</strong></p>\n\n<ul>\n<li>package/service/configuration files for APT </li>\n<li>your system&#39;s <code>sources.list</code> file and <code>sources.list.d</code> directory\n\n<ul>\n<li>NOTE: Setting the <code>purge_sources_list</code> and <code>purge_sources_list_d</code> parameters to &#39;true&#39; will destroy any existing content that was not declared with Puppet. The default for these parameters is &#39;false&#39;.</li>\n</ul></li>\n<li>system repositories</li>\n<li>authentication keys</li>\n<li>wget (optional)</li>\n</ul>\n\n<h3>Beginning with APT</h3>\n\n<p>To begin using the APT module with default parameters, declare the class</p>\n\n<pre><code>class { &#39;apt&#39;: }\n</code></pre>\n\n<p>Puppet code that uses anything from the APT module requires that the core apt class be declared. </p>\n\n<h2>Usage</h2>\n\n<p>Using the APT module consists predominantly in declaring classes that provide desired functionality and features. </p>\n\n<h3>apt</h3>\n\n<p><code>apt</code> provides a number of common resources and options that are shared by the various defined types in this module, so you MUST always include this class in your manifests.</p>\n\n<p>The parameters for <code>apt</code> are not required in general and are predominantly for development environment use-cases.</p>\n\n<pre><code>class { &#39;apt&#39;:\n always_apt_update =&gt; false,\n disable_keys =&gt; undef,\n proxy_host =&gt; false,\n proxy_port =&gt; &#39;8080&#39;,\n purge_sources_list =&gt; false,\n purge_sources_list_d =&gt; false,\n purge_preferences_d =&gt; false\n}\n</code></pre>\n\n<p>Puppet will manage your system&#39;s <code>sources.list</code> file and <code>sources.list.d</code> directory but will do its best to respect existing content. </p>\n\n<p>If you declare your apt class with <code>purge_sources_list</code> and <code>purge_sources_list_d</code> set to &#39;true&#39;, Puppet will unapologetically purge any existing content it finds that wasn&#39;t declared with Puppet. </p>\n\n<h3>apt::builddep</h3>\n\n<p>Installs the build depends of a specified package.</p>\n\n<pre><code>apt::builddep { &#39;glusterfs-server&#39;: }\n</code></pre>\n\n<h3>apt::force</h3>\n\n<p>Forces a package to be installed from a specific release. This class is particularly useful when using repositories, like Debian, that are unstable in Ubuntu.</p>\n\n<pre><code>apt::force { &#39;glusterfs-server&#39;:\n release =&gt; &#39;unstable&#39;,\n version =&gt; &#39;3.0.3&#39;,\n require =&gt; Apt::Source[&#39;debian_unstable&#39;],\n}\n</code></pre>\n\n<h3>apt::key</h3>\n\n<p>Adds a key to the list of keys used by APT to authenticate packages.</p>\n\n<pre><code>apt::key { &#39;puppetlabs&#39;:\n key =&gt; &#39;4BD6EC30&#39;,\n key_server =&gt; &#39;pgp.mit.edu&#39;,\n}\n\napt::key { &#39;jenkins&#39;:\n key =&gt; &#39;D50582E6&#39;,\n key_source =&gt; &#39;http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key&#39;,\n}\n</code></pre>\n\n<p>Note that use of <code>key_source</code> requires wget to be installed and working.</p>\n\n<h3>apt::pin</h3>\n\n<p>Adds an apt pin for a certain release.</p>\n\n<pre><code>apt::pin { &#39;karmic&#39;: priority =&gt; 700 }\napt::pin { &#39;karmic-updates&#39;: priority =&gt; 700 }\napt::pin { &#39;karmic-security&#39;: priority =&gt; 700 }\n</code></pre>\n\n<p>Note you can also specifying more complex pins using distribution properties.</p>\n\n<pre><code>apt::pin { &#39;stable&#39;:\n priority =&gt; -10,\n originator =&gt; &#39;Debian&#39;,\n release_version =&gt; &#39;3.0&#39;,\n component =&gt; &#39;main&#39;,\n label =&gt; &#39;Debian&#39;\n}\n</code></pre>\n\n<h3>apt::ppa</h3>\n\n<p>Adds a ppa repository using <code>add-apt-repository</code>.</p>\n\n<pre><code>apt::ppa { &#39;ppa:drizzle-developers/ppa&#39;: }\n</code></pre>\n\n<h3>apt::release</h3>\n\n<p>Sets the default apt release. This class is particularly useful when using repositories, like Debian, that are unstable in Ubuntu.</p>\n\n<pre><code>class { &#39;apt::release&#39;:\n release_id =&gt; &#39;precise&#39;,\n}\n</code></pre>\n\n<h3>apt::source</h3>\n\n<p>Adds an apt source to <code>/etc/apt/sources.list.d/</code>.</p>\n\n<pre><code>apt::source { &#39;debian_unstable&#39;:\n location =&gt; &#39;http://debian.mirror.iweb.ca/debian/&#39;,\n release =&gt; &#39;unstable&#39;,\n repos =&gt; &#39;main contrib non-free&#39;,\n required_packages =&gt; &#39;debian-keyring debian-archive-keyring&#39;,\n key =&gt; &#39;55BE302B&#39;,\n key_server =&gt; &#39;subkeys.pgp.net&#39;,\n pin =&gt; &#39;-10&#39;,\n include_src =&gt; true\n}\n</code></pre>\n\n<p>If you would like to configure your system so the source is the Puppet Labs APT repository</p>\n\n<pre><code>apt::source { &#39;puppetlabs&#39;:\n location =&gt; &#39;http://apt.puppetlabs.com&#39;,\n repos =&gt; &#39;main&#39;,\n key =&gt; &#39;4BD6EC30&#39;,\n key_server =&gt; &#39;pgp.mit.edu&#39;,\n}\n</code></pre>\n\n<h3>Testing</h3>\n\n<p>The APT module is mostly a collection of defined resource types, which provide reusable logic that can be leveraged to manage APT. It does provide smoke tests for testing functionality on a target system, as well as spec tests for checking a compiled catalog against an expected set of resources.</p>\n\n<h4>Example Test</h4>\n\n<p>This test will set up a Puppet Labs apt repository. Start by creating a new smoke test in the apt module&#39;s test folder. Call it puppetlabs-apt.pp. Inside, declare a single resource representing the Puppet Labs APT source and gpg key</p>\n\n<pre><code>apt::source { &#39;puppetlabs&#39;:\n location =&gt; &#39;http://apt.puppetlabs.com&#39;,\n repos =&gt; &#39;main&#39;,\n key =&gt; &#39;4BD6EC30&#39;,\n key_server =&gt; &#39;pgp.mit.edu&#39;,\n}\n</code></pre>\n\n<p>This resource creates an apt source named puppetlabs and gives Puppet information about the repository&#39;s location and key used to sign its packages. Puppet leverages Facter to determine the appropriate release, but you can set it directly by adding the release type.</p>\n\n<p>Check your smoke test for syntax errors</p>\n\n<pre><code>$ puppet parser validate tests/puppetlabs-apt.pp\n</code></pre>\n\n<p>If you receive no output from that command, it means nothing is wrong. Then apply the code</p>\n\n<pre><code>$ puppet apply --verbose tests/puppetlabs-apt.pp\nnotice: /Stage[main]//Apt::Source[puppetlabs]/File[puppetlabs.list]/ensure: defined content as &#39;{md5}3be1da4923fb910f1102a233b77e982e&#39;\ninfo: /Stage[main]//Apt::Source[puppetlabs]/File[puppetlabs.list]: Scheduling refresh of Exec[puppetlabs apt update]\nnotice: /Stage[main]//Apt::Source[puppetlabs]/Exec[puppetlabs apt update]: Triggered &#39;refresh&#39; from 1 events&gt;\n</code></pre>\n\n<p>The above example used a smoke test to easily lay out a resource declaration and apply it on your system. In production, you may want to declare your APT sources inside the classes where they’re needed. </p>\n\n<h2>Implementation</h2>\n\n<h3>apt::backports</h3>\n\n<p>Adds the necessary components to get backports for Ubuntu and Debian. The release name defaults to <code>$lsbdistcodename</code>. Setting this manually can cause undefined behavior (read: universe exploding).</p>\n\n<h2>Limitations</h2>\n\n<p>This module should work across all versions of Debian/Ubuntu and support all major APT repository management features. </p>\n\n<h2>Development</h2>\n\n<p>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.</p>\n\n<p>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.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h2>Contributors</h2>\n\n<p>A lot of great people have contributed to this module. A somewhat current list follows:</p>\n\n<ul>\n<li>Ben Godfrey <a href=\"mailto:ben.godfrey@wonga.com\">ben.godfrey@wonga.com</a></li>\n<li>Branan Purvine-Riley <a href=\"mailto:branan@puppetlabs.com\">branan@puppetlabs.com</a></li>\n<li>Christian G. Warden <a href=\"mailto:cwarden@xerus.org\">cwarden@xerus.org</a><br></li>\n<li>Dan Bode <a href=\"mailto:bodepd@gmail.com\">bodepd@gmail.com</a> <a href=\"mailto:dan@puppetlabs.com\">dan@puppetlabs.com</a><br></li>\n<li>Garrett Honeycutt <a href=\"mailto:github@garretthoneycutt.com\">github@garretthoneycutt.com</a><br></li>\n<li>Jeff Wallace <a href=\"mailto:jeff@evolvingweb.ca\">jeff@evolvingweb.ca</a> <a href=\"mailto:jeff@tjwallace.ca\">jeff@tjwallace.ca</a><br></li>\n<li>Ken Barber <a href=\"mailto:ken@bob.sh\">ken@bob.sh</a><br></li>\n<li>Matthaus Litteken <a href=\"mailto:matthaus@puppetlabs.com\">matthaus@puppetlabs.com</a> <a href=\"mailto:mlitteken@gmail.com\">mlitteken@gmail.com</a><br></li>\n<li>Matthias Pigulla <a href=\"mailto:mp@webfactory.de\">mp@webfactory.de</a><br></li>\n<li>Monty Taylor <a href=\"mailto:mordred@inaugust.com\">mordred@inaugust.com</a><br></li>\n<li>Peter Drake <a href=\"mailto:pdrake@allplayers.com\">pdrake@allplayers.com</a><br></li>\n<li>Reid Vandewiele <a href=\"mailto:marut@cat.pdx.edu\">marut@cat.pdx.edu</a><br></li>\n<li>Robert Navarro <a href=\"mailto:rnavarro@phiivo.com\">rnavarro@phiivo.com</a><br></li>\n<li>Ryan Coleman <a href=\"mailto:ryan@puppetlabs.com\">ryan@puppetlabs.com</a><br></li>\n<li>Scott McLeod <a href=\"mailto:scott.mcleod@theice.com\">scott.mcleod@theice.com</a><br></li>\n<li>Spencer Krum <a href=\"mailto:spencer@puppetlabs.com\">spencer@puppetlabs.com</a><br></li>\n<li>William Van Hevelingen <a href=\"mailto:blkperl@cat.pdx.edu\">blkperl@cat.pdx.edu</a> <a href=\"mailto:wvan13@gmail.com\">wvan13@gmail.com</a><br></li>\n<li>Zach Leslie <a href=\"mailto:zach@puppetlabs.com\">zach@puppetlabs.com</a><br></li>\n</ul>\n</section>",
1320
+ "changelog": "<section class=\"plaintext\"><pre>## puppetlabs-apt changelog\n\nRelease notes for the puppetlabs-apt module.\n\n1.2.0\n=====\n\nFeatures:\n- Add geppetto `.project` natures\n- Add GH auto-release\n- Add `apt::key::key_options` parameter\n- Add complex pin support using distribution properties for `apt::pin` via new properties:\n - `apt::pin::codename`\n - `apt::pin::release_version`\n - `apt::pin::component`\n - `apt::pin::originator`\n - `apt::pin::label`\n- Add source architecture support to `apt::source::architecture`\n\nBugfixes:\n- Use apt-get instead of aptitude in apt::force\n- Update default backports location\n- Add dependency for required packages before apt-get update\n\n\n1.1.1\n=====\n\nThis is a bug fix release that resolves a number of issues:\n\n* By changing template variable usage, we remove the deprecation warnings\n for Puppet 3.2.x\n* Fixed proxy file removal, when proxy absent\n\nSome documentation, style and whitespaces changes were also merged. This\nrelease also introduced proper rspec-puppet unit testing on Travis-CI to help\nreduce regression.\n\nThanks to all the community contributors below that made this patch possible.\n\n#### Detail Changes\n\n* fix minor comment type (Chris Rutter)\n* whitespace fixes (Michael Moll)\n* Update travis config file (William Van Hevelingen)\n* Build all branches on travis (William Van Hevelingen)\n* Standardize travis.yml on pattern introduced in stdlib (William Van Hevelingen)\n* Updated content to conform to README best practices template (Lauren Rother)\n* Fix apt::release example in readme (Brian Galey)\n* add @ to variables in template (Peter Hoeg)\n* Remove deprecation warnings for pin.pref.erb as well (Ken Barber)\n* Update travis.yml to latest versions of puppet (Ken Barber)\n* Fix proxy file removal (Scott Barber)\n* Add spec test for removing proxy configuration (Dean Reilly)\n* Fix apt::key listing longer than 8 chars (Benjamin Knofe)\n\n\n---------------------------------------\n\n1.1.0\n=====\n\nThis release includes Ubuntu 12.10 (Quantal) support for PPAs.\n\n---------------------------------------\n\n2012-05-25 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.4\n * Fix ppa list filename when there is a period in the PPA name\n * Add .pref extension to apt preferences files\n * Allow preferences to be purged\n * Extend pin support\n\n2012-05-04 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.3\n * only invoke apt-get update once\n * only install python-software-properties if a ppa is added\n * support &#x27;ensure =&gt; absent&#x27; for all defined types\n * add apt::conf\n * add apt::backports\n * fixed Modulefile for module tool dependency resolution\n * configure proxy before doing apt-get update\n * use apt-get update instead of aptitude for apt::ppa\n * add support to pin release\n\n\n2012-03-26 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.2\n41cedbb (#13261) Add real examples to smoke tests.\nd159a78 (#13261) Add key.pp smoke test\n7116c7a (#13261) Replace foo source with puppetlabs source\n1ead0bf Ignore pkg directory.\n9c13872 (#13289) Fix some more style violations\n0ea4ffa (#13289) Change test scaffolding to use a module &amp; manifest dir fixture path\na758247 (#13289) Clean up style violations and fix corresponding tests\n99c3fd3 (#13289) Add puppet lint tests to Rakefile\n5148cbf (#13125) Apt keys should be case insensitive\nb9607a4 Convert apt::key to use anchors\n\n2012-03-07 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.1\nd4fec56 Modify apt::source release parameter test\n1132a07 (#12917) Add contributors to README\n8cdaf85 (#12823) Add apt::key defined type and modify apt::source to use it\n7c0d10b (#12809) $release should use $lsbdistcodename and fall back to manual input\nbe2cc3e (#12522) Adjust spec test for splitting purge\n7dc60ae (#12522) Split purge option to spare sources.list\n9059c4e Fix source specs to test all key permutations\n8acb202 Add test for python-software-properties package\na4af11f Check if python-software-properties is defined before attempting to define it.\n1dcbf3d Add tests for required_packages change\nf3735d2 Allow duplicate $required_packages\n74c8371 (#12430) Add tests for changes to apt module\n97ebb2d Test two sources with the same key\n1160bcd (#12526) Add ability to reverse apt { disable_keys =&gt; true }\n2842d73 Add Modulefile to puppet-apt\nc657742 Allow the use of the same key in multiple sources\n8c27963 (#12522) Adding purge option to apt class\n997c9fd (#12529) Add unit test for apt proxy settings\n50f3cca (#12529) Add parameter to support setting a proxy for apt\nd522877 (#12094) Replace chained .with_* with a hash\n8cf1bd0 (#12094) Remove deprecated spec.opts file\n2d688f4 (#12094) Add rspec-puppet tests for apt\n0fb5f78 (#12094) Replace name with path in file resources\nf759bc0 (#11953) Apt::force passes $version to aptitude\nf71db53 (#11413) Add spec test for apt::force to verify changes to unless\n2f5d317 (#11413) Update dpkg query used by apt::force\ncf6caa1 (#10451) Add test coverage to apt::ppa\n0dd697d include_src parameter in example; Whitespace cleanup\nb662eb8 fix typos in &quot;repositories&quot;\n1be7457 Fix (#10451) - apt::ppa fails to &quot;apt-get update&quot; when new PPA source is added\n864302a Set the pin priority before adding the source (Fix #10449)\n1de4e0a Refactored as per mlitteken\n1af9a13 Added some crazy bash madness to check if the ppa is installed already. Otherwise the manifest tries to add it on every run!\n52ca73e (#8720) Replace Apt::Ppa with Apt::Builddep\n5c05fa0 added builddep command.\na11af50 added the ability to specify the content of a key\nc42db0f Fixes ppa test.\n77d2b0d reformatted whitespace to match recommended style of 2 space indentation.\n27ebdfc ignore swap files.\n377d58a added smoke tests for module.\n18f614b reformatted apt::ppa according to recommended style.\nd8a1e4e Created a params class to hold global data.\n636ae85 Added two params for apt class\n148fc73 Update LICENSE.\ned2d19e Support ability to add more than one PPA\n420d537 Add call to apt-update after add-apt-repository in apt::ppa\n945be77 Add package definition for python-software-properties\n71fc425 Abs paths for all commands\n9d51cd1 Adding LICENSE\n71796e3 Heading fix in README\n87777d8 Typo in README\nf848bac First commit\n</pre></section>",
1321
+ "license": "<section class=\"plaintext\"><pre>Copyright (c) 2011 Evolving Web Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the &quot;Software&quot;), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and&#x2F;or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n</pre></section>",
1322
+ "created_at": "2013-07-05 10:27:35 -0700",
1323
+ "updated_at": "2013-07-05 10:27:35 -0700",
1324
+ "deleted_at": null
1325
+ },
1326
+ {
1327
+ "uri": "/v3/releases/puppetlabs-git-0.0.3",
1328
+ "module": {
1329
+ "uri": "/v3/modules/puppetlabs-git",
1330
+ "name": "git",
1331
+ "owner": {
1332
+ "uri": "/v3/users/puppetlabs",
1333
+ "username": "puppetlabs",
1334
+ "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
1335
+ }
1336
+ },
1337
+ "version": "0.0.3",
1338
+ "metadata": {
1339
+ "name": "puppetlabs-git",
1340
+ "version": "0.0.3",
1341
+ "source": "git://github.com/puppetlabs/puppetlabs-git.git",
1342
+ "author": "puppetlabs",
1343
+ "license": "Apache 2.0",
1344
+ "summary": "module for installing git",
1345
+ "description": "module for installing git",
1346
+ "project_page": "https://github.com/puppetlabs/puppetlabs-git/",
1347
+ "dependencies": [
1348
+
1349
+ ],
1350
+ "types": [
1351
+
1352
+ ],
1353
+ "checksums": {
1354
+ "CHANGELOG": "f2e3e57948da2dcab3bdbe782efd6b11",
1355
+ "LICENSE": "0e5ccf641e613489e66aa98271dbe798",
1356
+ "Modulefile": "f971ce8e90cb5cdf63722c92e0497110",
1357
+ "README.md": "8f241391b0165fe286588154a5321aee",
1358
+ "manifests/gitosis.pp": "6b1bbd3a43baa63c63f5d03dcb9fbe95",
1359
+ "manifests/init.pp": "520e2a141b314dd9b859a0f2d31a338e",
1360
+ "tests/gitosis.pp": "4a9f134fbd08096dac65aafa9fbc0742",
1361
+ "tests/init.pp": "bbf47fdd0ad67c6fa1d47d39fdd6a94b"
1362
+ }
1363
+ },
1364
+ "tags": [
1365
+
1366
+ ],
1367
+ "file_uri": "/v3/files/puppetlabs-git-0.0.3.tar.gz",
1368
+ "file_size": 5931,
1369
+ "file_md5": "64e8403025a9d4fb8270cb53b37a6959",
1370
+ "downloads": 31939,
1371
+ "readme": "<section class=\"markdown\"><h1>git</h1>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the [Modulename] module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with [Modulename]</a>\n\n<ul>\n<li><a href=\"#what-registry-affects\">What [Modulename] affects</a></li>\n</ul></li>\n<li><a href=\"#usage\">Usage - Configuration options and additional functionality</a></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>Simple module that can install git or gitosis</p>\n\n<h2>Module Description</h2>\n\n<p>This module installs the git revision control system on a target node. It does not manage a git server or any associated services; it simply ensures a bare minimum set of features (e.g. just a package) to use git.</p>\n\n<h2>Setup</h2>\n\n<h3>What git affects</h3>\n\n<ul>\n<li>Package[&#39;git&#39;]</li>\n</ul>\n\n<p>The specifics managed by the module may vary depending on the platform.</p>\n\n<h2>Usage</h2>\n\n<p>Simply include the <code>git</code> class.</p>\n\n<pre><code>include git\n</code></pre>\n\n<h2>Limitations</h2>\n\n<p>This module is known to work with the following operating system families:</p>\n\n<ul>\n<li>RedHat 5, 6</li>\n<li>Debian 6.0.7 or newer</li>\n<li>Ubuntu 12.04 or newer</li>\n</ul>\n\n<h2>Development</h2>\n\n<p>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.</p>\n\n<p>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.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n</section>",
1372
+ "changelog": null,
1373
+ "license": "<section class=\"plaintext\"><pre> Apache License\n Version 2.0, January 2004\n http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n &quot;License&quot; shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n &quot;Licensor&quot; shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n &quot;Legal Entity&quot; shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n &quot;control&quot; means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n &quot;You&quot; (or &quot;Your&quot;) shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n &quot;Source&quot; form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n &quot;Object&quot; form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n &quot;Work&quot; shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n &quot;Derivative Works&quot; shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n &quot;Contribution&quot; shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, &quot;submitted&quot;\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as &quot;Not a Contribution.&quot;\n\n &quot;Contributor&quot; shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a &quot;NOTICE&quot; text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an &quot;AS IS&quot; BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and&#x2F;or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets &quot;[]&quot;\n replaced with your own identifying information. (Don&#x27;t include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same &quot;printed page&quot; as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an &quot;AS IS&quot; BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n</pre></section>",
1374
+ "created_at": "2013-09-10 08:41:17 -0700",
1375
+ "updated_at": "2013-09-10 08:41:17 -0700",
1376
+ "deleted_at": null
1377
+ },
1378
+ {
1379
+ "uri": "/v3/releases/puppetlabs-apache-0.6.0",
1380
+ "module": {
1381
+ "uri": "/v3/modules/puppetlabs-apache",
1382
+ "name": "apache",
1383
+ "owner": {
1384
+ "uri": "/v3/users/puppetlabs",
1385
+ "username": "puppetlabs",
1386
+ "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
1387
+ }
1388
+ },
1389
+ "version": "0.6.0",
1390
+ "metadata": {
1391
+ "summary": "Puppet module for Apache",
1392
+ "author": "puppetlabs",
1393
+ "version": "0.6.0",
1394
+ "types": [
1395
+ {
1396
+ "doc": "Manage Apache 2 modules",
1397
+ "properties": [
1398
+ {
1399
+ "doc": "The basic property that the resource should be in. Valid values are `present`, `absent`.",
1400
+ "name": "ensure"
1401
+ }
1402
+ ],
1403
+ "providers": [
1404
+ {
1405
+ "doc": "Manage Apache 2 modules on Debian and Ubuntu\n\nRequired binaries: `a2enmod`, `a2dismod`. Default for `operatingsystem` == `debian, ubuntu`.",
1406
+ "name": "a2mod"
1407
+ },
1408
+ {
1409
+ "doc": "Manage Apache 2 modules on Gentoo\n\nDefault for `operatingsystem` == `gentoo`.",
1410
+ "name": "gentoo"
1411
+ },
1412
+ {
1413
+ "doc": "Dummy provider for A2mod.\n\n Fake nil resources when there is no crontab binary available. Allows\n puppetd to run on a bootstrapped machine before a Cron package has been\n installed. Workaround for: http://projects.puppetlabs.com/issues/2384\n ",
1414
+ "name": "modfix"
1415
+ },
1416
+ {
1417
+ "doc": "Manage Apache 2 modules on RedHat family OSs\n\nDefault for `osfamily` == `redhat`.",
1418
+ "name": "redhat"
1419
+ }
1420
+ ],
1421
+ "parameters": [
1422
+ {
1423
+ "doc": "The name of the module to be managed",
1424
+ "name": "name"
1425
+ },
1426
+ {
1427
+ "doc": "The name of the .so library to be loaded",
1428
+ "name": "lib"
1429
+ },
1430
+ {
1431
+ "doc": "Module identifier string used by LoadModule. Default: module-name_module",
1432
+ "name": "identifier"
1433
+ }
1434
+ ],
1435
+ "name": "a2mod"
1436
+ }
1437
+ ],
1438
+ "checksums": {
1439
+ "manifests/mod/perl.pp": "72195ad624f68e2c0009074d118bf8e4",
1440
+ "manifests/mod/auth_kerb.pp": "a7e4d1789f23528c7a19690340387a85",
1441
+ "tests/init.pp": "4eac4a7ef68499854c54a78879e25535",
1442
+ "manifests/mod/userdir.pp": "a7d01097caba2b3dcec7d6e96e0bf500",
1443
+ "LICENSE": "b3f8a01d8699078d82e8c3c992307517",
1444
+ "spec/defines/vhost/proxy_spec.rb": "de5cd37d9137791383b6a521feddfb82",
1445
+ "templates/httpd.conf.erb": "63e07e1d3428ecc3da8e812eb2524978",
1446
+ "spec/defines/vhost/redirect_spec.rb": "98f2a7022b7302a771d811e424454639",
1447
+ "spec/unit/provider/a2mod/gentoo_spec.rb": "24ad9db4f6ba0b4fc7ed77b509b4244c",
1448
+ "Gemfile": "e87c237ce1d9c2a91e439b8b6d5535a9",
1449
+ "CHANGELOG": "c682326786c52fa91a2f13ae48b4d018",
1450
+ "manifests/vhost/proxy.pp": "1b907bd712e0ac17385cd822a992d87d",
1451
+ "Modulefile": "32454a7842eb7df4461e4b0bf52a15bb",
1452
+ "tests/apache.pp": "819cf9116ffd349e6757e1926d11ca2f",
1453
+ "manifests/ssl.pp": "7f944d1c103a59ebd04d02e68af69f7a",
1454
+ "templates/mod/disk_cache.conf.erb": "bc2cb0003944e688d3137781f6a49997",
1455
+ "manifests/mod/proxy.pp": "d789eec804b4e887858cde19429afc7d",
1456
+ "spec/classes/php_spec.rb": "7c176dcb6cf35adce2d0ff3d17678f8a",
1457
+ "manifests/params.pp": "df442b5ea6cd7ec31e7eca15ac6b6f87",
1458
+ "manifests/mod/disk_cache.pp": "a6ce6b0d3393bff8287f6267dd49bc82",
1459
+ "manifests/vhost/redirect.pp": "7fb0fe676efa6bbc7de653d0651235c1",
1460
+ "manifests/mod/proxy_html.pp": "8cb51fa968a18d957274a2b68cca8216",
1461
+ "README.md": "9e8a84ba0cf502551d3b1c0e34320864",
1462
+ "templates/mod/php.conf.erb": "49e2d214790835c141fcaf6d74b5a96d",
1463
+ "lib/puppet/provider/a2mod/modfix.rb": "b689a1c83c9ccd8590399c67f3e588e5",
1464
+ "templates/vhost-default.conf.erb": "6d0ca4c613f92f58f5e960ec0512d3f4",
1465
+ "spec/classes/mod/ssl_spec.rb": "df737098c4bd03179e29d0c22a80a565",
1466
+ "templates/vhost-proxy.conf.erb": "21b2be5facb504dc7874f705c7c0882f",
1467
+ "manifests/mod/proxy_http.pp": "773d0fbb934440a24b3bc87517faa4d4",
1468
+ "spec/classes/dev_spec.rb": "64d66d5074a1d634d765db182bea5e43",
1469
+ "spec/classes/python_spec.rb": "ce7b11e4fb4e7bfe5b5c18ded9d24897",
1470
+ "Rakefile": "0254db5d3fc38c67a2c160d7296a24f8",
1471
+ "tests/php.pp": "ce7bb9eef69d32b42a32ce32d9653625",
1472
+ "manifests/mod/cgi.pp": "eba237e3f10511c02d8f27b99592103d",
1473
+ "spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",
1474
+ "manifests/proxy.pp": "54e7657920b580546f3bef3980f2fd03",
1475
+ "spec/classes/mod/python_spec.rb": "99f05654c0b748ab18096c5cf4b74781",
1476
+ "templates/test.vhost.erb": "31eb6a591acc699fe4e67a7cf367d0ab",
1477
+ "manifests/mod/dev.pp": "71234485e642f0e8cdd8774670d48b7f",
1478
+ "spec/classes/mod/wsgi_spec.rb": "7a05c23e66b027d4738ce1368f6d9f43",
1479
+ "manifests/python.pp": "2edb06e8119b67a5a62fb24fb280d3e5",
1480
+ "spec/spec.opts": "a600ded995d948e393fbe2320ba8e51c",
1481
+ "manifests/vhost.pp": "1643658d86e883b2bb68c4e8a2674035",
1482
+ "manifests/mod/dav_fs.pp": "c6acce86fe14f75521dc8c2920ccedf7",
1483
+ "manifests/mod/php.pp": "6de0671e78c1411cc0713f80075ef61f",
1484
+ "templates/vhost-redirect.conf.erb": "f12c8165c2e9a688402ec8484ef6c59c",
1485
+ "lib/puppet/provider/a2mod/gentoo.rb": "2492d446adbb68f678e86a75eb7ff3bd",
1486
+ "lib/puppet/type/a2mod.rb": "f230e4c3e6a111bc6dc79ab2287c9a29",
1487
+ "manifests/mod/cache.pp": "51b4826a72090da8e463bc007695f05b",
1488
+ "lib/puppet/provider/a2mod/a2mod.rb": "8b4836cfbcc980e60c30cc046bc77cd5",
1489
+ "manifests/mod/python.pp": "344f7b359d801ee6942211726004fa93",
1490
+ "tests/vhost.pp": "4a97d258da130cad784249a6097fd0ac",
1491
+ "tests/dev.pp": "4cf15c1fecea3ca86009f182b402c7ab",
1492
+ "spec/defines/mod_spec.rb": "c7e74bfdc295af1c0280a7df9828dea0",
1493
+ "files/httpd": "295f5e924afe6f752d29327e73fe6d0a",
1494
+ "manifests/mod.pp": "f8e6c202844b424d4b4b730813f4c6d3",
1495
+ "lib/puppet/provider/a2mod/redhat.rb": "90b9add30cf9acf2289a51d9f4c31bd7",
1496
+ "manifests/mod/default.pp": "8a2bc7a4312d60fd09ac4eadceab9330",
1497
+ "manifests/mod/auth_basic.pp": "47ff846317d52d2161c6d09cac05f7f8",
1498
+ "spec/classes/apache_spec.rb": "10f2a7629c7e596864f5c0b3c2ece6cf",
1499
+ "manifests/dev.pp": "c263f8db2a35361e9dfdef30477f8ee3",
1500
+ "manifests/mod/wsgi.pp": "90ef340ac19106fe801656091d3f9a4b",
1501
+ "spec/classes/ssl_spec.rb": "67c8ccf6b5055f50f40978b221873c88",
1502
+ "manifests/mod/fcgid.pp": "d03eb1add8f2cef603331dde96f1f7fd",
1503
+ "manifests/init.pp": "91cc24165436ab241855eb897fcc71b9",
1504
+ "manifests/mod/ssl.pp": "2ffd543847785cd2f916f244f8742448",
1505
+ "spec/classes/params_spec.rb": "41f4e90e9cbe23e5c81831248b2f3cd4",
1506
+ "manifests/php.pp": "a4478838b4cf9b0525b04db150cf55b8",
1507
+ "manifests/mod/dav.pp": "f0228b06b7101864f7c943b541e570d2",
1508
+ "manifests/mod/passenger.pp": "0bb9e5d4a49b72e56b7a909da42c47bc",
1509
+ "spec/classes/mod/auth_kerb_spec.rb": "6b71ffa45b4a0a1476ee56c75c26e6db",
1510
+ "spec/defines/vhost_spec.rb": "ccea97121bfcab1b50517d4413a55c99",
1511
+ "templates/mod/proxy.conf.erb": "54cd35ef17c78c18f10be50eebb4142c",
1512
+ "templates/mod/userdir.conf.erb": "fd73fe59b6a5dcf16a5df9af91c187dd"
1513
+ },
1514
+ "project_page": "https://github.com/puppetlabs/puppetlabs-apache",
1515
+ "source": "git://github.com/puppetlabs/puppetlabs-apache.git",
1516
+ "name": "puppetlabs-apache",
1517
+ "dependencies": [
1518
+ {
1519
+ "version_requirement": ">= 0.0.4",
1520
+ "name": "puppetlabs/firewall"
1521
+ },
1522
+ {
1523
+ "version_requirement": ">= 2.2.1",
1524
+ "name": "puppetlabs/stdlib"
1525
+ }
1526
+ ],
1527
+ "description": "Module for Apache configuration",
1528
+ "license": "Apache 2.0"
1529
+ },
1530
+ "tags": [
1531
+ "apache",
1532
+ "web",
1533
+ "virtualhost",
1534
+ "httpd",
1535
+ "centos",
1536
+ "rhel",
1537
+ "debian",
1538
+ "ubuntu",
1539
+ "apache2",
1540
+ "ssl",
1541
+ "passenger",
1542
+ "wsgi",
1543
+ "proxy",
1544
+ "virtual_host"
1545
+ ],
1546
+ "file_uri": "/v3/files/puppetlabs-apache-0.6.0.tar.gz",
1547
+ "file_size": 31302,
1548
+ "file_md5": "89fa11aef710c060e0bf9f9ff2cae455",
1549
+ "downloads": 25919,
1550
+ "readme": "<section class=\"markdown\"><h1>Puppetlabs module for Apache</h1>\n\n<p>Apache is widely-used web server and this module will allow to configure\nvarious modules and setup virtual hosts with minimal effort.</p>\n\n<h2>Basic usage</h2>\n\n<p>To install Apache</p>\n\n<pre><code>class {&#39;apache&#39;: }\n</code></pre>\n\n<p>To install the Apache PHP module</p>\n\n<pre><code>class {&#39;apache::mod::php&#39;: }\n</code></pre>\n\n<h2>Configure a virtual host</h2>\n\n<p>You can easily configure many parameters of a virtual host. A minimal\nexample is:</p>\n\n<pre><code>apache::vhost { &#39;www.example.com&#39;:\n priority =&gt; &#39;10&#39;,\n vhost_name =&gt; &#39;192.0.2.1&#39;,\n port =&gt; &#39;80&#39;,\n}\n</code></pre>\n\n<p>A slightly more complicated example, which moves the docroot and\nlogfile to an alternate location, might be:</p>\n\n<pre><code>apache::vhost { &#39;www.example.com&#39;:\n priority =&gt; &#39;10&#39;,\n vhost_name =&gt; &#39;192.0.2.1&#39;,\n port =&gt; &#39;80&#39;,\n docroot =&gt; &#39;/home/www.example.com/docroot/&#39;,\n logroot =&gt; &#39;/srv/www.example.com/logroot/&#39;,\n serveradmin =&gt; &#39;webmaster@example.com&#39;,\n serveraliases =&gt; [&#39;example.com&#39;,],\n}\n</code></pre>\n\n<h2>Dependencies</h2>\n\n<p>Some functionality is dependent on other modules:</p>\n\n<ul>\n<li><a href=\"https://github.com/puppetlabs/puppetlabs-stdlib\">stdlib</a></li>\n<li><a href=\"https://github.com/puppetlabs/puppetlabs-firewall\">firewall</a></li>\n</ul>\n\n<h2>Notes</h2>\n\n<p>Since Puppet cannot ensure that all parent directories exist you need to\nmanage these yourself. In the more advanced example above, you need to ensure \nthat <code>/home/www.example.com</code> and <code>/srv/www.example.com</code> directories exist.</p>\n\n<h2>Contributors</h2>\n\n<ul>\n<li>A cast of hundreds, hopefully you too soon</li>\n</ul>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
1551
+ "changelog": "<section class=\"plaintext\"><pre>2013-03-2 Release 0.6.0\n- update travis tests (add more supported versions)\n- add access log_parameter\n- make purging of vhost dir configurable\n\n2012-08-24 Release 0.4.0\nChanges:\n- `include apache` is now required when using apache::mod::*\n\nBugfixes:\n- Fix syntax for validate_re\n- Fix formatting in vhost template\n- Fix spec tests such that they pass\n\n2012-05-08 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.4\ne62e362 Fix broken tests for ssl, vhost, vhost::*\n42c6363 Changes to match style guide and pass puppet-lint without error\n42bc8ba changed name =&gt; path for file resources in order to name namevar by it&#x27;s name\n72e13de One end too much\n0739641 style guide fixes: &#x27;true&#x27; &lt;&gt; true, $operatingsystem needs to be $::operatingsystem, etc.\n273f94d fix tests\na35ede5 (#13860) Make a2enmod&#x2F;a2dismo commands optional\n98d774e (#13860) Autorequire Package[&#x27;httpd&#x27;]\n05fcec5 (#13073) Add missing puppet spec tests\n541afda (#6899) Remove virtual a2mod definition\n976cb69 (#13072) Move mod python and wsgi package names to params\n323915a (#13060) Add .gitignore to repo\nfdf40af (#13060) Remove pkg directory from source tree\nfd90015 Add LICENSE file and update the ModuleFile\nd3d0d23 Re-enable local php class\nd7516c7 Make management of firewalls configurable for vhosts\n60f83ba Explicitly lookup scope of apache_name in templates.\nf4d287f (#12581) Add explicit ordering for vdir directory\n88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall\na776a8b (#11071) Fix to work with latest firewall module\n2b79e8b (#11070) Add support for Scientific Linux\n405b3e9 Fix for a2mod\n57b9048 Commit apache::vhost::redirect Manifest\n8862d01 Commit apache::vhost::proxy Manifest\nd5c1fd0 Commit apache::mod::wsgi Manifest\na825ac7 Commit apache::mod::python Manifest\nb77062f Commit Templates\n9a51b4a Vhost File Declarations\n6cf7312 Defaults for Parameters\n6a5b11a Ensure installed\nf672e46 a2mod fix\n8a56ee9 add pthon support to apache\n</pre></section>",
1552
+ "license": "<section class=\"plaintext\"><pre>Copyright (C) 2012 Puppet Labs Inc\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
1553
+ "created_at": "2013-03-28 15:44:52 -0700",
1554
+ "updated_at": "2013-03-28 15:44:52 -0700",
1555
+ "deleted_at": null
1556
+ },
1557
+ {
1558
+ "uri": "/v3/releases/puppetlabs-ruby-0.0.2",
1559
+ "module": {
1560
+ "uri": "/v3/modules/puppetlabs-ruby",
1561
+ "name": "ruby",
1562
+ "owner": {
1563
+ "uri": "/v3/users/puppetlabs",
1564
+ "username": "puppetlabs",
1565
+ "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
1566
+ }
1567
+ },
1568
+ "version": "0.0.2",
1569
+ "metadata": {
1570
+ "types": [
1571
+
1572
+ ],
1573
+ "project_page": "https://github.com/puppetlabs/puppetlabs-ruby",
1574
+ "version": "0.0.2",
1575
+ "checksums": {
1576
+ "spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",
1577
+ "manifests/params.pp": "ab282de0876f38d6c67881306a3f4b27",
1578
+ "LICENSE": "b3f8a01d8699078d82e8c3c992307517",
1579
+ "tests/params.pp": "624af9411bd668264baef475bcc9e54b",
1580
+ "README.md": "f31b89ff8fa96488bc76955b081a5f10",
1581
+ "Rakefile": "0254db5d3fc38c67a2c160d7296a24f8",
1582
+ "manifests/dev.pp": "ee5276a5772eee8c68204c4463842f03",
1583
+ "tests/init.pp": "c3c821d5d8b70fcc6ecbd0b15ed53109",
1584
+ "tests/dev.pp": "4d74853324ca33cc13995f7819948f83",
1585
+ "spec/classes/ruby_spec.rb": "29b3f413f91aacd85bd4b33a095b6825",
1586
+ "Modulefile": "f4def9fdca48beb00377cce8a7a3b4d7",
1587
+ "manifests/init.pp": "45eb7bdae97d4b202061ff274fa48522"
1588
+ },
1589
+ "dependencies": [
1590
+
1591
+ ],
1592
+ "summary": "Puppet Labs Ruby Module",
1593
+ "source": "https://github.com/puppetlabs/puppetlabs-ruby",
1594
+ "description": "Ruby Module for Puppet",
1595
+ "author": "Puppet Labs",
1596
+ "name": "puppetlabs-ruby",
1597
+ "license": "Apache License 2.0"
1598
+ },
1599
+ "tags": [
1600
+ "ruby"
1601
+ ],
1602
+ "file_uri": "/v3/files/puppetlabs-ruby-0.0.2.tar.gz",
1603
+ "file_size": 3408,
1604
+ "file_md5": "16f0165618da0c20753beb44e72708b8",
1605
+ "downloads": 21938,
1606
+ "readme": "<section class=\"markdown\"><h1>Ruby Module</h1>\n\n<p>This module manages Ruby and Rubygems on Debian and Redhat based systems.</p>\n\n<h2>Parameters</h2>\n\n<ul>\n<li><p>version: (default installed)\nSet the version of Ruby to install</p></li>\n<li><p>gems_version: (default installed)\nSet the version of Rubygems to be installed</p></li>\n<li><p>rubygems_update: (default true)\nIf set to true, the module will ensure that the rubygems package is installed\nbut will use rubygems-update (same as gem update --system but versionable) to\nupdate Rubygems to the version defined in $gems_version. If set to false then\nthe rubygems package resource will be versioned from $gems_version</p></li>\n</ul>\n\n<h2>Usage</h2>\n\n<p>For a standard install using the latest Rubygems provided by rubygems-update on\nCentOS or Redhat use:</p>\n\n<pre><code>class { &#39;ruby&#39;:\n gems_version =&gt; &#39;latest&#39;\n}\n</code></pre>\n\n<p>On Redhat this is equivilant to</p>\n\n<pre><code>$ yum install ruby rubygems\n$ gem update --system\n</code></pre>\n\n<p>To install a specific version of ruby and rubygems but <em>not</em> use\nrubygems-update use:</p>\n\n<pre><code>class { &#39;ruby&#39;:\n version =&gt; &#39;1.8.7&#39;,\n gems_version =&gt; &#39;1.8.24&#39;,\n rubygems_update =&gt; false\n}\n</code></pre>\n\n<p>On Redhat this is equivilent to</p>\n\n<pre><code>$ yum install ruby-1.8.7 rubygems-1.8.24\n</code></pre>\n</section>",
1607
+ "changelog": null,
1608
+ "license": "<section class=\"plaintext\"><pre>Copyright (C) 2012 Puppet Labs Inc\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
1609
+ "created_at": "2012-07-18 20:52:00 -0700",
1610
+ "updated_at": "2013-03-04 14:57:28 -0800",
1611
+ "deleted_at": null
1612
+ },
1613
+ {
1614
+ "uri": "/v3/releases/puppetlabs-firewall-0.0.4",
1615
+ "module": {
1616
+ "uri": "/v3/modules/puppetlabs-firewall",
1617
+ "name": "firewall",
1618
+ "owner": {
1619
+ "uri": "/v3/users/puppetlabs",
1620
+ "username": "puppetlabs",
1621
+ "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
1622
+ }
1623
+ },
1624
+ "version": "0.0.4",
1625
+ "metadata": {
1626
+ "version": "0.0.4",
1627
+ "checksums": {
1628
+ "spec/spec_helper.rb": "5ddfa068aaf6e85afdea6d8401b890fb",
1629
+ "spec/monkey_patches/alias_should_to_must.rb": "7cd4065c63f06f1ab3aaa1c5f92af947",
1630
+ "spec/unit/puppet/type/firewall_spec.rb": "427294f441bf0376d41caa43312868c6",
1631
+ "lib/puppet/provider/firewall/ip6tables.rb": "37ccb43da0c5950d33213a1082bde094",
1632
+ "examples/iptables/run.sh": "564f117a8cd0fefe32c9f0edd90fa95b",
1633
+ "examples/iptables/readme.pp": "3a2200300611d42e89f9961b7b7ce919",
1634
+ "spec/unit/puppet/util/firewall_spec.rb": "09556195135a05b0901b673ceca0e7d1",
1635
+ "spec/puppet_spec/matchers.rb": "8e77dc7317de7fc2ff289fb716623b6c",
1636
+ "examples/iptables/test.pp": "3706d2fda31da0264576cbc4a1d7fea7",
1637
+ "spec/puppet_spec/verbose.rb": "2e0e0e74f2c5ec0408d455e773755bf9",
1638
+ "LICENSE": "d6d36a81bf5fdfc7b582b3968e12794d",
1639
+ "spec/puppet_spec/files.rb": "34e40f4dcdc90d1138a471d883c33d79",
1640
+ "lib/puppet/util/firewall.rb": "0adc814705c4f92a8191ff274801f708",
1641
+ "lib/puppet/type/firewall.rb": "babcbf3938183329b6b78795f8abaf2b",
1642
+ "lib/facter/iptables.rb": "47bbd812e6fd7a7bdff3435c50b4687d",
1643
+ "spec/puppet_spec/fixtures.rb": "147446d18612c8395ac65be10b1cd9ab",
1644
+ "spec/fixtures/iptables/conversion_hash.rb": "ae664f8b54179940e9d9e2c2c1c143b4",
1645
+ "Rakefile": "17ab6da1866351b9ece1ddef91627697",
1646
+ "examples/ip6tables/test.pp": "7e4fa8c1f994fa41fd6988981092cbf3",
1647
+ "spec/unit/facter/iptables_spec.rb": "bdbb21c03badad420a5cdafd301a6e14",
1648
+ "CHANGELOG.md": "e87877cc22f0c0edff065764bbb44ba2",
1649
+ "lib/puppet/util/ipcidr.rb": "225adf61f5de40fa04b4e936e388b801",
1650
+ "lib/puppet/provider/firewall/iptables.rb": "09095f4df985ff6beea50e8db5c36fb7",
1651
+ "CONTRIBUTING.md": "346969b756bc432a2a2fab4307ebb93a",
1652
+ "spec/unit/puppet/util/ipcidr_spec.rb": "d36380e92b40f3afda5de3cfe4a62a10",
1653
+ "spec/monkey_patches/publicize_methods.rb": "1b03a4af94f7dac35f7c2809caf372ca",
1654
+ "README.markdown": "d3483c8f0cbd41446c7c9c0d69443d73",
1655
+ "lib/puppet/provider/firewall.rb": "f4c747685c2c8ef97fe78732c8153c75",
1656
+ "spec/unit/puppet/provider/iptables_spec.rb": "c4f234d10805dda2265413a44148fbdf",
1657
+ "Modulefile": "40f947a769cca5c2846ba83ea7b624ef"
1658
+ },
1659
+ "source": "git://github.com/puppetlabs/puppetlabs-firewall.git",
1660
+ "dependencies": [
1661
+
1662
+ ],
1663
+ "summary": "Firewall Module",
1664
+ "author": "puppetlabs",
1665
+ "name": "puppetlabs-firewall",
1666
+ "types": [
1667
+ {
1668
+ "providers": [
1669
+ {
1670
+ "doc": "Ip6tables type provider Required binaries: `/sbin/ip6tables`, `/sbin/ip6tables-save`. Supported features: `dnat`, `icmp_match`, `interface_match`, `iptables`, `log_level`, `log_prefix`, `owner`, `rate_limiting`, `reject_type`, `snat`, `state_match`.",
1671
+ "name": "ip6tables"
1672
+ },
1673
+ {
1674
+ "doc": "Iptables type provider Required binaries: `/sbin/iptables`, `/sbin/iptables-save`. Default for `kernel` == `linux`. Supported features: `dnat`, `icmp_match`, `interface_match`, `iptables`, `log_level`, `log_prefix`, `owner`, `rate_limiting`, `reject_type`, `snat`, `state_match`.",
1675
+ "name": "iptables"
1676
+ }
1677
+ ],
1678
+ "parameters": [
1679
+ {
1680
+ "doc": " The canonical name of the rule. This name is also used for ordering\n so make sure you prefix the rule with a number:\n\n 000 this runs first\n 999 this runs last\n\n Depending on the provider, the name of the rule can be stored using\n the comment feature of the underlying firewall subsystem.\n Values can match `/^\\d+[[:alpha:][:digit:][:punct:][:space:]]+$/`.",
1681
+ "name": "name"
1682
+ },
1683
+ {
1684
+ "doc": " Read-only property for caching the rule line.\n",
1685
+ "name": "line"
1686
+ }
1687
+ ],
1688
+ "doc": " This type provides the capability to manage firewall rules within\n puppet.\n",
1689
+ "name": "firewall",
1690
+ "properties": [
1691
+ {
1692
+ "doc": " Manage the state of this rule. The default action is *present*.\n Valid values are `present`, `absent`.",
1693
+ "name": "ensure"
1694
+ },
1695
+ {
1696
+ "doc": " This is the action to perform on a match. Can be one of:\n\n * accept - the packet is accepted\n * reject - the packet is rejected with a suitable ICMP response\n * drop - the packet is dropped\n\n If you specify no value it will simply match the rule but perform no\n action unless you provide a provider specific parameter (such as *jump*).\n Valid values are `accept`, `reject`, `drop`.",
1697
+ "name": "action"
1698
+ },
1699
+ {
1700
+ "doc": " An array of source addresses. For example:\n\n source => '192.168.2.0/24'\n\n The source can also be an IPv6 address if your provider supports it.\n",
1701
+ "name": "source"
1702
+ },
1703
+ {
1704
+ "doc": " An array of destination addresses to match. For example:\n\n destination => '192.168.1.0/24'\n\n The destination can also be an IPv6 address if your provider supports it.\n",
1705
+ "name": "destination"
1706
+ },
1707
+ {
1708
+ "doc": " The source port to match for this filter (if the protocol supports\n ports). Will accept a single element or an array.\n\n For some firewall providers you can pass a range of ports in the format:\n\n <start_number>-<ending_number>\n\n For example:\n\n 1-1024\n\n This would cover ports 1 to 1024.\n",
1709
+ "name": "sport"
1710
+ },
1711
+ {
1712
+ "doc": " The destination port to match for this filter (if the protocol supports\n ports). Will accept a single element or an array.\n\n For some firewall providers you can pass a range of ports in the format:\n\n <start_number>-<ending_number>\n\n For example:\n\n 1-1024\n\n This would cover ports 1 to 1024.\n",
1713
+ "name": "dport"
1714
+ },
1715
+ {
1716
+ "doc": " The destination or source port to match for this filter (if the protocol\n supports ports). Will accept a single element or an array.\n\n For some firewall providers you can pass a range of ports in the format:\n\n <start_number>-<ending_number>\n\n For example:\n\n 1-1024\n\n This would cover ports 1 to 1024.\n",
1717
+ "name": "port"
1718
+ },
1719
+ {
1720
+ "doc": " The specific protocol to match for this rule. By default this is\n *tcp*.\n Valid values are `tcp`, `udp`, `icmp`, `ipv6-icmp`, `esp`, `ah`, `vrrp`, `igmp`, `ipencap`, `all`.",
1721
+ "name": "proto"
1722
+ },
1723
+ {
1724
+ "doc": " Name of the chain to use. Can be one of the built-ins:\n\n * INPUT\n * FORWARD\n * OUTPUT\n * PREROUTING\n * POSTROUTING\n\n Or you can provide a user-based chain.\n\n The default value is 'INPUT'.\n Values can match `/^[a-zA-Z0-9\\-_]+$/`. Requires features iptables.",
1725
+ "name": "chain"
1726
+ },
1727
+ {
1728
+ "doc": " Table to use. Can be one of:\n\n * nat\n * mangle\n * filter\n * raw\n * rawpost\n\n By default the setting is 'filter'.\n Valid values are `nat`, `mangle`, `filter`, `raw`, `rawpost`. Requires features iptables.",
1729
+ "name": "table"
1730
+ },
1731
+ {
1732
+ "doc": " The value for the iptables --jump parameter. Normal values are:\n\n * QUEUE\n * RETURN\n * DNAT\n * SNAT\n * LOG\n * MASQUERADE\n * REDIRECT\n\n But any valid chain name is allowed.\n\n For the values ACCEPT, DROP and REJECT you must use the generic\n 'action' parameter. This is to enfore the use of generic parameters where\n possible for maximum cross-platform modelling.\n\n If you set both 'accept' and 'jump' parameters, you will get an error as\n only one of the options should be set.\n Requires features iptables.",
1733
+ "name": "jump"
1734
+ },
1735
+ {
1736
+ "doc": " Input interface to filter on.\n Values can match `/^[a-zA-Z0-9\\-_]+$/`. Requires features interface_match.",
1737
+ "name": "iniface"
1738
+ },
1739
+ {
1740
+ "doc": " Output interface to filter on.\n Values can match `/^[a-zA-Z0-9\\-_]+$/`. Requires features interface_match.",
1741
+ "name": "outiface"
1742
+ },
1743
+ {
1744
+ "doc": " When using jump => \"SNAT\" you can specify the new source address using\n this parameter.\n Requires features snat.",
1745
+ "name": "tosource"
1746
+ },
1747
+ {
1748
+ "doc": " When using jump => \"DNAT\" you can specify the new destination address\n using this paramter.\n Requires features dnat.",
1749
+ "name": "todest"
1750
+ },
1751
+ {
1752
+ "doc": " For DNAT this is the port that will replace the destination port.\n Requires features dnat.",
1753
+ "name": "toports"
1754
+ },
1755
+ {
1756
+ "doc": " When combined with jump => \"REJECT\" you can specify a different icmp\n response to be sent back to the packet sender.\n Requires features reject_type.",
1757
+ "name": "reject"
1758
+ },
1759
+ {
1760
+ "doc": " When combined with jump => \"LOG\" specifies the system log level to log\n to.\n Requires features log_level.",
1761
+ "name": "log_level"
1762
+ },
1763
+ {
1764
+ "doc": " When combined with jump => \"LOG\" specifies the log prefix to use when\n logging.\n Requires features log_prefix.",
1765
+ "name": "log_prefix"
1766
+ },
1767
+ {
1768
+ "doc": " When matching ICMP packets, this is the type of ICMP packet to match.\n Requires features icmp_match.",
1769
+ "name": "icmp"
1770
+ },
1771
+ {
1772
+ "doc": " Matches a packet based on its state in the firewall stateful inspection\n table. Values can be:\n\n * INVALID\n * ESTABLISHED\n * NEW\n * RELATED\n Valid values are `INVALID`, `ESTABLISHED`, `NEW`, `RELATED`. Requires features state_match.",
1773
+ "name": "state"
1774
+ },
1775
+ {
1776
+ "doc": " Rate limiting value for matched packets. The format is:\n rate/[/second/|/minute|/hour|/day].\n\n Example values are: '50/sec', '40/min', '30/hour', '10/day'.\"\n Requires features rate_limiting.",
1777
+ "name": "limit"
1778
+ },
1779
+ {
1780
+ "doc": " Rate limiting burst value (per second) before limit checks apply.\n Values can match `/^\\d+$/`. Requires features rate_limiting.",
1781
+ "name": "burst"
1782
+ },
1783
+ {
1784
+ "doc": " UID or Username owner matching rule. Accepts a string argument\n only, as iptables does not accept multiple uid in a single\n statement.\n Requires features owner.",
1785
+ "name": "uid"
1786
+ },
1787
+ {
1788
+ "doc": " GID or Group owner matching rule. Accepts a string argument\n only, as iptables does not accept multiple gid in a single\n statement.\n Requires features owner.",
1789
+ "name": "gid"
1790
+ }
1791
+ ]
1792
+ }
1793
+ ],
1794
+ "description": "Manages Firewalls such as iptables",
1795
+ "license": "ASL 2.0",
1796
+ "project_page": "http://forge.puppetlabs.com/puppetlabs/firewall"
1797
+ },
1798
+ "tags": [
1799
+ "iptables",
1800
+ "security",
1801
+ "firewall",
1802
+ "ip6tables",
1803
+ "archlinux",
1804
+ "redhat",
1805
+ "centos",
1806
+ "debian",
1807
+ "ubuntu"
1808
+ ],
1809
+ "file_uri": "/v3/files/puppetlabs-firewall-0.0.4.tar.gz",
1810
+ "file_size": 29805,
1811
+ "file_md5": "2556a9f30a3d817dc5f486a7eec7a9be",
1812
+ "downloads": 21894,
1813
+ "readme": "<section class=\"markdown\"><h2>puppetlabs-firewall module</h2>\n\n<h2>User Guide</h2>\n\n<h3>Overview</h3>\n\n<p>This type provides the capability to manage firewall rules within \npuppet.</p>\n\n<p>Current support includes:</p>\n\n<ul>\n<li>iptables</li>\n<li>ip6tables</li>\n</ul>\n\n<h3>Disclaimer</h3>\n\n<p>Warning! While this software is written in the best interest of quality it has\nnot been formally tested by our QA teams. Use at your own risk, but feel free\nto enjoy and perhaps improve it while you do.</p>\n\n<p>Please see the included Apache Software License for more legal details\nregarding warranty.</p>\n\n<p>Also as this is a 0.x release the API is still in flux and may change. Make sure\nyou read the release notes before upgrading.</p>\n\n<h3>Downloading</h3>\n\n<p>If you are intending to use this module it is recommended you obtain this from the\nforge and not Github:</p>\n\n<pre><code>http://forge.puppetlabs.com/puppetlabs/firewall\n</code></pre>\n\n<p>The forge releases are vetted releases. Using code from Github means you are\naccessing a development version or early release of the code.</p>\n\n<h3>Installation</h3>\n\n<p>Using the puppet-module gem, you can install it into your Puppet&#39;s \nmodule path. If you are not sure where your module path is try \nthis command:</p>\n\n<pre><code>puppet --configprint modulepath\n</code></pre>\n\n<p>Firstly change into that directory. For example:</p>\n\n<pre><code>cd /etc/puppet/modules\n</code></pre>\n\n<p>Then run the module tool:</p>\n\n<pre><code>puppet-module install puppetlabs-firewall\n</code></pre>\n\n<p>This module uses both Ruby based providers so your Puppet configuration\n(ie. puppet.conf) must include the following items:</p>\n\n<pre><code>[agent]\npluginsync = true\n</code></pre>\n\n<p>The module will not operate normally without these features enabled for the\nclient.</p>\n\n<p>If you are using environments or with certain versions of Puppet you may\nneed to run Puppet on the master first:</p>\n\n<pre><code>puppet agent -t --pluginsync --environment production\n</code></pre>\n\n<p>You may also need to restart Apache, although this shouldn&#39;t always be the\ncase.</p>\n\n<h3>Examples</h3>\n\n<p>Basic accept ICMP request example:</p>\n\n<pre><code>firewall { &quot;000 accept all icmp requests&quot;:\n proto =&gt; &quot;icmp&quot;,\n action =&gt; &quot;accept&quot;,\n}\n</code></pre>\n\n<p>Drop all:</p>\n\n<pre><code>firewall { &quot;999 drop all other requests&quot;:\n action =&gt; &quot;drop&quot;,\n}\n</code></pre>\n\n<p>Source NAT example (perfect for a virtualization host):</p>\n\n<pre><code>firewall { &#39;100 snat for network foo2&#39;:\n chain =&gt; &#39;POSTROUTING&#39;,\n jump =&gt; &#39;MASQUERADE&#39;,\n proto =&gt; &#39;all&#39;,\n outiface =&gt; &quot;eth0&quot;,\n source =&gt; [&#39;10.1.2.0/24&#39;],\n table =&gt; &#39;nat&#39;,\n}\n</code></pre>\n\n<p>You can make firewall rules persistent with the following iptables example:</p>\n\n<pre><code>exec { &quot;persist-firewall&quot;:\n command =&gt; $operatingsystem ? {\n &quot;debian&quot; =&gt; &quot;/sbin/iptables-save &gt; /etc/iptables/rules.v4&quot;,\n /(RedHat|CentOS)/ =&gt; &quot;/sbin/iptables-save &gt; /etc/sysconfig/iptables&quot;,\n }\n refreshonly =&gt; true,\n}\nFirewall {\n notify =&gt; Exec[&quot;persist-firewall&quot;]\n}\n</code></pre>\n\n<p>If you wish to ensure any reject rules are executed last, try using stages.\nThe following example shows the creation of a class which is where your\nlast rules should run, this however should belong in a puppet module.</p>\n\n<pre><code>class my_fw::drop {\n iptables { &quot;999 drop all&quot;:\n action =&gt; &quot;drop&quot;\n }\n}\n\nstage { pre: before =&gt; Stage[main] }\nstage { post: require =&gt; Stage[main] }\n\nclass { &quot;my_fw::drop&quot;: stage =&gt; &quot;post&quot; }\n</code></pre>\n\n<p>By placing the &#39;my_fw::drop&#39; class in the post stage it will always be inserted\nlast thereby avoiding locking you out before the accept rules are inserted.</p>\n\n<h3>Further documentation</h3>\n\n<p>More documentation is available from the forge for each release:</p>\n\n<pre><code>&lt;http://forge.puppetlabs.com/puppetlabs/firewall&gt;\n</code></pre>\n\n<p>Or you can access the inline documentation:</p>\n\n<pre><code>puppet describe firewall\n</code></pre>\n\n<p>Or:</p>\n\n<pre><code>puppet doc -r type\n</code></pre>\n\n<p>(and search for firewall).</p>\n\n<h3>Bugs</h3>\n\n<p>Bugs can be reported in the Puppetlabs Redmine project:</p>\n\n<pre><code>&lt;http://projects.puppetlabs.com/projects/modules/&gt;\n</code></pre>\n\n<h2>Developer Guide</h2>\n\n<h3>Contributing</h3>\n\n<p>Make sure you read CONTRIBUTING.md before contributing.</p>\n\n<p>Currently we support:</p>\n\n<ul>\n<li>iptables</li>\n<li>ip6tables</li>\n</ul>\n\n<p>But plans are to support lots of other firewall implementations:</p>\n\n<ul>\n<li>FreeBSD (ipf)</li>\n<li>Mac OS X (ipfw)</li>\n<li>OpenBSD (pf)</li>\n<li>Cisco (ASA and basic access lists)</li>\n</ul>\n\n<p>If you have knowledge in these technology, know how to code and wish to contribute \nto this project we would welcome the help.</p>\n\n<h3>Testing</h3>\n\n<p>Make sure you have:</p>\n\n<pre><code>rake\n</code></pre>\n\n<p>Install the necessary gems:</p>\n\n<pre><code>gem install rspec\n</code></pre>\n\n<p>And run the tests from the root of the source code:</p>\n\n<pre><code>rake test\n</code></pre>\n</section>",
1814
+ "changelog": null,
1815
+ "license": "<section class=\"plaintext\"><pre>Puppet Firewall Module - Puppet module for managing Firewalls\n\nCopyright (C) 2011 Puppet Labs, Inc.\nCopyright (C) 2011 Jonathan Boyett\n\nSome of the iptables code was taken from puppet-iptables which was:\n\nCopyright (C) 2011 Bob.sh Limited\nCopyright (C) 2008 Camptocamp Association\nCopyright (C) 2007 Dmitri Priimak\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
1816
+ "created_at": "2011-12-05 22:56:20 -0800",
1817
+ "updated_at": "2011-12-05 22:56:20 -0800",
1818
+ "deleted_at": null
1819
+ },
1820
+ {
1821
+ "uri": "/v3/releases/example42-puppi-2.1.7",
1822
+ "module": {
1823
+ "uri": "/v3/modules/example42-puppi",
1824
+ "name": "puppi",
1825
+ "owner": {
1826
+ "uri": "/v3/users/example42",
1827
+ "username": "example42",
1828
+ "gravatar_id": "3b9afc574837c445c9550f035135f043"
1829
+ }
1830
+ },
1831
+ "version": "2.1.7",
1832
+ "metadata": {
1833
+ "name": "example42-puppi",
1834
+ "version": "2.1.7",
1835
+ "source": "git://github.com/example42/puppi",
1836
+ "author": "lab42",
1837
+ "license": "Apache",
1838
+ "summary": "Installs and configures Puppi",
1839
+ "description": "This module provides the Puppi libraries required by Example42 modules and, if explicitely included, the puppi command, its working environment, the defines and procedures to deploy applications",
1840
+ "project_page": "http://www.example42.com",
1841
+ "dependencies": [
1842
+
1843
+ ],
1844
+ "types": [
1845
+
1846
+ ],
1847
+ "checksums": {
1848
+ "LICENSE": "a300b604c66de62cf6e923cca89c9d83",
1849
+ "Modulefile": "ff6f1455c4544414ddb250529123839f",
1850
+ "README.md": "841eaaae1b8eb0fd3bbe06917ddd31de",
1851
+ "README_check.md": "70d0a35d81249b140da94b1d9605a944",
1852
+ "README_deploy.md": "ebcd455453309277bcc278773336a7c9",
1853
+ "README_info.md": "1166c439d71f86e92f21a0879a492e15",
1854
+ "README_log.md": "7423f9bc977faee3cf5e01de9970995b",
1855
+ "Rakefile": "f6c685620eb850c579e290caeb550255",
1856
+ "composer.json": "7ff570e65ab8ab39d8f5598fe6488812",
1857
+ "files/info/readme/readme": "06bf19257e085da580d16ccdd2eebcbe",
1858
+ "files/info/readme/readme-default": "e616e48f90bf4b3fc3310f0152b7d5f8",
1859
+ "files/mailpuppicheck": "84695eb34ff03140deb6cb852f8c4748",
1860
+ "files/mcollective/mc-puppi": "9a2b7f95beafd634da2c4676fbaf405a",
1861
+ "files/mcollective/puppi.ddl": "6c1c486c599d44e2a23ae3cb81340389",
1862
+ "files/mcollective/puppi.rb": "ef6a3f59b86a3e87c2ae680b67d028bb",
1863
+ "files/mcollective/puppicheck": "7ed29b684b0304888594d536505ecf4f",
1864
+ "files/mcollective/puppideploy": "c56d5b12f370edf69f2f6557987cc0cc",
1865
+ "files/scripts/archive.sh": "ca8db4924a4a0837bb65c163afd37974",
1866
+ "files/scripts/check_project.sh": "27b135bcb519fac089ca99c0c6d2d2db",
1867
+ "files/scripts/checkwardir.sh": "dc75eb521c56b3c8310b16d3446e004e",
1868
+ "files/scripts/clean_filelist.sh": "d6dcfead938cc02daa696fa11ca6837d",
1869
+ "files/scripts/database.sh": "adaa39d289ed0d5624d58f0452509df6",
1870
+ "files/scripts/delete.sh": "bae2b996773ffc73635b990e33c05417",
1871
+ "files/scripts/deploy.sh": "b4bdcc74f92e6038ff25b89f109ed8c0",
1872
+ "files/scripts/deploy_files.sh": "147bf6b2d474056e8b75ada19de1fe81",
1873
+ "files/scripts/execute.sh": "5cbec7f5a82a877c0d156a6c0182df9e",
1874
+ "files/scripts/firewall.sh": "4d1cce1a3e5f12b40b442374868090ea",
1875
+ "files/scripts/functions": "27ca12a2ce15eceba874ae7628484949",
1876
+ "files/scripts/get_file.sh": "2e0015ace17adf33fa6f943bac005d1d",
1877
+ "files/scripts/get_filesfromlist.sh": "055bd95fa3a9882fbd3032e074f86f42",
1878
+ "files/scripts/get_maven_files.sh": "26f62cd4c6ad2942ab9bd3c9feba5609",
1879
+ "files/scripts/get_metadata.sh": "f67a2bdbf5113b15f15c3361988dd8c7",
1880
+ "files/scripts/git.sh": "9276bb790bf1e35266b20e30a6418ea9",
1881
+ "files/scripts/header": "f1ab14362a6f161ea2688def9b6a46ee",
1882
+ "files/scripts/predeploy.sh": "04104f7d21719568a9b356b980e024ed",
1883
+ "files/scripts/predeploy_tar.sh": "42a27d4defbc8bb2e8625a66c604cb76",
1884
+ "files/scripts/report_mail.sh": "5d5a3809f125b6db0a9382fb08e39ae5",
1885
+ "files/scripts/report_mongo.sh": "da2885f654b751b282fec08f4507d26e",
1886
+ "files/scripts/service.sh": "b4311afb8700afee1d893d5c6fcb6867",
1887
+ "files/scripts/svn.sh": "962a730fb7fa8b335aa932ace975aba2",
1888
+ "files/scripts/wait.sh": "5862b4df7916deb044444260cf5ac19b",
1889
+ "files/scripts/yant.sh": "b715c2ea21000f0d73e89f0d70e90e76",
1890
+ "files/scripts/yum.sh": "64ed8c7d79d89376ea86cf06aa4cb6eb",
1891
+ "lib/facter/last_run.rb": "75c871bd5262d1830c6a64d0ba3d8153",
1892
+ "lib/facter/puppi_projects.rb": "52c607131dc7a65db70d52f60e19bd09",
1893
+ "lib/puppet/parser/functions/any2bool.rb": "9a33c68686b26701e2289f553bed78e5",
1894
+ "lib/puppet/parser/functions/bool2ensure.rb": "7ed40cbdcb65556f5c9295a4088422a8",
1895
+ "lib/puppet/parser/functions/get_class_args.rb": "3a830d0d3af0f7c30002fa0213ccf555",
1896
+ "lib/puppet/parser/functions/get_magicvar.rb": "24c1abf9c43e7cf7290efeda7d5dd403",
1897
+ "lib/puppet/parser/functions/get_module_path.rb": "d4bf50da25c0b98d26b75354fa1bcc45",
1898
+ "lib/puppet/parser/functions/is_array.rb": "11696f865c1e4ada60769b033bdb88c8",
1899
+ "lib/puppet/parser/functions/nslookup.rb": "976cfe36eec535d97a17139c7408f0bd",
1900
+ "lib/puppet/parser/functions/options_lookup.rb": "5b5f8291e4b20c2aa31488b0ffe680b2",
1901
+ "lib/puppet/parser/functions/params_lookup.rb": "926e9ce38835bb63a9307b48d03d1495",
1902
+ "lib/puppet/parser/functions/url_parse.rb": "71d6f11070d1dc00f3dcad71a23f570a",
1903
+ "manifests/check.pp": "6e7cee7085a4e96a8e3a35fa0363bf9a",
1904
+ "manifests/configure.pp": "a14babd82aa428e0c5dc2b953797411f",
1905
+ "manifests/dependencies.pp": "91b2f9861af686f2860dc50e5b808c00",
1906
+ "manifests/deploy.pp": "1026044e262d37d195b085da68f4f28d",
1907
+ "manifests/extras.pp": "61dbacd5d1b5ce76f0f06f7298fa2fcc",
1908
+ "manifests/helper.pp": "79e26cc44408258cec33af1dad16d626",
1909
+ "manifests/helpers.pp": "87725d1e0325807b457d2eb818bf9f9f",
1910
+ "manifests/info/instance.pp": "6aba3dd55088f807ac29c7a25d5aa36f",
1911
+ "manifests/info/module.pp": "0ef6b568271ed5ed7abea8e818326e55",
1912
+ "manifests/info/readme.pp": "429cdfb835d74d6281cfa05da664aebd",
1913
+ "manifests/info.pp": "485dbbd21c0c7f170db82389007dc8bd",
1914
+ "manifests/init.pp": "277a01514ae936729280b04cfa00e490",
1915
+ "manifests/initialize.pp": "23b915dca649b37536bbdd67b7f7a71b",
1916
+ "manifests/install_packages.pp": "3bd7b1aadcd5b39f3a4c4da273e1bc4b",
1917
+ "manifests/log.pp": "8cf0a7411cee99d597b61087deaca99c",
1918
+ "manifests/mcollective/client.pp": "1636138a9fe14bb39e8208ce50934d17",
1919
+ "manifests/mcollective/server.pp": "b3720c6a73a867ca89f586593fd68201",
1920
+ "manifests/netinstall.pp": "3b367da40b530aa213da596d7cc9df02",
1921
+ "manifests/one.pp": "49cad03455a2518a2c1f322acd131c8f",
1922
+ "manifests/params.pp": "80b072f18f54fafbf07ea39b06869421",
1923
+ "manifests/project/README": "fdce58e91a1e10b3550f74ccbdbed6db",
1924
+ "manifests/project/archive.pp": "d084317057d8c4c5957ba39795909729",
1925
+ "manifests/project/builder.pp": "a8c8ccbf8f5af6072f29b3d7c5006af0",
1926
+ "manifests/project/dir.pp": "f255690d962445227ede91206bccb32b",
1927
+ "manifests/project/files.pp": "4b57a2bf78a7849ba910761f9132ab23",
1928
+ "manifests/project/git.pp": "35556cc52c9c24d95989190b2f6b623e",
1929
+ "manifests/project/maven.pp": "73429125f5ab07a9ae6e85f7e5032f03",
1930
+ "manifests/project/mysql.pp": "9756330d69d02272f04441292c6a5d36",
1931
+ "manifests/project/service.pp": "a9da84e72e0b3b135cd1f5b869bee1d5",
1932
+ "manifests/project/svn.pp": "691031e70b3a2a6414488e855d11118c",
1933
+ "manifests/project/tar.pp": "212045756022bf0c788611a765acfb07",
1934
+ "manifests/project/war.pp": "587796927ade79f63dde9495f99977a5",
1935
+ "manifests/project/y4maven.pp": "2b833923fd7be1d1022c55d3b98638be",
1936
+ "manifests/project/yum.pp": "7be17b59b039d97b9525a8cb50734768",
1937
+ "manifests/project.pp": "16bc44ff117859cf56b0cbbd1e64f722",
1938
+ "manifests/report.pp": "a612afd476da3810adbe62d357a1aa3b",
1939
+ "manifests/rollback.pp": "4a120841f544ebf490edc7d7952dcb0e",
1940
+ "manifests/run.pp": "c3c582c1f65c055b42da62dbb6fa3b1f",
1941
+ "manifests/runscript.pp": "05c536e2467d46d2e9b27cc3281662ee",
1942
+ "manifests/skel.pp": "8554eb98ec88920cbda289cfecd2d17b",
1943
+ "manifests/todo.pp": "d15e28813a53db8f1a71f7af89ae36d8",
1944
+ "manifests/two.pp": "09eb667da8dae6a01375eb87cad056ef",
1945
+ "manifests/ze.pp": "48636f3ce7bde860ab8767ac234b6bb7",
1946
+ "spec/classes/puppi_spec.rb": "cee8cf5b5c215fb5332570daec9dd8eb",
1947
+ "spec/defines/puppi_check_spec.rb": "ab5ec71f8d9b31ba6221f28a2c663c57",
1948
+ "spec/defines/puppi_deploy_spec.rb": "c5ced8a1a24d8ad828bcef911f2c01af",
1949
+ "spec/defines/puppi_helper_spec.rb": "62c110560da853ddd933af253d7b8590",
1950
+ "spec/defines/puppi_info_spec.rb": "e8cd4f1dd7f7b57fcd68cc751e5180a6",
1951
+ "spec/defines/puppi_initialize_spec.rb": "3349c9bb1addfcb2a98626247af2e57c",
1952
+ "spec/defines/puppi_log_spec.rb": "08617c3632ede09d78032b0382f5d782",
1953
+ "spec/defines/puppi_project_spec.rb": "793e2f06b7358db2c17c40d2c9c80e47",
1954
+ "spec/defines/puppi_report_spec.rb": "793e2f06b7358db2c17c40d2c9c80e47",
1955
+ "spec/defines/puppi_rollback_spec.rb": "42e19b4b726967bd652a8130999bedb8",
1956
+ "spec/defines/puppi_run_spec.rb": "388b0fd66b8c5a9b097e05160f777c04",
1957
+ "spec/defines/puppi_todo_spec.rb": "7582ba7af6fc2ec52c6cccdd0080ce6c",
1958
+ "spec/defines/puppi_ze_spec.rb": "d6c2723cf8a2cb8cab6668144eef7404",
1959
+ "spec/functions/any2bool_spec.rb": "6cd6e460c38949804bd69705e436308e",
1960
+ "spec/functions/bool2ensure_spec.rb": "6cc4be146c1e99662b6c0705ddfb67ec",
1961
+ "spec/functions/url_parse_spec.rb": "81085d9352473e1e778a93eae9b8ad8c",
1962
+ "spec/spec_helper.rb": "cf39b83c5f7bc1bdae838a28ba4e60ec",
1963
+ "templates/helpers/standard.yml.erb": "548abd81aee56803c73ac41c60f97289",
1964
+ "templates/info/instance.erb": "19811cc8627f126fc023aee28fb2b686",
1965
+ "templates/info/module.erb": "6758701c75644dee8c18cc4ec4ec9585",
1966
+ "templates/info/puppet.erb": "33beab27bb7b1d3421b8f3beb9fc1c08",
1967
+ "templates/info/readme.erb": "605015edea7317a1ba5b6ff54bf3eb6c",
1968
+ "templates/info.erb": "b70d4c4e728ac7a293b1f4c986917f92",
1969
+ "templates/install_packages.erb": "76187b63993a22d0c4edd62282c56dbb",
1970
+ "templates/log.erb": "3a2054a7e1b708cdfdbceb1c1d40b748",
1971
+ "templates/project/config.erb": "a19ac67182d1f7e9252e3a024ca3f20b",
1972
+ "templates/puppi.conf.erb": "c43466feb6d69c1adaafd7c6b595c4e9",
1973
+ "templates/puppi.erb": "379dd5d25e63d6e0f62035b9406b249a",
1974
+ "templates/puppi_clean.erb": "a45148cbeda335c150fbd3714ad33f6c",
1975
+ "templates/todo.erb": "745d64345b8d7614f251d2f65d883335"
1976
+ }
1977
+ },
1978
+ "tags": [
1979
+ "application",
1980
+ "deployment",
1981
+ "example42",
1982
+ "cli",
1983
+ "puppi"
1984
+ ],
1985
+ "file_uri": "/v3/files/example42-puppi-2.1.7.tar.gz",
1986
+ "file_size": 71372,
1987
+ "file_md5": "e26c6e5cf9f7af3bc96eb45c2a2db609",
1988
+ "downloads": 20981,
1989
+ "readme": "<section class=\"markdown\"><h1>Puppi: Puppet Knowledge to the CLI</h1>\n\n<p>Puppi One and Puppi module written by Alessandro Franceschi / al @ lab42.it</p>\n\n<p>Puppi Gem by Celso Fernandez / Zertico</p>\n\n<p>Source: <a href=\"http://www.example42.com\">http://www.example42.com</a></p>\n\n<p>Licence: Apache 2</p>\n\n<p>Puppi is a Puppet module and a CLI command.\nIt&#39;s data is entirely driven by Puppet code.\nIt can be used to standardize and automate the deployment of web applications\nor to provides quick and standard commands to query and check your system&#39;s resources</p>\n\n<p>Its structure provides FULL flexibility on the actions required for virtually any kind of\napplication deployment and information gathering.</p>\n\n<p>The module provides:</p>\n\n<ul>\n<li><p>Old-Gen and Next-Gen Puppi implementation</p></li>\n<li><p>A set of scripts that can be used in chain to automate any kind of deployment</p></li>\n<li><p>Puppet defines that make it easy to prepare a puppi set of commands for a project deployment</p></li>\n<li><p>Puppet defines to populate the output of the different actions</p></li>\n</ul>\n\n<h2>HOW TO INSTALL</h2>\n\n<p>Download Puppi from GitHub and place it in your modules directory: </p>\n\n<pre><code> git clone https://github.com/example42/puppi.git /etc/puppet/modules/puppi\n</code></pre>\n\n<p>To use the Puppi &quot;Original, old and widely tested&quot; version, just declare or include the puppi class</p>\n\n<pre><code> class { &#39;puppi&#39;: }\n</code></pre>\n\n<p>To test the Next-Gen version you can perform the following command. Please note that this module is\nnot stable yet:\n class { &#39;puppi&#39;:\n version =&gt; &#39;2&#39;,\n }</p>\n\n<p>If you have resources conflicts, do not install automatically the Puppi dependencies (commands and packages)</p>\n\n<pre><code> class { &#39;puppi&#39;:\n install_dependencies =&gt; false,\n }\n</code></pre>\n\n<h2>HOW TO USE</h2>\n\n<p>Once Puppi is installed you can use it to:</p>\n\n<ul>\n<li><p>Easily define in Puppet manifests Web Applications deploy procedures. For example:</p>\n\n<pre><code>puppi::project::war { &quot;myapp&quot;:\n source =&gt; &quot;http://repo.example42.com/deploy/prod/myapp.war&quot;,\n deploy_root =&gt; &quot;/opt/tomcat/myapp/webapps&quot;,\n}\n</code></pre></li>\n<li><p>Integrate with your modules for puppi check, info and log </p></li>\n<li><p>Enable Example42 modules integration</p></li>\n</ul>\n\n<h2>HOW TO USE WITH EXAMPLE42 MODULES</h2>\n\n<p>The Example42 modules provide (optional) Puppi integration.\nOnce enabled for each module you have puppi check, info and log commands.</p>\n\n<p>To eanble Puppi in OldGen Modules, set in the scope these variables:</p>\n\n<pre><code> $puppi = yes # Enables puppi integration.\n $monitor = yes # Enables automatic monitoring \n $monitor_tool = &quot;puppi&quot; # Sets puppi as monitoring tool\n</code></pre>\n\n<p>For the NextGen modules set the same parameters via Hiera, at Top Scope or as class arguments:</p>\n\n<pre><code> class { &#39;openssh&#39;:\n puppi =&gt; yes, \n monitor =&gt; yes,\n monitor_tool =&gt; &#39;puppi&#39;, \n }\n</code></pre>\n\n<h2>USAGE OF THE PUPPI COMMAND (OLD GEN)</h2>\n\n<pre><code> puppi &lt;action&gt; &lt;project_name&gt; [ -options ]\n</code></pre>\n\n<p>The puppi command has these possibile actions:</p>\n\n<p>First time initialization of the defined project (if available)\n puppi init <project></p>\n\n<p>Deploy the specified project\n puppi deploy <project></p>\n\n<p>Rollback to a previous deploy state\n puppi rollback <project></p>\n\n<p>Run local checks on system and applications\n puppi check</p>\n\n<p>Tail system or application logs\n puppi log</p>\n\n<p>Show system information (for all or only the specified topic)\n puppi info [topic]</p>\n\n<p>Show things to do (or done) manually on the system (not done via Puppet)\n puppi todo</p>\n\n<p>In the deploy/rollback/init actions, puppi runs the commands in /etc/puppi/projects/$project/$action, logs their status and then run the commands in /etc/puppi/projects/$project/report to provide reporting, in whatever, pluggable, way.</p>\n\n<p>You can also provide some options:</p>\n\n<ul>\n<li><p>-f : Force puppi commands execution also on CRITICAL errors</p></li>\n<li><p>-i : Interactively ask confirmation for every command</p></li>\n<li><p>-t : Test mode. Just show the commands that should be executed without doing anything</p></li>\n<li><p>-d <yes|full>: Debug mode. Show debugging info during execution</p></li>\n<li><p>-o &quot;parameter=value parameter2=value2&quot; : Set manual options to override defaults. The options must be in parameter=value syntax, separated by spaces and inside double quotes.</p></li>\n</ul>\n\n<p>Some common puppi commnds when you log for an application deployment:</p>\n\n<pre><code> puppi check\n puppi log &amp; # (More readable if done on another window)\n puppi deploy myapp\n puppi check\n puppi info myapp\n</code></pre>\n\n<h2>THE PUPPI MODULE</h2>\n\n<p>The set of commands needed for each of these actions are entirely managed with specific\nPuppet &quot;basic defines&quot;:</p>\n\n<p>Create the main project structure. One or more different deployment projects can exist on a node.\n puppi::project</p>\n\n<p>Create a single command to be placed in the init sequence. It&#39;s not required for every project.\n puppi::initialize</p>\n\n<p>Create a single command to be placed in the deploy sequence. More than one is generally needed for each project.\n puppi::deploy</p>\n\n<p>Create a single command to be placed in the rollback sequence. More than one is generally needed for each project.\n puppi::rollback</p>\n\n<p>Create a single check (based on Nagios plugins) for a project or for the whole host (host wide checks are auto generated by Example42 monitor module)\n puppi::check</p>\n\n<p>Create a reporting command to be placed in the report sequence.\n puppi::report</p>\n\n<p>Create a log filename entry for a project or the whole hosts.\n puppi::log</p>\n\n<p>Create an info entry with the commands used to provide info on a topic\n puppi::info</p>\n\n<p>Read details in the relevant READMEs</p>\n\n<h2>FILE PATHS (all of them are provided, and can be configured, in the puppi module):</h2>\n\n<p>A link to the actual version of puppi enabled\n /usr/sbin/puppi</p>\n\n<p>The original puppi bash command.\n /usr/sbin/puppi.one</p>\n\n<p>Puppi (one) main config file. Various puppi wide paths are defined here.\n /etc/puppi/puppi.conf</p>\n\n<p>Directory where by default all the host wide checks can be placed. If you use the Example42 monitor module and have &quot;puppi&quot; as $monitor_tool, this directory is automatically filled with Nagios plugins based checks.\n /etc/puppi/checks/ ($checksdir)</p>\n\n<p>Directory that containts projects subdirs, with the commands to be run for deploy, rollback and check actions. They are completely built (and purged) by the Puppet module.\n /etc/puppi/projects/ ($projectsdir)</p>\n\n<p>The general-use scripts directory, these are used by the above commands and may require one or more arguments.\n /etc/puppi/scripts/ ($scriptsdir)</p>\n\n<p>The general-use directory where files are placed which contain the log paths to be used by puppi log\n /etc/puppi/logs/ ($logssdir)</p>\n\n<p>The general-use directory where files are placed which contain the log paths to be used by puppi log\n /etc/puppi/info/ ($infodir)</p>\n\n<p>Where all data to rollback is placed.\n /var/lib/puppi/archive/ ($archivedir)</p>\n\n<p>Where logs and reports of the different commands are placed.\n /var/log/puppi/ ($logdir)</p>\n\n<p>Temporary, scratchable, directory where Puppi places temporary files.\n /tmp/puppi/ ($workdir)</p>\n\n<p>A runtime configuration file, which is used by all all the the scripts invoked by puppi to read and write dynamic variables at runtime. This is necessary to mantain &quot;state&quot; information that changes on every puppi run (such as the deploy datetime, used for backups).\n /tmp/puppi/$project/config</p>\n\n<h2>HOW TO CUSTOMIZE</h2>\n\n<p>It should be clear that with puppi you have full flexibility in the definition of a deployment \nprocedure, since the puppi command is basically a wrapper that executes arbitrary scripts with\na given sequence, in pure KISS logic.</p>\n\n<p>The advantanges though, are various:</p>\n\n<ul>\n<li><p>You have a common syntax to manage deploys and rollbacks on an host</p></li>\n<li><p>In your Puppet manifests, you can set in simple, coherent and still flexible and customizable\ndefines all the elements, you need for your application deployments. \nThink about it: with just a Puppet define you build the whole deploy logic</p></li>\n<li><p>Reporting for each deploy/rollback is built-in and extensible </p></li>\n<li><p>Automatic checks can be built in the deploy procedure</p></li>\n<li><p>You have a common, growing, set of general-use scripts for typical actions</p></li>\n<li><p>You have quick and useful command to see what&#39;s happening on the system (puppi check, log, info)</p></li>\n</ul>\n\n<p>There are different parts where you can customize the behaviour of puppi:</p>\n\n<ul>\n<li><p>The set of general-use scripts in /etc/puppi/scripts/ ( this directory is filled with the content\nof puppi/files/scripts/ ) can/should be enhanced. These can be arbitrary scripts in whatever\nlanguage. If you want to follow puppi&#39;s logic, though, consider that they should import the\ncommon and runtime configuration files and have an exit code logic similar to the one of\nNagios plugins: 0 is OK, 1 is WARNING, 2 is CRITICAL. Note that by default a script that \nexits with WARNING doesn&#39;t block the deploy procedure, on the other hand, if a script exits\nwith CRITICAL (exit 2) by default it blocks the procedure.\nTake a second, also, to explore the runtime config file created by the puppi command that\ncontains variables that can be set and used by the scripts invoked by puppi.</p></li>\n<li><p>The custom project defines that describe deploy templates. These are placed in\npuppi/manifests/project/ and can request all the arguments you want to feed your scripts with.\nGenerally is a good idea to design a standard enough template that can be used for all the \ncases where the deployment procedure involves similar steps. Consider also that you can handle\nexceptions with variables (see the $loadbalancer_ip usage in puppi/manifests/project/maven.pp)</p></li>\n</ul>\n\n<h2>(NO) DEPENDENCIES AND CONFLICTS</h2>\n\n<p>Puppi is self contained. It doesn&#39;t require other modules.\n(And is required by all Example42 modules).</p>\n\n<p>For correct functionality by default some extra packages are installed.\nIf you have conflicts with your existing modules, set the argument:\n install_dependencies =&gt; false</p>\n</section>",
1990
+ "changelog": null,
1991
+ "license": "<section class=\"plaintext\"><pre>Copyright (C) 2013 Alessandro Franceschi &#x2F; Lab42\n\nfor the relevant commits Copyright (C) by the respective authors.\n\nContact Lab42 at: info@lab42.it\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
1992
+ "created_at": "2013-11-22 01:10:30 -0800",
1993
+ "updated_at": "2013-11-22 01:18:19 -0800",
1994
+ "deleted_at": null
1995
+ },
1996
+ {
1997
+ "uri": "/v3/releases/puppetlabs-ntp-2.0.1",
1998
+ "module": {
1999
+ "uri": "/v3/modules/puppetlabs-ntp",
2000
+ "name": "ntp",
2001
+ "owner": {
2002
+ "uri": "/v3/users/puppetlabs",
2003
+ "username": "puppetlabs",
2004
+ "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
2005
+ }
2006
+ },
2007
+ "version": "2.0.1",
2008
+ "metadata": {
2009
+ "name": "puppetlabs-ntp",
2010
+ "version": "2.0.1",
2011
+ "summary": "NTP Module",
2012
+ "author": "Puppet Labs",
2013
+ "description": "NTP Module for Debian, Ubuntu, CentOS, RHEL, OEL, Fedora, FreeBSD, ArchLinux and Gentoo.",
2014
+ "dependencies": [
2015
+ {
2016
+ "name": "puppetlabs/stdlib",
2017
+ "version_requirement": ">= 0.1.6"
2018
+ }
2019
+ ],
2020
+ "types": [
2021
+
2022
+ ],
2023
+ "checksums": {
2024
+ ".bundle/config": "7f1c988748783d2a8d455376eed1470c",
2025
+ ".fixtures.yml": "909729694bab62c1e36001512b68a8fd",
2026
+ ".nodeset.yml": "8d1b7762d4125ce53379966a1daf355c",
2027
+ ".travis.yml": "193ec2b14cc9644c88f4249422580da2",
2028
+ "CHANGELOG": "1ef0e3fa661bd1b8cb8e1233343dd81c",
2029
+ "CONTRIBUTING.md": "2ef1d6f4417dde9af6c7f46f5c8a864b",
2030
+ "Gemfile": "779e8b104b94622ac8c7d1d7bcf32c5a",
2031
+ "Gemfile.lock": "1abd1da36ca6957b6d456ddd75e2a665",
2032
+ "LICENSE": "f0b6fdc310531526f257378d7bad0044",
2033
+ "Modulefile": "c806ff020129ab4a367a502be3f1be75",
2034
+ "README.markdown": "74a9a19e7866998e5a594845b15b0e57",
2035
+ "Rakefile": "0428ea3759a4692c91604396c406a9c1",
2036
+ "manifests/config.pp": "8d9afb6e4327277c96c5617ad687043a",
2037
+ "manifests/init.pp": "8883844f75084d31b4e5a9a50c900d87",
2038
+ "manifests/install.pp": "ac33c5733f4321a9af7a4735265c1986",
2039
+ "manifests/params.pp": "2fe94c599d794811d950bd48879439d7",
2040
+ "manifests/service.pp": "350238b50e9cb896d270a2c76a64334f",
2041
+ "spec/classes/ntp_spec.rb": "ec9345d2bb9976c012b117b8c7f8f052",
2042
+ "spec/fixtures/modules/my_ntp/templates/ntp.conf.erb": "566e373728e9b13eda516115ff0a9fb0",
2043
+ "spec/spec.opts": "a600ded995d948e393fbe2320ba8e51c",
2044
+ "spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",
2045
+ "spec/spec_helper_system.rb": "4c85f6e43892c45ce75ade44a32f45f8",
2046
+ "spec/system/basic_spec.rb": "f0fa6706b1011be24759dc06ccbd91e2",
2047
+ "spec/system/class_spec.rb": "83dcabc0e04432b52939ae8a5df992ca",
2048
+ "spec/system/ntp_config_spec.rb": "d60bc7ba907c080d891245d6f13da307",
2049
+ "spec/system/ntp_install_spec.rb": "9b3796bb71472daa3a52aa01b0592656",
2050
+ "spec/system/ntp_service_spec.rb": "fbeec08f5489ce8ef82f2225f7107b9e",
2051
+ "spec/system/preferred_servers_spec.rb": "379fe9b56c10903178f03d4d87002a14",
2052
+ "spec/system/restrict_spec.rb": "eb9d8deb680830f78e0041bb3c7d2326",
2053
+ "spec/unit/puppet/provider/README.markdown": "e52668944ee6af2fb5d5b9e798342645",
2054
+ "spec/unit/puppet/type/README.markdown": "de26a7643813abd6c2e7e28071b1ef94",
2055
+ "templates/ntp.conf.erb": "262e0a58bcd88d0cb65369081db30b32",
2056
+ "tests/init.pp": "d398e7687ec1d893ef23d1b7d2afc094"
2057
+ },
2058
+ "source": "git://github.com/puppetlabs/puppetlabs-ntp",
2059
+ "project_page": "http://github.com/puppetlabs/puppetlabs-ntp",
2060
+ "license": "Apache Version 2.0"
2061
+ },
2062
+ "tags": [
2063
+ "ntp",
2064
+ "time",
2065
+ "archlinux",
2066
+ "gentoo",
2067
+ "aix",
2068
+ "debian",
2069
+ "ubuntu",
2070
+ "rhel",
2071
+ "centos",
2072
+ "ntpd",
2073
+ "ntpserver"
2074
+ ],
2075
+ "file_uri": "/v3/files/puppetlabs-ntp-2.0.1.tar.gz",
2076
+ "file_size": 15859,
2077
+ "file_md5": "b81986b29785677f6f83f37422af25d0",
2078
+ "downloads": 19948,
2079
+ "readme": "<section class=\"markdown\"><h1>ntp</h1>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview</a></li>\n<li><a href=\"#module-description\">Module Description - What the module does and why it is useful</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with ntp</a>\n\n<ul>\n<li><a href=\"#what-ntp-affects\">What ntp affects</a></li>\n<li><a href=\"#setup-requirements\">Setup requirements</a></li>\n<li><a href=\"#beginning-with-ntp\">Beginning with ntp</a></li>\n</ul></li>\n<li><a href=\"#usage\">Usage - Configuration options and additional functionality</a></li>\n<li><a href=\"#reference\">Reference - An under-the-hood peek at what the module is doing and how</a></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The NTP module installs, configures, and manages the ntp service.</p>\n\n<h2>Module Description</h2>\n\n<p>The NTP module handles running NTP across a range of operating systems and\ndistributions. Where possible we use the upstream ntp templates so that the\nresults closely match what you&#39;d get if you modified the package default conf\nfiles.</p>\n\n<h2>Setup</h2>\n\n<h3>What ntp affects</h3>\n\n<ul>\n<li>ntp package.</li>\n<li>ntp configuration file.</li>\n<li>ntp service.</li>\n</ul>\n\n<h3>Beginning with ntp</h3>\n\n<p>include &#39;::ntp&#39; is enough to get you up and running. If you wish to pass in\nparameters like which servers to use then you can use:</p>\n\n<pre lang=\"puppet\"><code>class { &#39;::ntp&#39;:\n servers =&gt; [ &#39;ntp1.corp.com&#39;, &#39;ntp2.corp.com&#39; ],\n}\n</code></pre>\n\n<h2>Usage</h2>\n\n<p>All interaction with the ntp module can do be done through the main ntp class.\nThis means you can simply toggle the options in the ntp class to get at the\nfull functionality.</p>\n\n<h3>I just want NTP, what&#39;s the minimum I need?</h3>\n\n<pre lang=\"puppet\"><code>include &#39;::ntp&#39;\n</code></pre>\n\n<h3>I just want to tweak the servers, nothing else.</h3>\n\n<pre lang=\"puppet\"><code>class { &#39;::ntp&#39;:\n servers =&gt; [ &#39;ntp1.corp.com&#39;, &#39;ntp2.corp.com&#39; ],\n}\n</code></pre>\n\n<h3>I&#39;d like to make sure I restrict who can connect as well.</h3>\n\n<pre lang=\"puppet\"><code>class { &#39;::ntp&#39;:\n servers =&gt; [ &#39;ntp1.corp.com&#39;, &#39;ntp2.corp.com&#39; ],\n restrict =&gt; &#39;restrict 127.0.0.1&#39;,\n}\n</code></pre>\n\n<h3>I&#39;d like to opt out of having the service controlled, we use another tool for that.</h3>\n\n<pre lang=\"puppet\"><code>class { &#39;::ntp&#39;:\n servers =&gt; [ &#39;ntp1.corp.com&#39;, &#39;ntp2.corp.com&#39; ],\n restrict =&gt; &#39;restrict 127.0.0.1&#39;,\n manage_service =&gt; false,\n}\n</code></pre>\n\n<h3>Looks great! But I&#39;d like a different template, we need to do something unique here.</h3>\n\n<pre lang=\"puppet\"><code>class { &#39;::ntp&#39;:\n servers =&gt; [ &#39;ntp1.corp.com&#39;, &#39;ntp2.corp.com&#39; ],\n restrict =&gt; &#39;restrict 127.0.0.1&#39;,\n manage_service =&gt; false,\n config_template =&gt; &#39;different/module/custom.template.erb&#39;,\n}\n</code></pre>\n\n<h2>Reference</h2>\n\n<h3>Classes</h3>\n\n<ul>\n<li>ntp: Main class, includes all the rest.</li>\n<li>ntp::install: Handles the packages.</li>\n<li>ntp::config: Handles the configuration file.</li>\n<li>ntp::service: Handles the service.</li>\n</ul>\n\n<h3>Parameters</h3>\n\n<p>The following parameters are available in the ntp module</p>\n\n<h4><code>autoupdate</code></h4>\n\n<p>Deprecated: This parameter previously determined if the ntp module should be\nautomatically updated to the latest version available. Replaced by package_\nensure.</p>\n\n<h4><code>config</code></h4>\n\n<p>This sets the file to write ntp configuration into.</p>\n\n<h4><code>config_template</code></h4>\n\n<p>This determines which template puppet should use for the ntp configuration.</p>\n\n<h4><code>driftfile</code></h4>\n\n<p>This sets the location of the driftfile for ntp.</p>\n\n<h4><code>keys_controlkey</code></h4>\n\n<p>Which of the keys is used as the control key.</p>\n\n<h4><code>keys_enable</code></h4>\n\n<p>Should the ntp keys functionality be enabled.</p>\n\n<h4><code>keys_file</code></h4>\n\n<p>Location of the keys file.</p>\n\n<h4><code>keys_requestkey</code></h4>\n\n<p>Which of the keys is used as the request key.</p>\n\n<h4><code>package_ensure</code></h4>\n\n<p>This can be set to &#39;present&#39; or &#39;latest&#39; or a specific version to choose the\nntp package to be installed.</p>\n\n<h4><code>package_name</code></h4>\n\n<p>This determines the name of the package to install.</p>\n\n<h4><code>panic</code></h4>\n\n<p>This determines if ntp should &#39;panic&#39; in the event of a very large clock skew.\nWe set this to false if you&#39;re on a virtual machine by default as they don&#39;t\ndo a great job with keeping time.</p>\n\n<h4><code>preferred_servers</code></h4>\n\n<p>List of ntp servers to prefer. Will append prefer for any server in this list\nthat also appears in the servers list.</p>\n\n<h4><code>restrict</code></h4>\n\n<p>This sets the restrict options in the ntp configuration.</p>\n\n<h4><code>servers</code></h4>\n\n<p>This selects the servers to use for ntp peers.</p>\n\n<h4><code>service_enable</code></h4>\n\n<p>This determines if the service should be enabled at boot.</p>\n\n<h4><code>service_ensure</code></h4>\n\n<p>This determines if the service should be running or not.</p>\n\n<h4><code>service_manage</code></h4>\n\n<p>This selects if puppet should manage the service in the first place.</p>\n\n<h4><code>service_name</code></h4>\n\n<p>This selects the name of the ntp service for puppet to manage.</p>\n\n<h2>Limitations</h2>\n\n<p>This module has been built on and tested against Puppet 2.7 and higher.</p>\n\n<p>The module has been tested on:</p>\n\n<ul>\n<li>RedHat Enterprise Linux 5/6</li>\n<li>Debian 6/7</li>\n<li>CentOS 5/6</li>\n<li>Ubuntu 12.04</li>\n<li>Gentoo</li>\n<li>Arch Linux</li>\n<li>FreeBSD</li>\n</ul>\n\n<p>Testing on other platforms has been light and cannot be guaranteed. </p>\n\n<h2>Development</h2>\n\n<p>Puppet Labs modules on the Puppet Forge are open projects, and community\ncontributions are essential for keeping them great. We can’t access the\nhuge number of platforms and myriad of hardware, software, and deployment\nconfigurations that Puppet is intended to serve.</p>\n\n<p>We want to keep it as easy as possible to contribute changes so that our\nmodules work in your environment. There are a few guidelines that we need\ncontributors to follow so that we can have a chance of keeping on top of things.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n</section>",
2080
+ "changelog": null,
2081
+ "license": "<section class=\"plaintext\"><pre> Apache License\n Version 2.0, January 2004\n http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n &quot;License&quot; shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n &quot;Licensor&quot; shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n &quot;Legal Entity&quot; shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n &quot;control&quot; means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n &quot;You&quot; (or &quot;Your&quot;) shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n &quot;Source&quot; form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n &quot;Object&quot; form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n &quot;Work&quot; shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n &quot;Derivative Works&quot; shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n &quot;Contribution&quot; shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, &quot;submitted&quot;\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as &quot;Not a Contribution.&quot;\n\n &quot;Contributor&quot; shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a &quot;NOTICE&quot; text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an &quot;AS IS&quot; BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and&#x2F;or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets &quot;[]&quot;\n replaced with your own identifying information. (Don&#x27;t include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same &quot;printed page&quot; as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [2013] [Puppet Labs]\n\n Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an &quot;AS IS&quot; BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n</pre></section>",
2082
+ "created_at": "2013-09-05 13:11:35 -0700",
2083
+ "updated_at": "2013-09-05 13:11:35 -0700",
2084
+ "deleted_at": null
2085
+ },
2086
+ {
2087
+ "uri": "/v3/releases/puppetlabs-vcsrepo-0.1.2",
2088
+ "module": {
2089
+ "uri": "/v3/modules/puppetlabs-vcsrepo",
2090
+ "name": "vcsrepo",
2091
+ "owner": {
2092
+ "uri": "/v3/users/puppetlabs",
2093
+ "username": "puppetlabs",
2094
+ "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
2095
+ }
2096
+ },
2097
+ "version": "0.1.2",
2098
+ "metadata": {
2099
+ "name": "puppetlabs/vcsrepo",
2100
+ "version": "0.1.2",
2101
+ "source": "UNKNOWN",
2102
+ "author": "puppetlabs",
2103
+ "license": "Apache License, Version 2.0",
2104
+ "summary": "UNKNOWN",
2105
+ "description": "UNKNOWN",
2106
+ "project_page": "UNKNOWN",
2107
+ "dependencies": [
2108
+
2109
+ ],
2110
+ "types": [
2111
+ {
2112
+ "name": "vcsrepo",
2113
+ "doc": "A local version control repository",
2114
+ "properties": [
2115
+ {
2116
+ "name": "ensure",
2117
+ "doc": " Valid values are `present`, `bare`, `absent`, `latest`."
2118
+ },
2119
+ {
2120
+ "name": "revision",
2121
+ "doc": "The revision of the repository Values can match `/^\\S+$/`."
2122
+ }
2123
+ ],
2124
+ "parameters": [
2125
+ {
2126
+ "name": "path",
2127
+ "doc": "Absolute path to repository"
2128
+ },
2129
+ {
2130
+ "name": "source",
2131
+ "doc": "The source URI for the repository"
2132
+ },
2133
+ {
2134
+ "name": "fstype",
2135
+ "doc": "Filesystem type Requires features filesystem_types."
2136
+ },
2137
+ {
2138
+ "name": "owner",
2139
+ "doc": "The user/uid that owns the repository files"
2140
+ },
2141
+ {
2142
+ "name": "group",
2143
+ "doc": "The group/gid that owns the repository files"
2144
+ },
2145
+ {
2146
+ "name": "user",
2147
+ "doc": "The user to run for repository operations"
2148
+ },
2149
+ {
2150
+ "name": "excludes",
2151
+ "doc": "Files to be excluded from the repository"
2152
+ },
2153
+ {
2154
+ "name": "force",
2155
+ "doc": "Force repository creation, destroying any files on the path in the process. Valid values are `true`, `false`."
2156
+ },
2157
+ {
2158
+ "name": "compression",
2159
+ "doc": "Compression level Requires features gzip_compression."
2160
+ },
2161
+ {
2162
+ "name": "basic_auth_username",
2163
+ "doc": "HTTP Basic Auth username Requires features basic_auth."
2164
+ },
2165
+ {
2166
+ "name": "basic_auth_password",
2167
+ "doc": "HTTP Basic Auth password Requires features basic_auth."
2168
+ },
2169
+ {
2170
+ "name": "identity",
2171
+ "doc": "SSH identity file Requires features ssh_identity."
2172
+ },
2173
+ {
2174
+ "name": "module",
2175
+ "doc": "The repository module to manage Requires features modules."
2176
+ },
2177
+ {
2178
+ "name": "remote",
2179
+ "doc": "The remote repository to track Requires features multiple_remotes."
2180
+ }
2181
+ ],
2182
+ "providers": [
2183
+ {
2184
+ "name": "bzr",
2185
+ "doc": "Supports Bazaar repositories\n\nRequired binaries: `bzr`. Supported features: `reference_tracking`."
2186
+ },
2187
+ {
2188
+ "name": "cvs",
2189
+ "doc": "Supports CVS repositories/workspaces\n\nRequired binaries: `cvs`. Supported features: `gzip_compression`, `modules`, `reference_tracking`."
2190
+ },
2191
+ {
2192
+ "name": "dummy",
2193
+ "doc": "Dummy default provider\n\nDefault for `vcsrepo` == `dummy`."
2194
+ },
2195
+ {
2196
+ "name": "git",
2197
+ "doc": "Supports Git repositories\n\nRequired binaries: `git`, `su`. Supported features: `bare_repositories`, `multiple_remotes`, `reference_tracking`, `ssh_identity`, `user`."
2198
+ },
2199
+ {
2200
+ "name": "hg",
2201
+ "doc": "Supports Mercurial repositories\n\nRequired binaries: `hg`. Supported features: `reference_tracking`."
2202
+ },
2203
+ {
2204
+ "name": "svn",
2205
+ "doc": "Supports Subversion repositories\n\nRequired binaries: `svn`, `svnadmin`. Supported features: `basic_auth`, `filesystem_types`, `reference_tracking`."
2206
+ }
2207
+ ]
2208
+ }
2209
+ ],
2210
+ "checksums": {
2211
+ "Gemfile": "5267cfa2cd3ba585074266d1953d8c03",
2212
+ "Gemfile.lock": "fd2fec7051e81117a8e58479730797a2",
2213
+ "LICENSE": "b8d96fef1f55096f9d39326408122136",
2214
+ "Modulefile": "fb14134bceb39eedff322332fab7ea34",
2215
+ "README.BZR.markdown": "97f638d169a1c39d461c3f2c0e2ec32f",
2216
+ "README.CVS.markdown": "720eeee9129c1c474086444efd825de4",
2217
+ "README.GIT.markdown": "7ee485d38000553a28e2d539b0a1860a",
2218
+ "README.HG.markdown": "ef123968ea2c29275a6c914515798e2d",
2219
+ "README.SVN.markdown": "daee8377e9dc1f27224f145452d2e3f4",
2220
+ "README.markdown": "e031416a5be95d1fbe9947732e7ee9eb",
2221
+ "Rakefile": "cc0e9a5225430b6a13c74ae74032ed33",
2222
+ "examples/bzr/branch.pp": "05c66419324a576b9b28df876673580d",
2223
+ "examples/bzr/init_repo.pp": "fadd2321866ffb0aacff698d2dc1f0ca",
2224
+ "examples/cvs/local.pp": "7fbde03a5c71edf168267ae42d0bbcbc",
2225
+ "examples/cvs/remote.pp": "491f18f752752bec6133a88de242c44d",
2226
+ "examples/git/bare_init.pp": "7cf56abffdf99f379153166f18f961f8",
2227
+ "examples/git/clone.pp": "0e3181990c095efee1498ccfca5897fb",
2228
+ "examples/git/working_copy_init.pp": "99d92d9957e78a0c03f9cbed989c79ca",
2229
+ "examples/hg/clone.pp": "c92bbd704a4c2da55fff5f45955ce6d1",
2230
+ "examples/hg/init_repo.pp": "bf5fa0ab48a2f5a1ccb63768d961413d",
2231
+ "examples/svn/checkout.pp": "9ef7a8fbd3a763fa3894efa864047023",
2232
+ "examples/svn/server.pp": "94b26f6e50d5e411b33b1ded1bc2138a",
2233
+ "lib/puppet/provider/vcsrepo/bzr.rb": "99dd23d88e88f3cfd4c610d7eef0531f",
2234
+ "lib/puppet/provider/vcsrepo/cvs.rb": "60525f5be2bbbae7916cd09895309ede",
2235
+ "lib/puppet/provider/vcsrepo/dummy.rb": "2f8159468d6ecc8087debde858a80dd6",
2236
+ "lib/puppet/provider/vcsrepo/git.rb": "897973e79c87f852ae4d98f5b722096f",
2237
+ "lib/puppet/provider/vcsrepo/hg.rb": "ea7524cd71732abb3e8670eeaaf37ac6",
2238
+ "lib/puppet/provider/vcsrepo/svn.rb": "8533be9aaa1c632d9be9e46d3e35c2f6",
2239
+ "lib/puppet/provider/vcsrepo.rb": "f5b8a90080b8c27e2656af8605148928",
2240
+ "lib/puppet/type/vcsrepo.rb": "83b3f41d92989fa7ca80d8b6fb8f7db9",
2241
+ "spec/fixtures/bzr_version_info.txt": "5edb13429faf2f0b9964b4326ef49a65",
2242
+ "spec/fixtures/git_branch_a.txt": "2371229e7c1706c5ab8f90f0cd57230f",
2243
+ "spec/fixtures/hg_parents.txt": "efc28a1bd3f1ce7fb4481f76feed3f6e",
2244
+ "spec/fixtures/hg_tags.txt": "8383048b15adb3d58a92ea0c8b887537",
2245
+ "spec/fixtures/manifests/site.pp": "d41d8cd98f00b204e9800998ecf8427e",
2246
+ "spec/fixtures/svn_info.txt": "978db25720a098e5de48388fe600c062",
2247
+ "spec/spec.opts": "a600ded995d948e393fbe2320ba8e51c",
2248
+ "spec/spec_helper.rb": "a35385c068516f356cf6667b82f83db7",
2249
+ "spec/support/filesystem_helpers.rb": "eb2a8eb3769865004c84e971ccb1396c",
2250
+ "spec/support/fixture_helpers.rb": "61781d99ea201e9da6d23c64a25cc285",
2251
+ "spec/support/provider_example_group.rb": "fab04f82b6531fbb127445345ce6c50c",
2252
+ "spec/unit/puppet/provider/vcsrepo/bzr_spec.rb": "b112a7ae4769eff1da41db7867f06fff",
2253
+ "spec/unit/puppet/provider/vcsrepo/cvs_spec.rb": "ea38bf0b060adcf7c9e43e5ed245c132",
2254
+ "spec/unit/puppet/provider/vcsrepo/dummy_spec.rb": "52ce05ffc829113dc5e74cb4a51c0a71",
2255
+ "spec/unit/puppet/provider/vcsrepo/git_spec.rb": "0713fa3542bace46c15bff00914c3630",
2256
+ "spec/unit/puppet/provider/vcsrepo/hg_spec.rb": "cb4e25597dca41fb75a8d82ac409a14c",
2257
+ "spec/unit/puppet/provider/vcsrepo/svn_spec.rb": "67a40762923bf7cbe8199c3f1d14e943",
2258
+ "spec/unit/puppet/type/README.markdown": "de26a7643813abd6c2e7e28071b1ef94"
2259
+ }
2260
+ },
2261
+ "tags": [
2262
+ "vcs",
2263
+ "repo",
2264
+ "svn",
2265
+ "subversion",
2266
+ "git",
2267
+ "hg",
2268
+ "bzr",
2269
+ "CVS"
2270
+ ],
2271
+ "file_uri": "/v3/files/puppetlabs-vcsrepo-0.1.2.tar.gz",
2272
+ "file_size": 17120,
2273
+ "file_md5": "2a5d25f9361e00626d31c88a19b33317",
2274
+ "downloads": 19095,
2275
+ "readme": "<section class=\"markdown\"><h1>vcsrepo</h1>\n\n<h2>Purpose</h2>\n\n<p>This provides a single type, <code>vcsrepo</code>.</p>\n\n<p>This type can be used to describe:</p>\n\n<ul>\n<li>A working copy checked out from a (remote or local) source, at an\narbitrary revision</li>\n<li>A &quot;blank&quot; working copy not associated with a source (when it makes\nsense for the VCS being used)</li>\n<li>A &quot;blank&quot; central repository (when the distinction makes sense for the VCS\nbeing used)</li>\n</ul>\n\n<h2>Supported Version Control Systems</h2>\n\n<p>This module supports a wide range of VCS types, each represented by a\nseparate provider.</p>\n\n<p>For information on how to use this module with a specific VCS, see\n<code>README.&lt;VCS&gt;.markdown</code>.</p>\n\n<h2>License</h2>\n\n<p>See LICENSE.</p>\n</section>",
2276
+ "changelog": null,
2277
+ "license": "<section class=\"plaintext\"><pre>Copyright (C) 2010-2012 Puppet Labs Inc.\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nThis program and entire repository is free software; you can\nredistribute it and&#x2F;or modify it under the terms of the GNU\nGeneral Public License as published by the Free Software\nFoundation; either version 2 of the License, or any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program; if not, write to the Free Software\nFoundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n</pre></section>",
2278
+ "created_at": "2013-05-24 13:43:55 -0700",
2279
+ "updated_at": "2013-05-24 13:43:55 -0700",
2280
+ "deleted_at": null
2281
+ },
2282
+ {
2283
+ "uri": "/v3/releases/puppetlabs-mysql-0.6.1",
2284
+ "module": {
2285
+ "uri": "/v3/modules/puppetlabs-mysql",
2286
+ "name": "mysql",
2287
+ "owner": {
2288
+ "uri": "/v3/users/puppetlabs",
2289
+ "username": "puppetlabs",
2290
+ "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
2291
+ }
2292
+ },
2293
+ "version": "0.6.1",
2294
+ "metadata": {
2295
+ "name": "puppetlabs-mysql",
2296
+ "version": "0.6.1",
2297
+ "source": "git://github.com/puppetlabs/puppetlabs-mysql.git",
2298
+ "author": "Puppet Labs",
2299
+ "license": "Apache 2.0",
2300
+ "summary": "Mysql module",
2301
+ "description": "Mysql module",
2302
+ "project_page": "http://github.com/puppetlabs/puppetlabs-mysql",
2303
+ "dependencies": [
2304
+ {
2305
+ "name": "puppetlabs/stdlib",
2306
+ "version_requirement": ">= 2.2.1"
2307
+ }
2308
+ ],
2309
+ "types": [
2310
+ {
2311
+ "name": "database",
2312
+ "doc": "Manage databases.",
2313
+ "properties": [
2314
+ {
2315
+ "name": "ensure",
2316
+ "doc": "The basic property that the resource should be in. Valid values are `present`, `absent`."
2317
+ },
2318
+ {
2319
+ "name": "charset",
2320
+ "doc": "The characterset to use for a database Values can match `/^\\S+$/`."
2321
+ }
2322
+ ],
2323
+ "parameters": [
2324
+ {
2325
+ "name": "name",
2326
+ "doc": "The name of the database."
2327
+ }
2328
+ ],
2329
+ "providers": [
2330
+ {
2331
+ "name": "mysql",
2332
+ "doc": "Manages MySQL database.\n\nRequired binaries: `mysql`, `mysqladmin`. Default for `kernel` == `Linux`."
2333
+ }
2334
+ ]
2335
+ },
2336
+ {
2337
+ "name": "database_grant",
2338
+ "doc": "Manage a database user's rights.",
2339
+ "properties": [
2340
+ {
2341
+ "name": "privileges",
2342
+ "doc": "The privileges the user should have. The possible values are implementation dependent."
2343
+ }
2344
+ ],
2345
+ "parameters": [
2346
+ {
2347
+ "name": "name",
2348
+ "doc": "The primary key: either user@host for global privilges or user@host/database for database specific privileges"
2349
+ }
2350
+ ],
2351
+ "providers": [
2352
+ {
2353
+ "name": "mysql",
2354
+ "doc": "Uses mysql as database.\n\nRequired binaries: `mysql`, `mysqladmin`. Default for `kernel` == `Linux`."
2355
+ }
2356
+ ]
2357
+ },
2358
+ {
2359
+ "name": "database_user",
2360
+ "doc": "Manage a database user. This includes management of users password as well as priveleges",
2361
+ "properties": [
2362
+ {
2363
+ "name": "ensure",
2364
+ "doc": "The basic property that the resource should be in. Valid values are `present`, `absent`."
2365
+ },
2366
+ {
2367
+ "name": "password_hash",
2368
+ "doc": "The password hash of the user. Use mysql_password() for creating such a hash. Values can match `/\\w+/`."
2369
+ }
2370
+ ],
2371
+ "parameters": [
2372
+ {
2373
+ "name": "name",
2374
+ "doc": "The name of the user. This uses the 'username@hostname' or username@hostname."
2375
+ }
2376
+ ],
2377
+ "providers": [
2378
+ {
2379
+ "name": "mysql",
2380
+ "doc": "manage users for a mysql database.\n\nRequired binaries: `mysql`, `mysqladmin`. Default for `kernel` == `Linux`."
2381
+ }
2382
+ ]
2383
+ }
2384
+ ],
2385
+ "checksums": {
2386
+ "CHANGELOG": "9b152f68e3dd6457f6b14335315d3fe5",
2387
+ "LICENSE": "0e5ccf641e613489e66aa98271dbe798",
2388
+ "Modulefile": "87054e414cd3a5ba50a7668ac715dbfa",
2389
+ "README.md": "b081cd1fe09ca6783c72dea1b521107e",
2390
+ "Rakefile": "0254db5d3fc38c67a2c160d7296a24f8",
2391
+ "TODO": "88ca4024a37992b46c34cb46e4ac39e6",
2392
+ "files/mysqltuner.pl": "7e6fcb6d010c85cec68cffa90e6cc5b6",
2393
+ "lib/puppet/parser/functions/mysql_password.rb": "3c375e08f7372795ad25d51d43995f96",
2394
+ "lib/puppet/provider/database/mysql.rb": "5ca8a2fd43b8e9b8fd87779017b94486",
2395
+ "lib/puppet/provider/database_grant/mysql.rb": "1836e5466a1425d03f853af6f2acbaa7",
2396
+ "lib/puppet/provider/database_user/mysql.rb": "daf038e7ce0adea94fdcb2536a7b13ea",
2397
+ "lib/puppet/type/database.rb": "a5e9e5edb5aa67bbddd17fb9096c9eae",
2398
+ "lib/puppet/type/database_grant.rb": "8a9d41da37ab8450f656b0e50c0f3c1e",
2399
+ "lib/puppet/type/database_user.rb": "3c1569f97f0b2c76437503e3d47d520b",
2400
+ "manifests/backup.pp": "1a386c8f6db5d84716bcfe005e80c6d0",
2401
+ "manifests/config.pp": "df2bb008feb1d2227d71d5a5b7cbf69b",
2402
+ "manifests/db.pp": "7b4c8960a07c67d18e98e42c2f8680e5",
2403
+ "manifests/init.pp": "596a25f0aa546af4b781cecd48ecb71e",
2404
+ "manifests/java.pp": "178f7ab9a42f8bf713a3a95cca1c7e44",
2405
+ "manifests/params.pp": "cbea411a626e8b9cc41991328421db4c",
2406
+ "manifests/php.pp": "f944a7b6046f28efb899a1200c525430",
2407
+ "manifests/python.pp": "8ae864b0c2dce0947990ec1f24256758",
2408
+ "manifests/ruby.pp": "5b841e919ca1eae91e46cf8f0118fb56",
2409
+ "manifests/server/account_security.pp": "03e02441f63a8aa7deb25994f9d89116",
2410
+ "manifests/server/config.pp": "079a38b6cf73673f6e8c90318ef783c0",
2411
+ "manifests/server/monitor.pp": "9ed5b5801e63f9075be26c7b2a5b2caf",
2412
+ "manifests/server/mysqltuner.pp": "178a1e5f8e24d7a52c175577edad7510",
2413
+ "manifests/server.pp": "000b4bafab4d82c3879a91b613744167",
2414
+ "spec/classes/mysql_backup_spec.rb": "1046f5e7d9e62534f9298172fdee2e0e",
2415
+ "spec/classes/mysql_config_spec.rb": "64b860ec0bba3a1a7851ea80d7607893",
2416
+ "spec/classes/mysql_init_spec.rb": "3f9a457a0aca6e6daa09a500929cebc8",
2417
+ "spec/classes/mysql_java_spec.rb": "b8bb5edbe8dff978a80a6b9623ef532f",
2418
+ "spec/classes/mysql_php_spec.rb": "643cb7da5c7fb217c5b059ed6870dfe4",
2419
+ "spec/classes/mysql_python_spec.rb": "13f5bedda4d314c1e3017a69615f2a38",
2420
+ "spec/classes/mysql_ruby_spec.rb": "4ecdad4a24edbcf06dd4855afdd07806",
2421
+ "spec/classes/mysql_server_account_security_spec.rb": "4e7ef3e14d7fdd401dfc1c6a12df2ef5",
2422
+ "spec/classes/mysql_server_monitor_spec.rb": "f75d008a06c167414ea04a82554887be",
2423
+ "spec/classes/mysql_server_spec.rb": "4746897ec3a63fe2a409f8b148c47f0c",
2424
+ "spec/defines/mysql_db_spec.rb": "a0b430b5d8c18bba2e673a83687bed84",
2425
+ "spec/defines/mysql_server_config_spec.rb": "18e6e1ef1483e347a5297820ae37f9c0",
2426
+ "spec/spec.opts": "a600ded995d948e393fbe2320ba8e51c",
2427
+ "spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",
2428
+ "spec/unit/mysql_password_spec.rb": "c5480e7abb7deb50a3c3e6466721a69d",
2429
+ "spec/unit/puppet/provider/database_grant/mysql_spec.rb": "d625c815046828896d5d9ef89d9a3060",
2430
+ "templates/my.cnf.erb": "e85ddbf49172c6db73d8ce17756c0d3b",
2431
+ "templates/my.cnf.pass.erb": "a4952e72bb8aea85a07274c2c1c0334f",
2432
+ "templates/my.conf.cnf.erb": "58c030db04b5f4064f0ca58a353c95c9",
2433
+ "templates/mysqlbackup.sh.erb": "9230c77262e026871fe8db1de6356822",
2434
+ "tests/backup.pp": "caae4da564c1f663341bbe50915a5f7d",
2435
+ "tests/init.pp": "6b34827ac4731829c8a117f0b3fb8167",
2436
+ "tests/java.pp": "0ad9de4f9f2c049642bcf08124757085",
2437
+ "tests/mysql_database.pp": "2a85cd95a9952e3d93aa05f8f236551e",
2438
+ "tests/mysql_grant.pp": "106e1671b1f68701778401e4a3fc8d05",
2439
+ "tests/mysql_user.pp": "7aa29740f3b6cd8a7041d59af2d595cc",
2440
+ "tests/python.pp": "b093828acfed9c14e25ebdd60d90c282",
2441
+ "tests/ruby.pp": "6c5071fcaf731995c9b8e31e00eaffa0",
2442
+ "tests/server/account_security.pp": "47f79d7ae9eac2bf2134db27abf1db37",
2443
+ "tests/server/config.pp": "619b4220138a12c6cb5f10af9867d8a1",
2444
+ "tests/server.pp": "dc12e116371af9d102a7cb2d9d06da0d"
2445
+ }
2446
+ },
2447
+ "tags": [
2448
+ "mysql",
2449
+ "database",
2450
+ "percona",
2451
+ "mariadb",
2452
+ "centos",
2453
+ "rhel",
2454
+ "ubuntu",
2455
+ "debian",
2456
+ "mysql_grant",
2457
+ "mysql_user",
2458
+ "mysql_database",
2459
+ "providers"
2460
+ ],
2461
+ "file_uri": "/v3/files/puppetlabs-mysql-0.6.1.tar.gz",
2462
+ "file_size": 39044,
2463
+ "file_md5": "6c8a35b59029443eec7bde3abc295a77",
2464
+ "downloads": 18715,
2465
+ "readme": "<section class=\"markdown\"><h1>Mysql module for Puppet</h1>\n\n<p>This module manages mysql on Linux (RedHat/Debian) distros. A native mysql provider implements database resource type to handle database, database user, and database permission.</p>\n\n<p>Pluginsync needs to be enabled for this module to function properly.\nRead more about pluginsync in our <a href=\"http://docs.puppetlabs.com/guides/plugins_in_modules.html#enabling-pluginsync\">docs</a></p>\n\n<h2>Description</h2>\n\n<p>This module uses the fact osfamily which is supported by Facter 1.6.1+. If you do not have facter 1.6.1 in your environment, the following manifests will provide the same functionality in site.pp (before declaring any node):</p>\n\n<pre><code>if ! $::osfamily {\n case $::operatingsystem {\n &#39;RedHat&#39;, &#39;Fedora&#39;, &#39;CentOS&#39;, &#39;Scientific&#39;, &#39;SLC&#39;, &#39;Ascendos&#39;, &#39;CloudLinux&#39;, &#39;PSBM&#39;, &#39;OracleLinux&#39;, &#39;OVS&#39;, &#39;OEL&#39;: {\n $osfamily = &#39;RedHat&#39;\n }\n &#39;ubuntu&#39;, &#39;debian&#39;: {\n $osfamily = &#39;Debian&#39;\n }\n &#39;SLES&#39;, &#39;SLED&#39;, &#39;OpenSuSE&#39;, &#39;SuSE&#39;: {\n $osfamily = &#39;Suse&#39;\n }\n &#39;Solaris&#39;, &#39;Nexenta&#39;: {\n $osfamily = &#39;Solaris&#39;\n }\n default: {\n $osfamily = $::operatingsystem\n }\n }\n}\n</code></pre>\n\n<p>This module depends on creates_resources function which is introduced in Puppet 2.7. Users on puppet 2.6 can use the following module which provides this functionality:</p>\n\n<p><a href=\"http://github.com/puppetlabs/puppetlabs-create_resources\">http://github.com/puppetlabs/puppetlabs-create_resources</a></p>\n\n<p>This module is based on work by David Schmitt. The following contributor have contributed patches to this module (beyond Puppet Labs):</p>\n\n<ul>\n<li>Christian G. Warden</li>\n<li>Daniel Black</li>\n<li>Justin Ellison</li>\n<li>Lowe Schmidt</li>\n<li>Matthias Pigulla</li>\n<li>William Van Hevelingen</li>\n<li>Michael Arnold</li>\n</ul>\n\n<h2>Usage</h2>\n\n<h3>mysql</h3>\n\n<p>Installs the mysql-client package.</p>\n\n<pre><code>class { &#39;mysql&#39;: }\n</code></pre>\n\n<h3>mysql::java</h3>\n\n<p>Installs mysql bindings for java.</p>\n\n<pre><code>class { &#39;mysql::java&#39;: }\n</code></pre>\n\n<h3>mysql::python</h3>\n\n<p>Installs mysql bindings for python.</p>\n\n<pre><code>class { &#39;mysql::python&#39;: }\n</code></pre>\n\n<h3>mysql::ruby</h3>\n\n<p>Installs mysql bindings for ruby.</p>\n\n<pre><code>class { &#39;mysql::ruby&#39;: }\n</code></pre>\n\n<h3>mysql::server</h3>\n\n<p>Installs mysql-server packages, configures my.cnf and starts mysqld service:</p>\n\n<pre><code>class { &#39;mysql::server&#39;:\n config_hash =&gt; { &#39;root_password&#39; =&gt; &#39;foo&#39; }\n}\n</code></pre>\n\n<p>Database login information stored in <code>/root/.my.cnf</code>.</p>\n\n<h3>mysql::db</h3>\n\n<p>Creates a database with a user and assign some privileges.</p>\n\n<pre><code>mysql::db { &#39;mydb&#39;:\n user =&gt; &#39;myuser&#39;,\n password =&gt; &#39;mypass&#39;,\n host =&gt; &#39;localhost&#39;,\n grant =&gt; [&#39;all&#39;],\n}\n</code></pre>\n\n<h3>mysql::backup</h3>\n\n<p>Installs a mysql backup script, cronjob, and priviledged backup user.</p>\n\n<pre><code>class { &#39;mysql::backup&#39;:\n backupuser =&gt; &#39;myuser&#39;,\n backuppassword =&gt; &#39;mypassword&#39;,\n backupdir =&gt; &#39;/tmp/backups&#39;,\n}\n</code></pre>\n\n<h3>Providers for database types:</h3>\n\n<p>MySQL provider supports puppet resources command:</p>\n\n<pre><code>$ puppet resource database\ndatabase { &#39;information_schema&#39;:\n ensure =&gt; &#39;present&#39;,\n charset =&gt; &#39;utf8&#39;,\n}\ndatabase { &#39;mysql&#39;:\n ensure =&gt; &#39;present&#39;,\n charset =&gt; &#39;latin1&#39;,\n}\n</code></pre>\n\n<p>The custom resources can be used in any other manifests:</p>\n\n<pre><code>database { &#39;mydb&#39;:\n charset =&gt; &#39;latin1&#39;,\n}\n\ndatabase_user { &#39;bob@localhost&#39;:\n password_hash =&gt; mysql_password(&#39;foo&#39;)\n}\n\ndatabase_grant { &#39;user@localhost/database&#39;:\n privileges =&gt; [&#39;all&#39;] ,\n # Or specify individual privileges with columns from the mysql.db table:\n # privileges =&gt; [&#39;Select_priv&#39;, &#39;Insert_priv&#39;, &#39;Update_priv&#39;, &#39;Delete_priv&#39;]\n}\n</code></pre>\n\n<p>A resource default can be specified to handle dependency:</p>\n\n<pre><code>Database {\n require =&gt; Class[&#39;mysql::server&#39;],\n}\n</code></pre>\n</section>",
2466
+ "changelog": "<section class=\"plaintext\"><pre>2013-01-11 - Version 0.6.1\n* Fix providers when &#x2F;root&#x2F;.my.cnf is absent\n\n2013-01-09 - Version 0.6.0\n* Add `mysql::server::config` define for specific config directives\n* Add `mysql::php` class for php support\n* Add `backupcompress` parameter to `mysql::backup`\n* Add `restart` parameter to `mysql::config`\n* Add `purge_conf_dir` parameter to `mysql::config`\n* Add `manage_service` parameter to `mysql::server`\n* Add syslog logging support via the `log_error` parameter\n* Add initial SuSE support\n* Fix remove non-localhost root user when fqdn != hostname\n* Fix dependency in `mysql::server::monitor`\n* Fix .my.cnf path for root user and root password\n* Fix ipv6 support for users\n* Fix &#x2F; update various spec tests\n* Fix typos\n* Fix lint warnings\n\n2012-08-23 - Version 0.5.0\n* Add puppetlabs&#x2F;stdlib as requirement\n* Add validation for mysql privs in provider\n* Add `pidfile` parameter to mysql::config\n* Add `ensure` parameter to mysql::db\n* Add Amazon linux support\n* Change `bind_address` parameter to be optional in my.cnf template\n* Fix quoting root passwords\n\n2012-07-24 - Version 0.4.0\n* Fix various bugs regarding database names\n* FreeBSD support\n* Allow specifying the storage engine\n* Add a backup class\n* Add a security class to purge default accounts\n\n2012-05-03 - Version 0.3.0\n* #14218 Query the database for available privileges\n* Add mysql::java class for java connector installation\n* Use correct error log location on different distros\n* Fix set_mysql_rootpw to properly depend on my.cnf\n\n2012-04-11 - Version 0.2.0\n\n2012-03-19 - William Van Hevelingen &lt;blkperl@cat.pdx.edu&gt;\n* (#13203) Add ssl support (f7e0ea5)\n\n2012-03-18 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Travis ci before script needs success exit code. (0ea463b)\n\n2012-03-18 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Fix Puppet 2.6 compilation issues. (9ebbbc4)\n\n2012-03-16 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Add travis.ci for testing multiple puppet versions. (33c72ef)\n\n2012-03-15 - William Van Hevelingen &lt;blkperl@cat.pdx.edu&gt;\n* (#13163) Datadir should be configurable (f353fc6)\n\n2012-03-16 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Document create_resources dependency. (558a59c)\n\n2012-03-16 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Fix spec test issues related to error message. (eff79b5)\n\n2012-03-16 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Fix mysql service on Ubuntu. (72da2c5)\n\n2012-03-16 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Add more spec test coverage (55e399d)\n\n2012-03-16 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* (#11963) Fix spec test due to path changes. (1700349)\n\n2012-03-07 - François Charlier &lt;fcharlier@ploup.net&gt;\n* Add a test to check path for &#x27;mysqld-restart&#x27; (b14c7d1)\n\n2012-03-07 - François Charlier &lt;fcharlier@ploup.net&gt;\n* Fix path for &#x27;mysqld-restart&#x27; (1a9ae6b)\n\n2012-03-15 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Add rspec-puppet tests for mysql::config (907331a)\n\n2012-03-15 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Moved class dependency between sever and config to server (da62ad6)\n\n2012-03-14 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Notify mysql restart from set_mysql_rootpw exec (0832a2c)\n\n2012-03-15 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Add documentation related to osfamily fact. (8265d28)\n\n2012-03-14 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Mention osfamily value in failure message (e472d3b)\n\n2012-03-14 - Dan Bode &lt;dan@puppetlabs.com&gt;\n* Fix bug when querying for all database users (015490c)\n\n2012-02-09 - Nan Liu &lt;nan@puppetlabs.com&gt;\n* Major refactor of mysql module. (b1f90fd)\n\n2012-01-11 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Ruby and Python&#x27;s MySQL libraries are named differently on different distros. (1e926b4)\n\n2012-01-11 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Per @ghoneycutt, we should fail explicitly and explain why. (09af083)\n\n2012-01-11 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Removing duplicate declaration (7513d03)\n\n2012-01-10 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Use socket value from params class instead of hardcoding. (663e97c)\n\n2012-01-10 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Instead of hardcoding the config file target, pull it from mysql::params (031a47d)\n\n2012-01-10 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Moved $socket to within the case to toggle between distros. Added a $config_file variable to allow per-distro config file destinations. (360eacd)\n\n2012-01-10 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Pretty sure this is a bug, 99% of Linux distros out there won&#x27;t ever hit the default. (3462e6b)\n\n2012-02-09 - William Van Hevelingen &lt;blkperl@cat.pdx.edu&gt;\n* Changed the README to use markdown (3b7dfeb)\n\n2012-02-04 - Daniel Black &lt;grooverdan@users.sourceforge.net&gt;\n* (#12412) mysqltuner.pl update (b809e6f)\n\n2011-11-17 - Matthias Pigulla &lt;mp@webfactory.de&gt;\n* (#11363) Add two missing privileges to grant: event_priv, trigger_priv (d15c9d1)\n\n2011-12-20 - Jeff McCune &lt;jeff@puppetlabs.com&gt;\n* (minor) Fixup typos in Modulefile metadata (a0ed6a1)\n\n2011-12-19 - Carl Caum &lt;carl@carlcaum.com&gt;\n* Only notify Exec to import sql if sql is given (0783c74)\n\n2011-12-19 - Carl Caum &lt;carl@carlcaum.com&gt;\n* (#11508) Only load sql_scripts on DB creation (e3b9fd9)\n\n2011-12-13 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Require not needed due to implicit dependencies (3058feb)\n\n2011-12-13 - Justin Ellison &lt;justin.ellison@buckle.com&gt;\n* Bug #11375: puppetlabs-mysql fails on CentOS&#x2F;RHEL (a557b8d)\n\n2011-06-03 - Dan Bode &lt;dan@puppetlabs.com&gt; - 0.0.1\n* initial commit\n</pre></section>",
2467
+ "license": "<section class=\"plaintext\"><pre> Apache License\n Version 2.0, January 2004\n http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n &quot;License&quot; shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n &quot;Licensor&quot; shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n &quot;Legal Entity&quot; shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n &quot;control&quot; means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n &quot;You&quot; (or &quot;Your&quot;) shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n &quot;Source&quot; form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n &quot;Object&quot; form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n &quot;Work&quot; shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n &quot;Derivative Works&quot; shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n &quot;Contribution&quot; shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, &quot;submitted&quot;\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as &quot;Not a Contribution.&quot;\n\n &quot;Contributor&quot; shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a &quot;NOTICE&quot; text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an &quot;AS IS&quot; BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and&#x2F;or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets &quot;[]&quot;\n replaced with your own identifying information. (Don&#x27;t include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same &quot;printed page&quot; as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an &quot;AS IS&quot; BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n</pre></section>",
2468
+ "created_at": "2013-01-11 15:27:51 -0800",
2469
+ "updated_at": "2013-01-11 15:27:51 -0800",
2470
+ "deleted_at": null
2471
+ },
2472
+ {
2473
+ "uri": "/v3/releases/puppetlabs-apache-0.9.0",
2474
+ "module": {
2475
+ "uri": "/v3/modules/puppetlabs-apache",
2476
+ "name": "apache",
2477
+ "owner": {
2478
+ "uri": "/v3/users/puppetlabs",
2479
+ "username": "puppetlabs",
2480
+ "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
2481
+ }
2482
+ },
2483
+ "version": "0.9.0",
2484
+ "metadata": {
2485
+ "name": "puppetlabs-apache",
2486
+ "version": "0.9.0",
2487
+ "summary": "Puppet module for Apache",
2488
+ "author": "puppetlabs",
2489
+ "description": "Module for Apache configuration",
2490
+ "dependencies": [
2491
+ {
2492
+ "name": "puppetlabs/stdlib",
2493
+ "version_requirement": ">= 2.4.0"
2494
+ },
2495
+ {
2496
+ "name": "puppetlabs/concat",
2497
+ "version_requirement": ">= 1.0.0"
2498
+ }
2499
+ ],
2500
+ "types": [
2501
+ {
2502
+ "parameters": [
2503
+ {
2504
+ "name": "name",
2505
+ "doc": "The name of the module to be managed"
2506
+ },
2507
+ {
2508
+ "name": "lib",
2509
+ "doc": "The name of the .so library to be loaded"
2510
+ },
2511
+ {
2512
+ "name": "identifier",
2513
+ "doc": "Module identifier string used by LoadModule. Default: module-name_module"
2514
+ }
2515
+ ],
2516
+ "providers": [
2517
+ {
2518
+ "name": "gentoo",
2519
+ "doc": "Manage Apache 2 modules on Gentoo"
2520
+ },
2521
+ {
2522
+ "name": "modfix",
2523
+ "doc": "Dummy provider for A2mod.\n\n Fake nil resources when there is no crontab binary available. Allows\n puppetd to run on a bootstrapped machine before a Cron package has been\n installed. Workaround for: http://projects.puppetlabs.com/issues/2384\n "
2524
+ },
2525
+ {
2526
+ "name": "redhat",
2527
+ "doc": "Manage Apache 2 modules on RedHat family OSs"
2528
+ },
2529
+ {
2530
+ "name": "a2mod",
2531
+ "doc": "Manage Apache 2 modules on Debian and Ubuntu"
2532
+ }
2533
+ ],
2534
+ "name": "a2mod",
2535
+ "doc": "Manage Apache 2 modules"
2536
+ }
2537
+ ],
2538
+ "checksums": {
2539
+ ".bundle/config": "b898efea5e8783d6593fcdabec67e925",
2540
+ ".fixtures.yml": "b67781fff881cf708d92df4851cf0e70",
2541
+ ".nodeset.yml": "f2b857f9fc7a701ff118e28591c12925",
2542
+ ".travis.yml": "d0bd592680200f18b2ef4088c2569701",
2543
+ "CHANGELOG.md": "483202a1f4f08294d798c0685c518108",
2544
+ "Gemfile": "c1cd7b0477f1a99e0156a471aac6cd58",
2545
+ "Gemfile.lock": "74613ef355389b668fc4b51a0f9eac39",
2546
+ "LICENSE": "b3f8a01d8699078d82e8c3c992307517",
2547
+ "Modulefile": "fef4b236b7d7885250ca64dbe6074e0a",
2548
+ "README.md": "d3cb59220928734b6d41a6f3a0302c64",
2549
+ "README.passenger.md": "9007ae9e57138bed0c01ae58607ec2aa",
2550
+ "Rakefile": "0428ea3759a4692c91604396c406a9c1",
2551
+ "files/httpd": "295f5e924afe6f752d29327e73fe6d0a",
2552
+ "lib/puppet/provider/a2mod.rb": "03ed73d680787dd126ea37a03be0b236",
2553
+ "lib/puppet/provider/a2mod/a2mod.rb": "d986d8e8373f3f31c97359381c180628",
2554
+ "lib/puppet/provider/a2mod/gentoo.rb": "2492d446adbb68f678e86a75eb7ff3bd",
2555
+ "lib/puppet/provider/a2mod/modfix.rb": "b689a1c83c9ccd8590399c67f3e588e5",
2556
+ "lib/puppet/provider/a2mod/redhat.rb": "c39b80e75e7d0666def31c2a6cdedb0b",
2557
+ "lib/puppet/type/a2mod.rb": "9042ccc045bfeecca28bebb834114f05",
2558
+ "manifests/balancer.pp": "c635b2d2dec8b5972509960152e169a3",
2559
+ "manifests/balancermember.pp": "8afe51921a42545402fa457820162ae2",
2560
+ "manifests/default_mods.pp": "8493f16440d3eb7b9d392049dfef680b",
2561
+ "manifests/default_mods/load.pp": "b3f21b3186216795dd18ee051f01e3c2",
2562
+ "manifests/dev.pp": "606c3cbe27f32b61cfcbd15fb211890c",
2563
+ "manifests/init.pp": "b0d1433c1848ee81f18d528fcdf5abec",
2564
+ "manifests/listen.pp": "5efc62bd75a0a9a9565b12bd8cb2a9e4",
2565
+ "manifests/mod.pp": "fc66b79d9086d8d296c372d605d31890",
2566
+ "manifests/mod/alias.pp": "f5d65ca4755f5464b32c5f95fd42a052",
2567
+ "manifests/mod/auth_basic.pp": "47ff846317d52d2161c6d09cac05f7f8",
2568
+ "manifests/mod/auth_kerb.pp": "7876ffdca25396285a26afae8dd030eb",
2569
+ "manifests/mod/autoindex.pp": "1b07e7737b4b27f977f80c289172a55b",
2570
+ "manifests/mod/cache.pp": "51b4826a72090da8e463bc007695f05b",
2571
+ "manifests/mod/cgi.pp": "8c9265733584e188196fe69fd3b9fdd7",
2572
+ "manifests/mod/cgid.pp": "63bd38d692ec78f351a6f234f29c2f16",
2573
+ "manifests/mod/dav.pp": "f0228b06b7101864f7c943b541e570d2",
2574
+ "manifests/mod/dav_fs.pp": "93fce4f45e7a85e9d6eb2b745390eaba",
2575
+ "manifests/mod/dav_svn.pp": "85a9a3efe5cce6096d89cf29195e6dc1",
2576
+ "manifests/mod/deflate.pp": "f317ddf1cbfee52945d0433a3b25c728",
2577
+ "manifests/mod/dev.pp": "d6a001af402d8e82e952c8243c5e5321",
2578
+ "manifests/mod/dir.pp": "f3c3e6a21653ebda12f35b4b140e68d5",
2579
+ "manifests/mod/disk_cache.pp": "da3b7f47ce079f20db2d20e2d6539c11",
2580
+ "manifests/mod/fcgid.pp": "d03eb1add8f2cef603331dde96f1f7fd",
2581
+ "manifests/mod/headers.pp": "224438518465d09c951eb00dbaf8123c",
2582
+ "manifests/mod/info.pp": "9a45dd07a2681dc1fef9204de3f42bd9",
2583
+ "manifests/mod/itk.pp": "852588a26f2635979abf24fd33f1a9ff",
2584
+ "manifests/mod/ldap.pp": "f5033ee5197938d402854d8ffa9fb1d3",
2585
+ "manifests/mod/mime.pp": "c9ff4215f9308fd729e96a8d76d3fe1d",
2586
+ "manifests/mod/mime_magic.pp": "9c3a73f877de39c1db2178b827c4a86d",
2587
+ "manifests/mod/mpm_event.pp": "c1540d87cfb2b4a4631c4cc5d3e191f5",
2588
+ "manifests/mod/negotiation.pp": "9f5d70e4c961175a78a049fedaac85c9",
2589
+ "manifests/mod/passenger.pp": "29fca0851862aaaa836acf25718c08cc",
2590
+ "manifests/mod/perl.pp": "72195ad624f68e2c0009074d118bf8e4",
2591
+ "manifests/mod/php.pp": "247915331ce4ee815a0c032897a83157",
2592
+ "manifests/mod/prefork.pp": "2eb8a29fa3a81b4b8ade96989ef06742",
2593
+ "manifests/mod/proxy.pp": "e0e9f9963f720501d9b53ab9fb35f256",
2594
+ "manifests/mod/proxy_balancer.pp": "c71c8ae1eb91d29ec26e19899db2bfec",
2595
+ "manifests/mod/proxy_html.pp": "25cbac9bc2553bc3a18ede060a1a14fd",
2596
+ "manifests/mod/proxy_http.pp": "773d0fbb934440a24b3bc87517faa4d4",
2597
+ "manifests/mod/python.pp": "0b22df3d0e9a39ce948212e18329155f",
2598
+ "manifests/mod/reqtimeout.pp": "2ff860e05de7352d4a1bcd57c0ee08f0",
2599
+ "manifests/mod/rewrite.pp": "165fdccc8acc61e5fb088d9917861a3c",
2600
+ "manifests/mod/setenvif.pp": "32098aaab01723cae4c44d2fff8114ea",
2601
+ "manifests/mod/ssl.pp": "80ee4f522104719f07aa2be33d320973",
2602
+ "manifests/mod/status.pp": "1619d96a0d9b9534145209c98c683cbe",
2603
+ "manifests/mod/suphp.pp": "c42d20b057007eff1a75595fc3fe7adf",
2604
+ "manifests/mod/userdir.pp": "7166fee20a3e5b97d61dfae18fb745c9",
2605
+ "manifests/mod/vhost_alias.pp": "ea2d06875ed4f47ba65da0f7169e529e",
2606
+ "manifests/mod/worker.pp": "36bdeaa252d3ba3c14296bbcf2acb9b0",
2607
+ "manifests/mod/wsgi.pp": "092d35c267e671444d42e2243606bc99",
2608
+ "manifests/mod/xsendfile.pp": "ebe6241729f1b0d8125043a1f34caa54",
2609
+ "manifests/namevirtualhost.pp": "27bb9faa95147fcd15ec2aa0a95bc3af",
2610
+ "manifests/params.pp": "525b2ac104a0a4922f6be584bc5c6e9d",
2611
+ "manifests/php.pp": "a4478838b4cf9b0525b04db150cf55b8",
2612
+ "manifests/proxy.pp": "54e7657920b580546f3bef3980f2fd03",
2613
+ "manifests/python.pp": "2edb06e8119b67a5a62fb24fb280d3e5",
2614
+ "manifests/service.pp": "8e5145ad7866adb9b1f26494559ba6a7",
2615
+ "manifests/ssl.pp": "7f944d1c103a59ebd04d02e68af69f7a",
2616
+ "manifests/vhost.pp": "2242685bed5db4a4fa08ebfe1f836084",
2617
+ "spec/classes/apache_spec.rb": "dbeb82d859d03037b86c754d2e9437b9",
2618
+ "spec/classes/dev_spec.rb": "ecc212316f7801f427fa4c30ca65e259",
2619
+ "spec/classes/mod/auth_kerb_spec.rb": "70e2d94d84724a1b54aff6a9dede1ca6",
2620
+ "spec/classes/mod/dav_svn_spec.rb": "6b014a30e017a6cf30bdc4221e4a15b9",
2621
+ "spec/classes/mod/dev_spec.rb": "27a9d92460a3e62842b5e64f7154f893",
2622
+ "spec/classes/mod/dir_spec.rb": "e462dbea87eb1211e496f60e40538370",
2623
+ "spec/classes/mod/fcgid_spec.rb": "3bd6c0638347b763a88e44d5d7216cb0",
2624
+ "spec/classes/mod/info_spec.rb": "3921a934a1d41c6e1cce328a45b3cc1d",
2625
+ "spec/classes/mod/itk_spec.rb": "e9edc7ebebeda4cea0bf896c597c2267",
2626
+ "spec/classes/mod/passenger_spec.rb": "959b0a3235999e5201980871ea2b862a",
2627
+ "spec/classes/mod/perl_spec.rb": "0ba258605762d1fa25398a08e90157e4",
2628
+ "spec/classes/mod/php_spec.rb": "c4050e546d010f0dcb5a8bd580b5f3ed",
2629
+ "spec/classes/mod/prefork_spec.rb": "0f7de99f1fb58670f11fde4f7280e99e",
2630
+ "spec/classes/mod/proxy_html_spec.rb": "bf313b5dfdd2c9f3054f4b791c32a84c",
2631
+ "spec/classes/mod/python_spec.rb": "2b8079e833cbe6313435a72d9fc00cb9",
2632
+ "spec/classes/mod/ssl_spec.rb": "53b8ecefa9ce0af2562d8183c063167d",
2633
+ "spec/classes/mod/suphp_spec.rb": "1da3f6561f19d8c7f2a71655fa7772ea",
2634
+ "spec/classes/mod/worker_spec.rb": "f3324663e5f93d1b73911276bd984e79",
2635
+ "spec/classes/mod/wsgi_spec.rb": "c41bc8e4cc95a87d1448e06b7d8001eb",
2636
+ "spec/classes/params_spec.rb": "9b1984a3e8a485ff128512833400dfbd",
2637
+ "spec/classes/service_spec.rb": "3448d0a4256bd806902c45f2c13bf5a6",
2638
+ "spec/defines/mod_spec.rb": "d82643d472be88a65cd202381099ed6f",
2639
+ "spec/defines/vhost_spec.rb": "4535046a2cf7d7f9745020b92503f2e4",
2640
+ "spec/fixtures/modules/site_apache/templates/fake.conf.erb": "6b0431dd0b9a0bf803eb0684300c2cff",
2641
+ "spec/spec.opts": "c407193b3d9028941ef59edd114f5968",
2642
+ "spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",
2643
+ "spec/spec_helper_system.rb": "c54584d03120766bac28221597920d3d",
2644
+ "spec/system/basic_spec.rb": "73bab7cf3eb0554b7d7801613c4b483e",
2645
+ "spec/system/class_spec.rb": "ada9b7ebb090d6b4e62db22b3c82b330",
2646
+ "spec/system/default_mods_spec.rb": "b57b9deb89c3905a7a7d9ca9e573f62f",
2647
+ "spec/system/itk_spec.rb": "cbce8cac9e311b2cfce48eb2369ced7b",
2648
+ "spec/system/mod_php_spec.rb": "9bc01054af24b981fa1c49ac723469fc",
2649
+ "spec/system/mod_suphp_spec.rb": "9d38045b3dcb052153e7c08164301c13",
2650
+ "spec/system/prefork_worker_spec.rb": "d7b05867fd73464971919fd4393b3719",
2651
+ "spec/system/service_spec.rb": "3cd71e4e40790e1624487fd233f18a07",
2652
+ "spec/system/vhost_spec.rb": "2e3c1fa5ab5a6e4f8513c68904e52269",
2653
+ "spec/unit/provider/a2mod/gentoo_spec.rb": "24ad9db4f6ba0b4fc7ed77b509b4244c",
2654
+ "templates/httpd.conf.erb": "154af1419ad44722c9f33bd1eb9a9637",
2655
+ "templates/listen.erb": "6286aa08f9e28caee54b1e1ee031b9d6",
2656
+ "templates/mod/alias.conf.erb": "669fc0a80839be3a81e2f4d4150c3ad6",
2657
+ "templates/mod/autoindex.conf.erb": "2421a3c6df32c7e38c2a7a22afdf5728",
2658
+ "templates/mod/cgid.conf.erb": "3d4e24001b50eb16561e45f5a8237b32",
2659
+ "templates/mod/dav_fs.conf.erb": "fdf1f8cff4708a282ef491d60868d1d7",
2660
+ "templates/mod/deflate.conf.erb": "44d54f557a5612be8da04c49dd6da862",
2661
+ "templates/mod/dir.conf.erb": "2485da78a2506c14bf51dde38dd03360",
2662
+ "templates/mod/disk_cache.conf.erb": "7d3e7a5ee3bd7b6a839924b06a60667f",
2663
+ "templates/mod/info.conf.erb": "bb48951beaeaf582d1a1023cb661ac32",
2664
+ "templates/mod/itk.conf.erb": "eff84b78e4f2f8c5c3a2e9fc4b8aad16",
2665
+ "templates/mod/ldap.conf.erb": "a8a33f645497e0dbcec363c98be43795",
2666
+ "templates/mod/mime.conf.erb": "2fa646fe615e44d137a5d629f868c107",
2667
+ "templates/mod/mime_magic.conf.erb": "8a4f61bd7539871cb507cc95f5dbd205",
2668
+ "templates/mod/mpm_event.conf.erb": "80097a19d063a4f973465d9ef5c0c0bf",
2669
+ "templates/mod/negotiation.conf.erb": "47284b5580b986a6ba32580b6ffb9fd7",
2670
+ "templates/mod/passenger.conf.erb": "6e0c2d796b5e67aa366eadc53c963a5e",
2671
+ "templates/mod/php5.conf.erb": "49e2d214790835c141fcaf6d74b5a96d",
2672
+ "templates/mod/prefork.conf.erb": "f9ec5a7eaea78a19b04fa69f8acd8a84",
2673
+ "templates/mod/proxy.conf.erb": "ae1cd187ffbd5cc9b74f8711e313e96b",
2674
+ "templates/mod/proxy_html.conf.erb": "67546d56f2d6bb1860338257e3ac9d29",
2675
+ "templates/mod/reqtimeout.conf.erb": "81c51851ab7ee7942bef389dc7c0e985",
2676
+ "templates/mod/setenvif.conf.erb": "c7ede4173da1915b7ec088201f030c28",
2677
+ "templates/mod/ssl.conf.erb": "2567261763976c62a4388abb62ae1e03",
2678
+ "templates/mod/status.conf.erb": "da061291068f8e20cf33812373319c40",
2679
+ "templates/mod/suphp.conf.erb": "05bb7b3ea23976b032ce405bfd4edd18",
2680
+ "templates/mod/userdir.conf.erb": "e5a7a7229dbf0de07bc034dd3d108ea2",
2681
+ "templates/mod/worker.conf.erb": "9661e7a59eaefb9f17d4c2680c0d243d",
2682
+ "templates/mod/wsgi.conf.erb": "7e098b0013f6e64e935bf244f7efcd67",
2683
+ "templates/namevirtualhost.erb": "fbfca19a639e18e6c477e191344ac8ae",
2684
+ "templates/ports_header.erb": "afe35cb5747574b700ebaa0f0b3a626e",
2685
+ "templates/vhost.conf.erb": "bc0f0bae3b149c8b78d9127714f2d28c",
2686
+ "templates/vhost/_aliases.erb": "319183dd74f4b231747fffa7b4a939f3",
2687
+ "templates/vhost/_block.erb": "7cb56db9254729b54e8d30686c4f3b1a",
2688
+ "templates/vhost/_custom_fragment.erb": "67a4475275ec9208e6421b047b9ed7f4",
2689
+ "templates/vhost/_directories.erb": "5131331896f3839221e1231e28b6e509",
2690
+ "templates/vhost/_itk.erb": "db5b12d7236dbc19b62ce13625d9d60e",
2691
+ "templates/vhost/_proxy.erb": "8faa613a00584432f99956f4b0ac1fbd",
2692
+ "templates/vhost/_rack.erb": "ebe187c1bdc81eec9c8e0d9026120b18",
2693
+ "templates/vhost/_redirect.erb": "0e2eed04e30240fbbd6c4ef7db6b7058",
2694
+ "templates/vhost/_requestheader.erb": "db1b0cdda069ae809b5b83b0871ef991",
2695
+ "templates/vhost/_rewrite.erb": "dcf423c014bdb222bcf15314a2f3a41f",
2696
+ "templates/vhost/_scriptalias.erb": "0373372000ca3198594f32ac637a9462",
2697
+ "templates/vhost/_serveralias.erb": "2ef30c2152b9284463588f408f7f371f",
2698
+ "templates/vhost/_setenv.erb": "da6778b324857234c8441ef346d08969",
2699
+ "templates/vhost/_ssl.erb": "5451565f3c34abdd50024af607ed9dc1",
2700
+ "templates/vhost/_suphp.erb": "6ea2553a4c4284d41b435fa2f4f4edc7",
2701
+ "templates/vhost/_wsgi.erb": "3bbab1e5757dfb584504f05354275f81",
2702
+ "tests/apache.pp": "819cf9116ffd349e6757e1926d11ca2f",
2703
+ "tests/dev.pp": "4cf15c1fecea3ca86009f182b402c7ab",
2704
+ "tests/init.pp": "4eac4a7ef68499854c54a78879e25535",
2705
+ "tests/mods.pp": "0085911ba562b7e56ad8d793099c9240",
2706
+ "tests/mods_custom.pp": "9afd068edce0538b5c55a3bc19f9c24a",
2707
+ "tests/php.pp": "ce7bb9eef69d32b42a32ce32d9653625",
2708
+ "tests/vhost.pp": "70ce947e12f9b344a24f95a08e622c6c",
2709
+ "tests/vhost_directories.pp": "b79a3bcf72474ce4e3b75f6a70cbf272",
2710
+ "tests/vhost_ip_based.pp": "7d9f7b6976de7488ab6ff0a6e647fc73",
2711
+ "tests/vhost_ssl.pp": "9f3716bc15a9a6760f1d6cc3bf8ce8ac",
2712
+ "tests/vhosts_without_listen.pp": "a6692104056a56517b4365bcc816e7f4"
2713
+ },
2714
+ "source": "git://github.com/puppetlabs/puppetlabs-apache.git",
2715
+ "project_page": "https://github.com/puppetlabs/puppetlabs-apache",
2716
+ "license": "Apache 2.0"
2717
+ },
2718
+ "tags": [
2719
+ "apache",
2720
+ "web",
2721
+ "virtualhost",
2722
+ "httpd",
2723
+ "centos",
2724
+ "rhel",
2725
+ "debian",
2726
+ "ubuntu",
2727
+ "apache2",
2728
+ "ssl",
2729
+ "passenger",
2730
+ "wsgi",
2731
+ "proxy",
2732
+ "virtual_host"
2733
+ ],
2734
+ "file_uri": "/v3/files/puppetlabs-apache-0.9.0.tar.gz",
2735
+ "file_size": 62433,
2736
+ "file_md5": "97ab32e19f65dbe6d7f42b3e5c3ada8e",
2737
+ "downloads": 18449,
2738
+ "readme": "<section class=\"markdown\"><h1>apache</h1>\n\n<p><a href=\"https://travis-ci.org/puppetlabs/puppetlabs-apache\"><img src=\"https://travis-ci.org/puppetlabs/puppetlabs-apache.png?branch=master\" alt=\"Build Status\"></a></p>\n\n<h4>Table of Contents</h4>\n\n<ol>\n<li><a href=\"#overview\">Overview - What is the Apache module?</a></li>\n<li><a href=\"#module-description\">Module Description - What does the module do?</a></li>\n<li><a href=\"#setup\">Setup - The basics of getting started with Apache</a>\n\n<ul>\n<li><a href=\"#beginning-with-apache\">Beginning with Apache - Installation</a></li>\n<li><a href=\"#configure-a-virtual-host\">Configure a Virtual Host - Basic options for getting started</a></li>\n</ul></li>\n<li><a href=\"#usage\">Usage - The classes, defined types, and their parameters available for configuration</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a>\n\n<ul>\n<li><a href=\"#class-apache\">Class: apache</a></li>\n<li><a href=\"#classes-apachemodname\">Classes: apache::mod::*</a></li>\n<li><a href=\"#defined-type-apachevhost\">Defined Type: apache::vhost</a></li>\n</ul></li>\n<li><a href=\"#virtual-host-examples\">Virtual Host Examples - Demonstrations of some configuration options</a></li>\n</ul></li>\n<li><a href=\"#implementation\">Implementation - An under-the-hood peek at what the module is doing</a>\n\n<ul>\n<li><a href=\"#classes-and-defined-types\">Classes and Defined Types</a></li>\n<li><a href=\"#templates\">Templates</a></li>\n</ul></li>\n<li><a href=\"#limitations\">Limitations - OS compatibility, etc.</a></li>\n<li><a href=\"#development\">Development - Guide for contributing to the module</a></li>\n<li><a href=\"#release-notes\">Release Notes - Notes on the most recent updates to the module</a></li>\n</ol>\n\n<h2>Overview</h2>\n\n<p>The Apache module allows you to set up virtual hosts and manage web services with minimal effort.</p>\n\n<h2>Module Description</h2>\n\n<p>Apache is a widely-used web server, and this module provides a simplified way of creating configurations to manage your infrastructure. This includes the ability to configure and manage a range of different virtual host setups, as well as a streamlined way to install and configure Apache modules.</p>\n\n<h2>Setup</h2>\n\n<p><strong>What Apache affects:</strong></p>\n\n<ul>\n<li>configuration files and directories (created and written to)\n\n<ul>\n<li><strong>NOTE</strong>: Configurations that are <em>not</em> managed by Puppet will be purged.</li>\n</ul></li>\n<li>package/service/configuration files for Apache</li>\n<li>Apache modules</li>\n<li>virtual hosts</li>\n<li>listened-to ports</li>\n</ul>\n\n<h3>Beginning with Apache</h3>\n\n<p>To install Apache with the default parameters</p>\n\n<pre lang=\"puppet\"><code> class { &#39;apache&#39;: }\n</code></pre>\n\n<p>The defaults are determined by your operating system (e.g. Debian systems have one set of defaults, RedHat systems have another). These defaults will work well in a testing environment, but are not suggested for production. To establish customized parameters</p>\n\n<pre lang=\"puppet\"><code> class { &#39;apache&#39;:\n default_mods =&gt; false,\n }\n</code></pre>\n\n<h3>Configure a virtual host</h3>\n\n<p>Declaring the <code>apache</code> class will create a default virtual host by setting up a vhost on port 80, listening on all interfaces and serving <code>$apache::docroot</code>.</p>\n\n<pre lang=\"puppet\"><code> class { &#39;apache&#39;: }\n</code></pre>\n\n<p>To configure a very basic, name-based virtual host</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;first.example.com&#39;:\n port =&gt; &#39;80&#39;,\n docroot =&gt; &#39;/var/www/first&#39;,\n }\n</code></pre>\n\n<p><em>Note:</em> The default priority is 15. If nothing matches this priority, the alphabetically first name-based vhost will be used. This is also true if you pass a higher priority and no names match anything else.</p>\n\n<p>A slightly more complicated example, which moves the docroot owner/group</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;second.example.com&#39;:\n port =&gt; &#39;80&#39;,\n docroot =&gt; &#39;/var/www/second&#39;,\n docroot_owner =&gt; &#39;third&#39;,\n docroot_group =&gt; &#39;third&#39;,\n }\n</code></pre>\n\n<p>To set up a virtual host with SSL and default SSL certificates</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;ssl.example.com&#39;:\n port =&gt; &#39;443&#39;,\n docroot =&gt; &#39;/var/www/ssl&#39;,\n ssl =&gt; true,\n }\n</code></pre>\n\n<p>To set up a virtual host with SSL and specific SSL certificates</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;fourth.example.com&#39;:\n port =&gt; &#39;443&#39;,\n docroot =&gt; &#39;/var/www/fourth&#39;,\n ssl =&gt; true,\n ssl_cert =&gt; &#39;/etc/ssl/fourth.example.com.cert&#39;,\n ssl_key =&gt; &#39;/etc/ssl/fourth.example.com.key&#39;,\n }\n</code></pre>\n\n<p>To set up a virtual host with wildcard alias for subdomain mapped to same named directory\n<code>http://examle.com.loc =&gt; /var/www/example.com</code></p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;subdomain.loc&#39;:\n vhost_name =&gt; &#39;*&#39;,\n port =&gt; &#39;80&#39;,\n virtual_docroot&#39; =&gt; &#39;/var/www/%-2+&#39;,\n docroot =&gt; &#39;/var/www&#39;,\n serveraliases =&gt; [&#39;*.loc&#39;,],\n }\n</code></pre>\n\n<p>To set up a virtual host with suPHP</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;suphp.example.com&#39;:\n port =&gt; &#39;80&#39;,\n docroot =&gt; &#39;/home/appuser/myphpapp&#39;,\n suphp_addhandler =&gt; &#39;x-httpd-php&#39;,\n suphp_engine =&gt; &#39;on&#39;,\n suphp_configpath =&gt; &#39;/etc/php5/apache2&#39;,\n }\n</code></pre>\n\n<p>To set up a virtual host with WSGI</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;wsgi.example.com&#39;:\n port =&gt; &#39;80&#39;,\n docroot =&gt; &#39;/var/www/pythonapp&#39;,\n wsgi_daemon_process =&gt; &#39;wsgi&#39;,\n wsgi_daemon_process_options =&gt;\n { processes =&gt; &#39;2&#39;, threads =&gt; &#39;15&#39;, display-name =&gt; &#39;%{GROUP}&#39; },\n wsgi_process_group =&gt; &#39;wsgi&#39;,\n wsgi_script_aliases =&gt; { &#39;/&#39; =&gt; &#39;/var/www/demo.wsgi&#39; },\n }\n</code></pre>\n\n<p>To see a list of all virtual host parameters, <a href=\"#defined-type-apachevhost\">please go here</a>. To see an extensive list of virtual host examples <a href=\"#virtual-host-examples\">please look here</a>.</p>\n\n<h2>Usage</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<p>This module modifies Apache configuration files and directories and will purge any configuration not managed by Puppet. Configuration of Apache should be managed by Puppet, as non-puppet configuration files can cause unexpected failures.</p>\n\n<p>It is possible to temporarily disable full Puppet management by setting the <code>purge_configs</code> parameter within the base <code>apache</code> class to &#39;false&#39;. This option should only be used as a temporary means of saving and relocating customized configurations.</p>\n\n<h4>Class: <code>apache</code></h4>\n\n<p>The Apache module&#39;s primary class, <code>apache</code>, guides the basic setup of Apache on your system.</p>\n\n<p>You may establish a default vhost in this class, the <code>vhost</code> class, or both. You may add additional vhost configurations for specific virtual hosts using a declaration of the <code>vhost</code> type.</p>\n\n<p><strong>Parameters within <code>apache</code>:</strong></p>\n\n<h5><code>default_mods</code></h5>\n\n<p>Sets up Apache with default settings based on your OS. Defaults to &#39;true&#39;, set to &#39;false&#39; for customized configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets up a default virtual host. Defaults to &#39;true&#39;, set to &#39;false&#39; to set up <a href=\"#configure-a-virtual-host\">customized virtual hosts</a>.</p>\n\n<h5><code>default_ssl_vhost</code></h5>\n\n<p>Sets up a default SSL virtual host. Defaults to &#39;false&#39;.</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;default-ssl&#39;:\n port =&gt; 443,\n ssl =&gt; true,\n docroot =&gt; $docroot,\n scriptalias =&gt; $scriptalias,\n serveradmin =&gt; $serveradmin,\n access_log_file =&gt; &quot;ssl_${access_log_file}&quot;,\n }\n</code></pre>\n\n<p>SSL vhosts only respond to HTTPS queries.</p>\n\n<h5><code>default_ssl_cert</code></h5>\n\n<p>The default SSL certification, which is automatically set based on your operating system (<code>/etc/pki/tls/certs/localhost.crt</code> for RedHat, <code>/etc/ssl/certs/ssl-cert-snakeoil.pem</code> for Debian). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_key</code></h5>\n\n<p>The default SSL key, which is automatically set based on your operating system (<code>/etc/pki/tls/private/localhost.key</code> for RedHat, <code>/etc/ssl/private/ssl-cert-snakeoil.key</code> for Debian). This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_chain</code></h5>\n\n<p>The default SSL chain, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_ca</code></h5>\n\n<p>The default certificate authority, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl_path</code></h5>\n\n<p>The default certificate revocation list path, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>default_ssl_crl</code></h5>\n\n<p>The default certificate revocation list to use, which is automatically set to &#39;undef&#39;. This default will work out of the box but must be updated with your specific certificate information before being used in production.</p>\n\n<h5><code>service_enable</code></h5>\n\n<p>Determines whether the &#39;httpd&#39; service is enabled when the machine is booted, meaning Puppet will check the service status to start/stop it. Defaults to &#39;true&#39;, meaning the service is enabled/running.</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Sets the server administrator. Defaults to &#39;root@localhost&#39;.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the servername. Defaults to fqdn provided by facter.</p>\n\n<h5><code>sendfile</code></h5>\n\n<p>Makes Apache use the Linux kernel &#39;sendfile&#39; to serve static files. Defaults to &#39;false&#39;.</p>\n\n<h5><code>error_documents</code></h5>\n\n<p>Enables custom error documents. Defaults to &#39;false&#39;.</p>\n\n<h5><code>httpd_dir</code></h5>\n\n<p>Changes the base location of the configuration directories used for the service. This is useful for specially repackaged HTTPD builds but may have unintended concequences when used in combination with the default distribution packages. Default is based on your OS.</p>\n\n<h5><code>confd_dir</code></h5>\n\n<p>Changes the location of the configuration directory your custom configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>vhost_dir</code></h5>\n\n<p>Changes the location of the configuration directory your virtual host configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mod_dir</code></h5>\n\n<p>Changes the location of the configuration directory your Apache modules configuration files are placed in. Default is based on your OS.</p>\n\n<h5><code>mpm_module</code></h5>\n\n<p>Configures which mpm module is loaded and configured for the httpd process by the <code>apache::mod::prefork</code>, <code>apache::mod::worker</code> and <code>apache::mod::itk</code> classes. Must be set to <code>false</code> to explicitly declare <code>apache::mod::worker</code>, <code>apache::mod::worker</code> or <code>apache::mod::itk</code> classes with parameters. Valid values are <code>worker</code>, <code>prefork</code>, <code>itk</code> (Debian), or the boolean <code>false</code>. Defaults to <code>prefork</code> on RedHat and <code>worker</code> on Debian.</p>\n\n<h5><code>conf_template</code></h5>\n\n<p>Setting this allows you to override the template used for the main apache configuration file. This is a potentially risky thing to do as this module has been built around the concept of a minimal configuration file with most of the configuration coming in the form of conf.d/ entries. Defaults to &#39;apache/httpd.conf.erb&#39;.</p>\n\n<h5><code>keepalive</code></h5>\n\n<p>Setting this allows you to enable persistent connections.</p>\n\n<h5><code>keepalive_timeout</code></h5>\n\n<p>Amount of time the server will wait for subsequent requests on a persistent connection. Defaults to &#39;15&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Changes the location of the directory Apache log files are placed in. Defaut is based on your OS.</p>\n\n<h5><code>ports_file</code></h5>\n\n<p>Changes the name of the file containing Apache ports configuration. Default is <code>${conf_dir}/ports.conf</code>.</p>\n\n<h4>Class: <code>apache::default_mods</code></h4>\n\n<p>Installs default Apache modules based on what OS you are running</p>\n\n<pre lang=\"puppet\"><code> class { &#39;apache::default_mods&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::mod</code></h4>\n\n<p>Used to enable arbitrary Apache httpd modules for which there is no specific <code>apache::mod::[name]</code> class. The <code>apache::mod</code> defined type will also install the required packages to enable the module, if any.</p>\n\n<pre lang=\"puppet\"><code> apache::mod { &#39;rewrite&#39;: }\n apache::mod { &#39;ldap&#39;: }\n</code></pre>\n\n<h4>Classes: <code>apache::mod::[name]</code></h4>\n\n<p>There are many <code>apache::mod::[name]</code> classes within this module that can be declared using <code>include</code>:</p>\n\n<ul>\n<li><code>alias</code></li>\n<li><code>auth_basic</code></li>\n<li><code>auth_kerb</code></li>\n<li><code>autoindex</code></li>\n<li><code>cache</code></li>\n<li><code>cgi</code></li>\n<li><code>cgid</code></li>\n<li><code>dav</code></li>\n<li><code>dav_fs</code></li>\n<li><code>deflate</code></li>\n<li><code>dir</code>*</li>\n<li><code>disk_cache</code></li>\n<li><code>fcgid</code></li>\n<li><code>info</code></li>\n<li><code>ldap</code></li>\n<li><code>mime</code></li>\n<li><code>mime_magic</code></li>\n<li><code>mpm_event</code></li>\n<li><code>negotiation</code></li>\n<li><code>passenger</code>*</li>\n<li><code>perl</code></li>\n<li><code>php</code> (requires <a href=\"#mpm_module\"><code>mpm_module</code></a> set to <code>prefork</code>)</li>\n<li><code>prefork</code>*</li>\n<li><code>proxy</code>*</li>\n<li><code>proxy_html</code></li>\n<li><code>proxy_http</code></li>\n<li><code>python</code></li>\n<li><code>reqtimeout</code></li>\n<li><code>setenvif</code></li>\n<li><code>ssl</code>* (see <a href=\"#class-apachemodssl\">apache::mod::ssl</a> below)</li>\n<li><code>status</code></li>\n<li><code>suphp</code></li>\n<li><code>userdir</code>*</li>\n<li><code>worker</code>*</li>\n<li><code>wsgi</code> (see <a href=\"#class-apachemodwsgi\">apache::mod::wsgi</a> below)</li>\n<li><code>xsendfile</code></li>\n</ul>\n\n<p>Modules noted with a * indicate that the module has settings and, thus, a template that includes parameters. These parameters control the module&#39;s configuration. Most of the time, these parameters will not require any configuration or attention.</p>\n\n<p>The modules mentioned above, and other Apache modules that have templates, will cause template files to be dropped along with the mod install, and the module will not work without the template. Any mod without a template will install package but drop no files.</p>\n\n<h4>Class: <code>apache::mod::ssl</code></h4>\n\n<p>Installs Apache SSL capabilities and utilizes <code>ssl.conf.erb</code> template</p>\n\n<pre lang=\"puppet\"><code> class { &#39;apache::mod::ssl&#39;: }\n</code></pre>\n\n<p>To <em>use</em> SSL with a virtual host, you must either set the<code>default_ssl_vhost</code> parameter in <code>apache</code> to &#39;true&#39; or set the <code>ssl</code> parameter in <code>apache::vhost</code> to &#39;true&#39;.</p>\n\n<h4>Class: <code>apache::mod::wsgi</code></h4>\n\n<pre lang=\"puppet\"><code> class { &#39;apache::mod::wsgi&#39;:\n wsgi_socket_prefix =&gt; &quot;\\${APACHE_RUN_DIR}WSGI&quot;,\n wsgi_python_home =&gt; &#39;/path/to/virtenv&#39;,\n }\n</code></pre>\n\n<h4>Defined Type: <code>apache::vhost</code></h4>\n\n<p>The Apache module allows a lot of flexibility in the set up and configuration of virtual hosts. This flexibility is due, in part, to <code>vhost</code>&#39;s setup as a defined resource type, which allows it to be evaluated multiple times with different parameters.</p>\n\n<p>The <code>vhost</code> defined type allows you to have specialized configurations for virtual hosts that have requirements outside of the defaults. You can set up a default vhost within the base <code>apache</code> class as well as set a customized vhost setup as default. Your customized vhost (priority 10) will be privileged over the base class vhost (15).</p>\n\n<p>If you have a series of specific configurations and do not want a base <code>apache</code> class default vhost, make sure to set the base class default host to &#39;false&#39;.</p>\n\n<pre lang=\"puppet\"><code> class { &#39;apache&#39;:\n default_vhost =&gt; false,\n }\n</code></pre>\n\n<p><strong>Parameters within <code>apache::vhost</code>:</strong></p>\n\n<p>The default values for each parameter will vary based on operating system and type of virtual host.</p>\n\n<h5><code>access_log</code></h5>\n\n<p>Specifies whether <code>*_access.log</code> directives should be configured. Valid values are &#39;true&#39; and &#39;false&#39;. Defaults to &#39;true&#39;.</p>\n\n<h5><code>access_log_file</code></h5>\n\n<p>Points to the <code>*_access.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_pipe</code></h5>\n\n<p>Specifies a pipe to send access log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_syslog</code></h5>\n\n<p>Sends all access log messages to syslog. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>access_log_format</code></h5>\n\n<p>Specifies either a LogFormat nickname or custom format string for access log. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>add_listen</code></h5>\n\n<p>Determines whether the vhost creates a listen statement. The default value is &#39;true&#39;.</p>\n\n<p>Setting <code>add_listen</code> to &#39;false&#39; stops the vhost from creating a listen statement, and this is important when you combine vhosts that are not passed an <code>ip</code> parameter with vhosts that <em>are</em> passed the <code>ip</code> parameter.</p>\n\n<h5><code>aliases</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>Alias</code> statements as per the <a href=\"http://httpd.apache.org/docs/current/mod/mod_alias.html\"><code>mod_alias</code> documentation</a>. Each hash is expected to be of the form:</p>\n\n<pre lang=\"puppet\"><code>aliases =&gt; [ { alias =&gt; &#39;/alias&#39;, path =&gt; &#39;/path/to/directory&#39; } ],\n</code></pre>\n\n<p>For <code>Alias</code> to work, each will need a corresponding <code>&lt;Directory /path/to/directory&gt;</code> or <code>&lt;Location /path/to/directory&gt;</code> block.</p>\n\n<p><strong>Note:</strong> If <code>apache::mod::passenger</code> is loaded and <code>PassengerHighPerformance true</code> is set, then <code>Alias</code> may have issues honouring the <code>PassengerEnabled off</code> statement. See <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">this article</a> for details.</p>\n\n<h5><code>block</code></h5>\n\n<p>Specifies the list of things Apache will block access to. The default is an empty set, &#39;[]&#39;. Currently, the only option is &#39;scm&#39;, which blocks web access to .svn, .git and .bzr directories. To add to this, please see the <a href=\"#development\">Development</a> section.</p>\n\n<h5><code>custom_fragment</code></h5>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the vhost configuration.</p>\n\n<h5><code>default_vhost</code></h5>\n\n<p>Sets a given <code>apache::vhost</code> as the default to serve requests that do not match any other <code>apache::vhost</code> definitions. The default value is &#39;false&#39;.</p>\n\n<h5><code>directories</code></h5>\n\n<p>Passes a list of hashes to the vhost to create <code>&lt;Directory /path/to/directory&gt;...&lt;/Directory&gt;</code> directive blocks as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#directory\">Apache core documentation</a>. The <code>path</code> key is required in these hashes. Usage will typically look like:</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;sample.example.net&#39;:\n docroot =&gt; &#39;/path/to/directory&#39;,\n directories =&gt; [\n { path =&gt; &#39;/path/to/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n { path =&gt; &#39;/path/to/another/directory&#39;, &lt;directive&gt; =&gt; &lt;value&gt; },\n ],\n }\n</code></pre>\n\n<p><em>Note:</em> At least one directory should match <code>docroot</code> parameter, once you start declaring directories <code>apache::vhost</code> assumes that all required <code>&lt;Directory&gt;</code> blocks will be declared.</p>\n\n<p><em>Note:</em> If not defined a single default <code>&lt;Directory&gt;</code> block will be created that matches the <code>docroot</code> parameter.</p>\n\n<p>The directives will be embedded within the <code>Directory</code> directive block, missing directives should be undefined and not be added, resulting in their default vaules in Apache. Currently this is the list of supported directives:</p>\n\n<h6><code>addhandlers</code></h6>\n\n<p>Sets <code>AddHandler</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addhandler\">Apache Core documentation</a>. Accepts a list of hashes of the form <code>{ handler =&gt; &#39;handler-name&#39;, extensions =&gt; [&#39;extension&#39;]}</code>. Note that <code>extensions</code> is a list of extenstions being handled by the handler.\nAn example:</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;sample.example.net&#39;:\n docroot =&gt; &#39;/path/to/directory&#39;,\n directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;,\n addhandlers =&gt; [ { handler =&gt; &#39;cgi-script&#39;, extensions =&gt; [&#39;.cgi&#39;]} ],\n } ],\n }\n</code></pre>\n\n<h6><code>allow</code></h6>\n\n<p>Sets an <code>Allow</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;sample.example.net&#39;:\n docroot =&gt; &#39;/path/to/directory&#39;,\n directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow =&gt; &#39;from example.org&#39; } ],\n }\n</code></pre>\n\n<h6><code>allow_override</code></h6>\n\n<p>Sets the usage of <code>.htaccess</code> files as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride\">Apache core documentation</a>. Should accept in the form of a list or a string. An example:</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;sample.example.net&#39;:\n docroot =&gt; &#39;/path/to/directory&#39;,\n directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, allow_override =&gt; [&#39;AuthConfig&#39;, &#39;Indexes&#39;] } ],\n }\n</code></pre>\n\n<h6><code>deny</code></h6>\n\n<p>Sets an <code>Deny</code> directive as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#deny\">Apache Core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;sample.example.net&#39;:\n docroot =&gt; &#39;/path/to/directory&#39;,\n directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, deny =&gt; &#39;from example.org&#39; } ],\n }\n</code></pre>\n\n<h6><code>headers</code></h6>\n\n<p>Adds lines for <code>Header</code> directives as per the <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_headers.html#header\">Apache Header documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;sample.example.net&#39;:\n docroot =&gt; &#39;/path/to/directory&#39;,\n directories =&gt; {\n path =&gt; &#39;/path/to/directory&#39;,\n headers =&gt; &#39;Set X-Robots-Tag &quot;noindex, noarchive, nosnippet&quot;&#39;,\n },\n }\n</code></pre>\n\n<h6><code>options</code></h6>\n\n<p>Lists the options for the given <code>&lt;Directory&gt;</code> block</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;sample.example.net&#39;:\n docroot =&gt; &#39;/path/to/directory&#39;,\n directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;] }],\n }\n</code></pre>\n\n<h6><code>order</code></h6>\n\n<p>Sets the order of processing <code>Allow</code> and <code>Deny</code> statements as per <a href=\"http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order\">Apache core documentation</a>. An example:</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;sample.example.net&#39;:\n docroot =&gt; &#39;/path/to/directory&#39;,\n directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, order =&gt; &#39;Allow, Deny&#39; } ],\n }\n</code></pre>\n\n<h6><code>auth_type</code></h6>\n\n<p>Sets the value for <code>AuthType</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#authtype\">Apache AuthType\ndocumentation</a>.</p>\n\n<h6><code>auth_name</code></h6>\n\n<p>Sets the value for <code>AuthName</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#authname\">Apache AuthName\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_algorithm</code></h6>\n\n<p>Sets the value for <code>AuthDigestAlgorithm</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestalgorithm\">Apache\nAuthDigestAlgorithm\ndocumentation</a></p>\n\n<h6><code>auth_digest_domain</code></h6>\n\n<p>Sets the value for <code>AuthDigestDomain</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestdomain\">Apache AuthDigestDomain\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_nonce_lifetime</code></h6>\n\n<p>Sets the value for <code>AuthDigestNonceLifetime</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestnoncelifetime\">Apache\nAuthDigestNonceLifetime\ndocumentation</a></p>\n\n<h6><code>auth_digest_provider</code></h6>\n\n<p>Sets the value for <code>AuthDigestProvider</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestprovider\">Apache AuthDigestProvider\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_qop</code></h6>\n\n<p>Sets the value for <code>AuthDigestQop</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestqop\">Apache AuthDigestQop\ndocumentation</a>.</p>\n\n<h6><code>auth_digest_shmem_size</code></h6>\n\n<p>Sets the value for <code>AuthAuthDigestShmemSize</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html#authdigestshmemsize\">Apache AuthDigestShmemSize\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_authoritative</code></h6>\n\n<p>Sets the value for <code>AuthBasicAuthoritative</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicauthoritative\">Apache\nAuthBasicAuthoritative\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_fake</code></h6>\n\n<p>Sets the value for <code>AuthBasicFake</code> as per the <a href=\"https://httpd.apache.org/docs/trunk/mod/mod_auth_basic.html#authbasicfake\">Apache AuthBasicFake\ndocumentation</a>.</p>\n\n<h6><code>auth_basic_provider</code></h6>\n\n<p>Sets the value for <code>AuthBasicProvider</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicprovider\">Apache AuthBasicProvider\ndocumentation</a>.</p>\n\n<h6><code>auth_user_file</code></h6>\n\n<p>Sets the value for <code>AuthUserFile</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/mod_authn_file.html#authuserfile\">Apache AuthUserFile\ndocumentation</a>.</p>\n\n<h6><code>auth_require</code></h6>\n\n<p>Sets the value for <code>AuthName</code> as per the <a href=\"https://httpd.apache.org/docs/2.2/mod/core.html#require\">Apache Require\ndocumentation</a></p>\n\n<h6><code>passenger_enabled</code></h6>\n\n<p>Sets the value for the <code>PassengerEnabled</code> directory to <code>on</code> or <code>off</code> as per the <a href=\"http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerEnabled\">Passenger documentation</a>.</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;sample.example.net&#39;:\n docroot =&gt; &#39;/path/to/directory&#39;,\n directories =&gt; [ { path =&gt; &#39;/path/to/directory&#39;, passenger_enabled =&gt; &#39;off&#39; } ],\n }\n</code></pre>\n\n<p><strong>Note:</strong> This directive requires <code>apache::mod::passenger</code> to be active, Apache may not start with an unrecognised directive without it.</p>\n\n<p><strong>Note:</strong> Be aware that there is an <a href=\"http://www.conandalton.net/2010/06/passengerenabled-off-not-working.html\">issue</a> using the <code>PassengerEnabled</code> directive with the <code>PassengerHighPerformance</code> directive.</p>\n\n<h6><code>custom_fragment</code></h6>\n\n<p>Pass a string of custom configuration directives to be placed at the end of the\ndirectory configuration.</p>\n\n<h5><code>docroot</code></h5>\n\n<p>Provides the DocumentRoot directive, identifying the directory Apache serves files from.</p>\n\n<h5><code>docroot_group</code></h5>\n\n<p>Sets group access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>docroot_owner</code></h5>\n\n<p>Sets individual user access to the docroot directory. Defaults to &#39;root&#39;.</p>\n\n<h5><code>error_log</code></h5>\n\n<p>Specifies whether <code>*_error.log</code> directives should be configured. Defaults to &#39;true&#39;.</p>\n\n<h5><code>error_log_file</code></h5>\n\n<p>Points to the <code>*_error.log</code> file. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_pipe</code></h5>\n\n<p>Specifies a pipe to send error log messages to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>error_log_syslog</code></h5>\n\n<p>Sends all error log messages to syslog. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ensure</code></h5>\n\n<p>Specifies if the vhost file is present or absent.</p>\n\n<h5><code>ip</code></h5>\n\n<p>The IP address the vhost listens on. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>ip_based</code></h5>\n\n<p>Enables an IP-based vhost. This parameter inhibits the creation of a NameVirtualHost directive, since those are used to funnel requests to name-based vhosts. Defaults to &#39;false&#39;.</p>\n\n<h5><code>logroot</code></h5>\n\n<p>Specifies the location of the virtual host&#39;s logfiles. Defaults to <code>/var/log/&lt;apache log location&gt;/</code>.</p>\n\n<h5><code>no_proxy_uris</code></h5>\n\n<p>Specifies URLs you do not want to proxy. This parameter is meant to be used in combination with <code>proxy_dest</code>.</p>\n\n<h5><code>options</code></h5>\n\n<p>Lists the options for the given virtual host</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;site.name.fdqn&#39;:\n …\n options =&gt; [&#39;Indexes&#39;,&#39;FollowSymLinks&#39;,&#39;MultiViews&#39;],\n }\n</code></pre>\n\n<h5><code>override</code></h5>\n\n<p>Sets the overrides for the given virtual host. Accepts an array of AllowOverride arguments.</p>\n\n<h5><code>port</code></h5>\n\n<p>Sets the port the host is configured on.</p>\n\n<h5><code>priority</code></h5>\n\n<p>Sets the relative load-order for Apache httpd VirtualHost configuration files. Defaults to &#39;25&#39;.</p>\n\n<p>If nothing matches the priority, the first name-based vhost will be used. Likewise, passing a higher priority will cause the alphabetically first name-based vhost to be used if no other names match.</p>\n\n<p><em>Note</em>: You should not need to use this parameter. However, if you do use it, be aware that the <code>default_vhost</code> parameter for <code>apache::vhost</code> passes a priority of &#39;15&#39;.</p>\n\n<h5><code>proxy_dest</code></h5>\n\n<p>Specifies the destination address of a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>proxy_pass</code></h5>\n\n<p>Specifies an array of path =&gt; uri for a proxypass configuration. Defaults to &#39;undef&#39;.</p>\n\n<p>Example:</p>\n\n<pre lang=\"puppet\"><code>$proxy_pass = [\n { &#39;path&#39; =&gt; &#39;/a&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/&#39; },\n { &#39;path&#39; =&gt; &#39;/b&#39;, &#39;url&#39; =&gt; &#39;http://backend-b/&#39; },\n { &#39;path&#39; =&gt; &#39;/c&#39;, &#39;url&#39; =&gt; &#39;http://backend-a/c&#39; }\n]\n\napache::vhost { &#39;site.name.fdqn&#39;:\n …\n proxy_pass =&gt; $proxy_pass,\n}\n</code></pre>\n\n<h5><code>rack_base_uris</code></h5>\n\n<p>Specifies the resource identifiers for a rack configuration. The file paths specified will be listed as rack application roots for passenger/rack in the <code>_rack.erb</code> template. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_dest</code></h5>\n\n<p>Specifies the address to redirect to. Defaults to &#39;undef&#39;.</p>\n\n<h5><code>redirect_source</code></h5>\n\n<p>Specifies the source items? that will redirect to the destination specified in <code>redirect_dest</code>. If more than one item for redirect is supplied, the source and destination must be the same length, and the items are order-dependent.</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;site.name.fdqn&#39;:\n …\n redirect_source =&gt; [&#39;/images&#39;,&#39;/downloads&#39;],\n redirect_dest =&gt; [&#39;http://img.example.com/&#39;,&#39;http://downloads.example.com/&#39;],\n }\n</code></pre>\n\n<h5><code>redirect_status</code></h5>\n\n<p>Specifies the status to append to the redirect. Defaults to &#39;undef&#39;.</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;site.name.fdqn&#39;:\n …\n redirect_status =&gt; [&#39;temp&#39;,&#39;permanent&#39;],\n }\n</code></pre>\n\n<h5><code>request_headers</code></h5>\n\n<p>Specifies additional request headers.</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;site.name.fdqn&#39;:\n …\n request_headers =&gt; [\n &#39;append MirrorID &quot;mirror 12&quot;&#39;,\n &#39;unset MirrorID&#39;,\n ],\n }\n</code></pre>\n\n<h5><code>rewrite_base</code></h5>\n\n<p>Limits the <code>rewrite_rule</code> to the specified base URL. Defaults to &#39;undef&#39;.</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;site.name.fdqn&#39;:\n …\n rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n rewrite_base =&gt; &#39;/blog/&#39;,\n }\n</code></pre>\n\n<p>The above example would limit the index.html -&gt; welcome.html rewrite to only something inside of <a href=\"http://example.com/blog/\">http://example.com/blog/</a>.</p>\n\n<h5><code>rewrite_cond</code></h5>\n\n<p>Rewrites a URL via <code>rewrite_rule</code> based on the truth of specified conditions. For example</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;site.name.fdqn&#39;:\n …\n rewrite_cond =&gt; &#39;%{HTTP_USER_AGENT} ^MSIE&#39;,\n }\n</code></pre>\n\n<p>will rewrite URLs only if the visitor is using IE. Defaults to &#39;undef&#39;.</p>\n\n<p><em>Note</em>: At the moment, each vhost is limited to a single list of rewrite conditions. In the future, you will be able to specify multiple <code>rewrite_cond</code> and <code>rewrite_rules</code> per vhost, so that different conditions get different rewrites.</p>\n\n<h5><code>rewrite_rule</code></h5>\n\n<p>Creates URL rewrite rules. Defaults to &#39;undef&#39;. This parameter allows you to specify, for example, that anyone trying to access index.html will be served welcome.html.</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;site.name.fdqn&#39;:\n …\n rewrite_rule =&gt; &#39;^index\\.html$ welcome.html&#39;,\n }\n</code></pre>\n\n<h5><code>scriptalias</code></h5>\n\n<p>Defines a directory of CGI scripts to be aliased to the path &#39;/cgi-bin&#39;</p>\n\n<h5><code>serveradmin</code></h5>\n\n<p>Specifies the email address Apache will display when it renders one of its error pages.</p>\n\n<h5><code>serveraliases</code></h5>\n\n<p>Sets the server aliases of the site.</p>\n\n<h5><code>servername</code></h5>\n\n<p>Sets the primary name of the virtual host.</p>\n\n<h5><code>setenv</code></h5>\n\n<p>Used by HTTPD to set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>setenvif</code></h5>\n\n<p>Used by HTTPD to conditionally set environment variables for vhosts. Defaults to &#39;[]&#39;.</p>\n\n<h5><code>ssl</code></h5>\n\n<p>Enables SSL for the virtual host. SSL vhosts only respond to HTTPS queries. Valid values are &#39;true&#39; or &#39;false&#39;.</p>\n\n<h5><code>ssl_ca</code></h5>\n\n<p>Specifies the certificate authority.</p>\n\n<h5><code>ssl_cert</code></h5>\n\n<p>Specifies the SSL certification.</p>\n\n<h5><code>ssl_certs_dir</code></h5>\n\n<p>Specifies the location of the SSL certification directory. Defaults to <code>/etc/ssl/certs</code>.</p>\n\n<h5><code>ssl_chain</code></h5>\n\n<p>Specifies the SSL chain.</p>\n\n<h5><code>ssl_crl</code></h5>\n\n<p>Specifies the certificate revocation list to use.</p>\n\n<h5><code>ssl_crl_path</code></h5>\n\n<p>Specifies the location of the certificate revocation list.</p>\n\n<h5><code>ssl_key</code></h5>\n\n<p>Specifies the SSL key.</p>\n\n<h5><code>sslproxyengine</code></h5>\n\n<p>Specifies whether to use <code>SSLProxyEngine</code> or not. Defaults to <code>false</code>.</p>\n\n<h5><code>vhost_name</code></h5>\n\n<p>This parameter is for use with name-based virtual hosting. Defaults to &#39;*&#39;.</p>\n\n<h5><code>itk</code></h5>\n\n<p>Hash containing infos to configure itk as per the <a href=\"http://mpm-itk.sesse.net/\">ITK documentation</a>.</p>\n\n<p>Keys could be:</p>\n\n<ul>\n<li>user + group</li>\n<li>assignuseridexpr</li>\n<li>assigngroupidexpr</li>\n<li>maxclientvhost</li>\n<li>nice</li>\n<li>limituidrange (Linux 3.5.0 or newer)</li>\n<li>limitgidrange (Linux 3.5.0 or newer)</li>\n</ul>\n\n<p>Usage will typically look like:</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;sample.example.net&#39;:\n docroot =&gt; &#39;/path/to/directory&#39;,\n itk =&gt; {\n user =&gt; &#39;someuser&#39;,\n group =&gt; &#39;somegroup&#39;,\n },\n }\n</code></pre>\n\n<h3>Virtual Host Examples</h3>\n\n<p>The Apache module allows you to set up pretty much any configuration of virtual host you might desire. This section will address some common configurations. Please see the <a href=\"https://github.com/puppetlabs/puppetlabs-apache/tree/master/tests\">Tests section</a> for even more examples.</p>\n\n<p>Configure a vhost with a server administrator</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;third.example.com&#39;:\n port =&gt; &#39;80&#39;,\n docroot =&gt; &#39;/var/www/third&#39;,\n serveradmin =&gt; &#39;admin@example.com&#39;,\n }\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with aliased servers</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;sixth.example.com&#39;:\n serveraliases =&gt; [\n &#39;sixth.example.org&#39;,\n &#39;sixth.example.net&#39;,\n ],\n port =&gt; &#39;80&#39;,\n docroot =&gt; &#39;/var/www/fifth&#39;,\n }\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost with a cgi-bin</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;eleventh.example.com&#39;:\n port =&gt; &#39;80&#39;,\n docroot =&gt; &#39;/var/www/eleventh&#39;,\n scriptalias =&gt; &#39;/usr/lib/cgi-bin&#39;,\n }\n</code></pre>\n\n<hr>\n\n<p>Set up a vhost with a rack configuration</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;fifteenth.example.com&#39;:\n port =&gt; &#39;80&#39;,\n docroot =&gt; &#39;/var/www/fifteenth&#39;,\n rack_base_uris =&gt; [&#39;/rackapp1&#39;, &#39;/rackapp2&#39;],\n }\n</code></pre>\n\n<hr>\n\n<p>Set up a mix of SSL and non-SSL vhosts at the same domain</p>\n\n<pre lang=\"puppet\"><code> #The non-ssl vhost\n apache::vhost { &#39;first.example.com non-ssl&#39;:\n servername =&gt; &#39;first.example.com&#39;,\n port =&gt; &#39;80&#39;,\n docroot =&gt; &#39;/var/www/first&#39;,\n }\n\n #The SSL vhost at the same domain\n apache::vhost { &#39;first.example.com ssl&#39;:\n servername =&gt; &#39;first.example.com&#39;,\n port =&gt; &#39;443&#39;,\n docroot =&gt; &#39;/var/www/first&#39;,\n ssl =&gt; true,\n }\n</code></pre>\n\n<hr>\n\n<p>Configure a vhost to redirect non-SSL connections to SSL</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;sixteenth.example.com non-ssl&#39;:\n servername =&gt; &#39;sixteenth.example.com&#39;,\n port =&gt; &#39;80&#39;,\n docroot =&gt; &#39;/var/www/sixteenth&#39;,\n redirect_status =&gt; &#39;permanent&#39;\n redirect_dest =&gt; &#39;https://sixteenth.example.com/&#39;\n }\n apache::vhost { &#39;sixteenth.example.com ssl&#39;:\n servername =&gt; &#39;sixteenth.example.com&#39;,\n port =&gt; &#39;443&#39;,\n docroot =&gt; &#39;/var/www/sixteenth&#39;,\n ssl =&gt; true,\n }\n</code></pre>\n\n<hr>\n\n<p>Set up IP-based vhosts on any listen port and have them respond to requests on specific IP addresses. In this example, we will set listening on ports 80 and 81. This is required because the example vhosts are not declared with a port parameter.</p>\n\n<pre lang=\"puppet\"><code> apache::listen { &#39;80&#39;: }\n apache::listen { &#39;81&#39;: }\n</code></pre>\n\n<p>Then we will set up the IP-based vhosts</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;first.example.com&#39;:\n ip =&gt; &#39;10.0.0.10&#39;,\n docroot =&gt; &#39;/var/www/first&#39;,\n ip_based =&gt; true,\n }\n apache::vhost { &#39;second.example.com&#39;:\n ip =&gt; &#39;10.0.0.11&#39;,\n docroot =&gt; &#39;/var/www/second&#39;,\n ip_based =&gt; true,\n }\n</code></pre>\n\n<hr>\n\n<p>Configure a mix of name-based and IP-based vhosts. First, we will add two IP-based vhosts on 10.0.0.10, one SSL and one non-SSL</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;The first IP-based vhost, non-ssl&#39;:\n servername =&gt; &#39;first.example.com&#39;,\n ip =&gt; &#39;10.0.0.10&#39;,\n port =&gt; &#39;80&#39;,\n ip_based =&gt; true,\n docroot =&gt; &#39;/var/www/first&#39;,\n }\n apache::vhost { &#39;The first IP-based vhost, ssl&#39;:\n servername =&gt; &#39;first.example.com&#39;,\n ip =&gt; &#39;10.0.0.10&#39;,\n port =&gt; &#39;443&#39;,\n ip_based =&gt; true,\n docroot =&gt; &#39;/var/www/first-ssl&#39;,\n ssl =&gt; true,\n }\n</code></pre>\n\n<p>Then, we will add two name-based vhosts listening on 10.0.0.20</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;second.example.com&#39;:\n ip =&gt; &#39;10.0.0.20&#39;,\n port =&gt; &#39;80&#39;,\n docroot =&gt; &#39;/var/www/second&#39;,\n }\n apache::vhost { &#39;third.example.com&#39;:\n ip =&gt; &#39;10.0.0.20&#39;,\n port =&gt; &#39;80&#39;,\n docroot =&gt; &#39;/var/www/third&#39;,\n }\n</code></pre>\n\n<p>If you want to add two name-based vhosts so that they will answer on either 10.0.0.10 or 10.0.0.20, you <strong>MUST</strong> declare <code>add_listen =&gt; &#39;false&#39;</code> to disable the otherwise automatic &#39;Listen 80&#39;, as it will conflict with the preceding IP-based vhosts.</p>\n\n<pre lang=\"puppet\"><code> apache::vhost { &#39;fourth.example.com&#39;:\n port =&gt; &#39;80&#39;,\n docroot =&gt; &#39;/var/www/fourth&#39;,\n add_listen =&gt; false,\n }\n apache::vhost { &#39;fifth.example.com&#39;:\n port =&gt; &#39;80&#39;,\n docroot =&gt; &#39;/var/www/fifth&#39;,\n add_listen =&gt; false,\n }\n</code></pre>\n\n<h2>Implementation</h2>\n\n<h3>Classes and Defined Types</h3>\n\n<h4>Class: <code>apache::dev</code></h4>\n\n<p>Installs Apache development libraries</p>\n\n<pre lang=\"puppet\"><code> class { &#39;apache::dev&#39;: }\n</code></pre>\n\n<h4>Defined Type: <code>apache::listen</code></h4>\n\n<p>Controls which ports Apache binds to for listening based on the title:</p>\n\n<pre lang=\"puppet\"><code> apache::listen { &#39;80&#39;: }\n apache::listen { &#39;443&#39;: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>Listen</code> directives to the <code>ports.conf</code> file in the Apache httpd configuration directory. <code>apache::listen</code> titles should always take the form of: <code>&lt;port&gt;</code>, <code>&lt;ipv4&gt;:&lt;port&gt;</code>, or <code>[&lt;ipv6&gt;]:&lt;port&gt;</code></p>\n\n<p>Apache httpd requires that <code>Listen</code> directives must be added for every port. The <code>apache::vhost</code> defined type will automatically add <code>Listen</code> directives unless the <code>apache::vhost</code> is passed <code>add_listen =&gt; false</code>.</p>\n\n<h4>Defined Type: <code>apache::namevirtualhost</code></h4>\n\n<p>Enables named-based hosting of a virtual host</p>\n\n<pre lang=\"puppet\"><code> class { &#39;apache::namevirtualhost`: }\n</code></pre>\n\n<p>Declaring this defined type will add all <code>NameVirtualHost</code> directives to the <code>ports.conf</code> file in the Apache https configuration directory. <code>apache::namevirtualhost</code> titles should always take the form of: <code>*</code>, <code>*:&lt;port&gt;</code>, <code>_default_:&lt;port&gt;</code>, <code>&lt;ip&gt;</code>, or <code>&lt;ip&gt;:&lt;port&gt;</code>.</p>\n\n<h4>Defined Type: <code>apache::balancermember</code></h4>\n\n<p>Define members of a proxy_balancer set (mod_proxy_balancer). Very useful when using exported resources.</p>\n\n<p>On every app server you can export a balancermember like this:</p>\n\n<pre lang=\"puppet\"><code> @@apache::balancermember { &quot;${::fqdn}-puppet00&quot;:\n balancer_cluster =&gt; &#39;puppet00&#39;,\n url =&gt; &quot;ajp://${::fqdn}:8009&quot;\n options =&gt; [&#39;ping=5&#39;, &#39;disablereuse=on&#39;, &#39;retry=5&#39;, &#39;ttl=120&#39;],\n }\n</code></pre>\n\n<p>And on the proxy itself you create the balancer cluster using the defined type apache::balancer:</p>\n\n<pre lang=\"puppet\"><code> apache::balancer { &#39;puppet00&#39;: }\n</code></pre>\n\n<p>If you need to use ProxySet in the balncer config you can do as so:</p>\n\n<pre lang=\"puppet\"><code> apache::balancer { &#39;puppet01&#39;:\n proxy_set =&gt; {&#39;stickysession&#39; =&gt; &#39;JSESSIONID&#39;},\n }\n</code></pre>\n\n<h3>Templates</h3>\n\n<p>The Apache module relies heavily on templates to enable the <code>vhost</code> and <code>apache::mod</code> defined types. These templates are built based on Facter facts around your operating system. Unless explicitly called out, most templates are not meant for configuration.</p>\n\n<h2>Limitations</h2>\n\n<p>This has been tested on Ubuntu Precise, Debian Wheezy, and CentOS 5.8.</p>\n\n<h2>Development</h2>\n\n<h3>Overview</h3>\n\n<p>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.</p>\n\n<p>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.</p>\n\n<p>You can read the complete module contribution guide <a href=\"http://projects.puppetlabs.com/projects/module-site/wiki/Module_contributing\">on the Puppet Labs wiki.</a></p>\n\n<h3>Running tests</h3>\n\n<p>This project contains tests for both <a href=\"http://rspec-puppet.com/\">rspec-puppet</a> and <a href=\"https://github.com/puppetlabs/rspec-system\">rspec-system</a> to verify functionality. For in-depth information please see their respective documentation.</p>\n\n<p>Quickstart:</p>\n\n<pre><code>gem install bundler\nbundle install\nbundle exec rake spec\nbundle exec rake spec:system\n</code></pre>\n\n<h2>Copyright and License</h2>\n\n<p>Copyright (C) 2012 <a href=\"https://www.puppetlabs.com/\">Puppet Labs</a> Inc</p>\n\n<p>Puppet Labs can be contacted at: <a href=\"mailto:info@puppetlabs.com\">info@puppetlabs.com</a></p>\n\n<p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at</p>\n\n<p><a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\n\n<p>Unless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.</p>\n</section>",
2739
+ "changelog": null,
2740
+ "license": "<section class=\"plaintext\"><pre>Copyright (C) 2012 Puppet Labs Inc\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
2741
+ "created_at": "2013-09-06 14:49:24 -0700",
2742
+ "updated_at": "2013-09-06 14:49:24 -0700",
2743
+ "deleted_at": null
2744
+ },
2745
+ {
2746
+ "uri": "/v3/releases/puppetlabs-inifile-1.0.0",
2747
+ "module": {
2748
+ "uri": "/v3/modules/puppetlabs-inifile",
2749
+ "name": "inifile",
2750
+ "owner": {
2751
+ "uri": "/v3/users/puppetlabs",
2752
+ "username": "puppetlabs",
2753
+ "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
2754
+ }
2755
+ },
2756
+ "version": "1.0.0",
2757
+ "metadata": {
2758
+ "name": "puppetlabs-inifile",
2759
+ "version": "1.0.0",
2760
+ "source": "git://github.com/puppetlabs/puppetlabs-inifile.git",
2761
+ "author": "Puppetlabs",
2762
+ "license": "Apache",
2763
+ "summary": "Resource types for managing settings in INI files",
2764
+ "description": "Resource types for managing settings in INI files",
2765
+ "project_page": "https://github.com/puppetlabs/puppetlabs-inifile",
2766
+ "dependencies": [
2767
+
2768
+ ],
2769
+ "types": [
2770
+ {
2771
+ "name": "ini_setting",
2772
+ "doc": "",
2773
+ "properties": [
2774
+ {
2775
+ "name": "ensure",
2776
+ "doc": "The basic property that the resource should be in. Valid values are `present`, `absent`."
2777
+ },
2778
+ {
2779
+ "name": "value",
2780
+ "doc": "The value of the setting to be defined."
2781
+ }
2782
+ ],
2783
+ "parameters": [
2784
+ {
2785
+ "name": "name",
2786
+ "doc": "An arbitrary name used as the identity of the resource."
2787
+ },
2788
+ {
2789
+ "name": "section",
2790
+ "doc": "The name of the section in the ini file in which the setting should be defined."
2791
+ },
2792
+ {
2793
+ "name": "setting",
2794
+ "doc": "The name of the setting to be defined."
2795
+ },
2796
+ {
2797
+ "name": "path",
2798
+ "doc": "The ini file Puppet will ensure contains the specified setting."
2799
+ },
2800
+ {
2801
+ "name": "key_val_separator",
2802
+ "doc": "The separator string to use between each setting name and value. Defaults to \" = \", but you could use this to override e.g. whether or not the separator should include whitespace."
2803
+ }
2804
+ ],
2805
+ "providers": [
2806
+ {
2807
+ "name": "ruby",
2808
+ "doc": ""
2809
+ }
2810
+ ]
2811
+ },
2812
+ {
2813
+ "name": "ini_subsetting",
2814
+ "doc": "",
2815
+ "properties": [
2816
+ {
2817
+ "name": "ensure",
2818
+ "doc": "The basic property that the resource should be in. Valid values are `present`, `absent`."
2819
+ },
2820
+ {
2821
+ "name": "value",
2822
+ "doc": "The value of the subsetting to be defined."
2823
+ }
2824
+ ],
2825
+ "parameters": [
2826
+ {
2827
+ "name": "name",
2828
+ "doc": "An arbitrary name used as the identity of the resource."
2829
+ },
2830
+ {
2831
+ "name": "section",
2832
+ "doc": "The name of the section in the ini file in which the setting should be defined."
2833
+ },
2834
+ {
2835
+ "name": "setting",
2836
+ "doc": "The name of the setting to be defined."
2837
+ },
2838
+ {
2839
+ "name": "subsetting",
2840
+ "doc": "The name of the subsetting to be defined."
2841
+ },
2842
+ {
2843
+ "name": "subsetting_separator",
2844
+ "doc": "The separator string between subsettings. Defaults to \" \""
2845
+ },
2846
+ {
2847
+ "name": "path",
2848
+ "doc": "The ini file Puppet will ensure contains the specified setting."
2849
+ },
2850
+ {
2851
+ "name": "key_val_separator",
2852
+ "doc": "The separator string to use between each setting name and value. Defaults to \" = \", but you could use this to override e.g. whether or not the separator should include whitespace."
2853
+ }
2854
+ ],
2855
+ "providers": [
2856
+ {
2857
+ "name": "ruby",
2858
+ "doc": ""
2859
+ }
2860
+ ]
2861
+ }
2862
+ ],
2863
+ "checksums": {
2864
+ "CHANGELOG": "1d2ab7d31e0fa7b96ff2e62a59890585",
2865
+ "Gemfile": "144b186b7315b993411af56fd3fe17ba",
2866
+ "Gemfile.lock": "805305e11bd3eb3ccf93779e06dec330",
2867
+ "LICENSE": "519b25a3992e0598a9855e4ccd7f66a1",
2868
+ "Modulefile": "db6005147c078f60dd4d33819941ffd0",
2869
+ "README.markdown": "a373118f66eed7b342fad96bc3885584",
2870
+ "Rakefile": "0254db5d3fc38c67a2c160d7296a24f8",
2871
+ "lib/puppet/provider/ini_setting/ruby.rb": "19174eb75e2efa2f1e5935cd694ee87a",
2872
+ "lib/puppet/provider/ini_subsetting/ruby.rb": "99991c9d3ccf54c2aa1fcacf491d0cfc",
2873
+ "lib/puppet/type/ini_setting.rb": "afcd3f28b946b08db1b48fb189e6d8cf",
2874
+ "lib/puppet/type/ini_subsetting.rb": "b4e6a659f461bcd274dcdf1b1c39db65",
2875
+ "lib/puppet/util/external_iterator.rb": "69ad1eb930ca6d8d6b6faea343b4a22e",
2876
+ "lib/puppet/util/ini_file/section.rb": "77757399ed9b9ce352ddcc8b8f9273c4",
2877
+ "lib/puppet/util/ini_file.rb": "911c2fabc08bded5e364158eb49e97c4",
2878
+ "lib/puppet/util/setting_value.rb": "a9db550b94d66164b8643612dbf7cbb2",
2879
+ "spec/classes/inherit_test1_spec.rb": "56bbfd63e770b180abc3fd7e331de2fb",
2880
+ "spec/fixtures/modules/inherit_ini_setting/lib/puppet/provider/inherit_ini_setting/ini_setting.rb": "15949e27a64f4768a65fc01ca8d0c90d",
2881
+ "spec/fixtures/modules/inherit_ini_setting/lib/puppet/type/inherit_ini_setting.rb": "90f25ea0e389688a0df74f23a5ad18e7",
2882
+ "spec/fixtures/modules/inherit_test1/manifests/init.pp": "ece5099a0da66d65a05055d22485756c",
2883
+ "spec/spec_helper.rb": "3a33176450601775fcc0932340df9f74",
2884
+ "spec/unit/puppet/provider/ini_setting/inheritance_spec.rb": "bbe2fb9d6805ae8cae85271e48f646b3",
2885
+ "spec/unit/puppet/provider/ini_setting/ruby_spec.rb": "1c82228947d3d7bd32ee333068aff7f0",
2886
+ "spec/unit/puppet/provider/ini_subsetting/ruby_spec.rb": "b05cf15a5830feb249ad7177f7d966ca",
2887
+ "spec/unit/puppet/util/external_iterator_spec.rb": "35cc6e56e0064e496e9151dd778f751f",
2888
+ "spec/unit/puppet/util/ini_file_spec.rb": "9090ada5867eb0333f3c543a7fd11a53",
2889
+ "spec/unit/puppet/util/setting_value_spec.rb": "64db9b766063db958e73e713a3e584fa",
2890
+ "tests/ini_setting.pp": "9c8a9d2c453901cedb106cada253f1f6",
2891
+ "tests/ini_subsetting.pp": "71c82234fa8bb8cb442ff01436ce2cf3"
2892
+ }
2893
+ },
2894
+ "tags": [
2895
+ "inifile",
2896
+ "ini",
2897
+ "settings",
2898
+ "file",
2899
+ "subsettings"
2900
+ ],
2901
+ "file_uri": "/v3/files/puppetlabs-inifile-1.0.0.tar.gz",
2902
+ "file_size": 20568,
2903
+ "file_md5": "7cf55f8c280c1f4cb9abb5d40c8f0986",
2904
+ "downloads": 18255,
2905
+ "readme": "<section class=\"markdown\"><p><a href=\"https://travis-ci.org/cprice-puppet/puppetlabs-inifile\"><img src=\"https://travis-ci.org/puppetlabs/puppetlabs-inifile.png?branch=master\" alt=\"Build Status\"></a></p>\n\n<h1>INI-file module</h1>\n\n<p>This module provides resource types for use in managing INI-style configuration\nfiles. The main resource type is <code>ini_setting</code>, which is used to manage an\nindividual setting in an INI file. Here&#39;s an example usage:</p>\n\n<pre><code>ini_setting { &quot;sample setting&quot;:\n path =&gt; &#39;/tmp/foo.ini&#39;,\n section =&gt; &#39;foo&#39;,\n setting =&gt; &#39;foosetting&#39;,\n value =&gt; &#39;FOO!&#39;,\n ensure =&gt; present,\n}\n</code></pre>\n\n<p>A supplementary resource type is <code>ini_subsetting</code>, which is used to manage\nsettings that consist of several arguments such as</p>\n\n<pre><code>JAVA_ARGS=&quot;-Xmx192m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/pe-puppetdb/puppetdb-oom.hprof &quot;\n\nini_subsetting {&#39;sample subsetting&#39;:\n ensure =&gt; present,\n section =&gt; &#39;&#39;,\n key_val_separator =&gt; &#39;=&#39;,\n path =&gt; &#39;/etc/default/pe-puppetdb&#39;,\n setting =&gt; &#39;JAVA_ARGS&#39;,\n subsetting =&gt; &#39;-Xmx&#39;,\n value =&gt; &#39;512m&#39;,\n}\n</code></pre>\n\n<h2>implementing child providers:</h2>\n\n<p>The ini_setting class can be overridden by child providers in order to implement the management of ini settings for a specific configuration file.</p>\n\n<p>In order to implement this, you will need to specify your own Type (as shown below). This type needs to implement a namevar (name), and a property called value:</p>\n\n<p>example:</p>\n\n<pre><code>#my_module/lib/puppet/type/glance_api_config.rb\nPuppet::Type.newtype(:glance_api_config) do\n ensurable\n newparam(:name, :namevar =&gt; true) do\n desc &#39;Section/setting name to manage from glance-api.conf&#39;\n # namevar should be of the form section/setting\n newvalues(/\\S+\\/\\S+/)\n end\n newproperty(:value) do\n desc &#39;The value of the setting to be defined.&#39;\n munge do |v|\n v.to_s.strip\n end\n end\nend\n</code></pre>\n\n<p>This type also must have a provider that utilizes the ini_setting provider as its parent:</p>\n\n<p>example:</p>\n\n<pre><code># my_module/lib/puppet/provider/glance_api_config/ini_setting.rb\nPuppet::Type.type(:glance_api_config).provide(\n :ini_setting,\n # set ini_setting as the parent provider\n :parent =&gt; Puppet::Type.type(:ini_setting).provider(:ruby)\n) do\n # implement section as the first part of the namevar\n def section\n resource[:name].split(&#39;/&#39;, 2).first\n end\n def setting\n # implement setting as the second part of the namevar\n resource[:name].split(&#39;/&#39;, 2).last\n end\n # hard code the file path (this allows purging)\n def self.file_path\n &#39;/etc/glance/glance-api.conf&#39;\n end\nend\n</code></pre>\n\n<p>Now, the individual settings of the /etc/glance/glance-api.conf file can be managed as individual resources:</p>\n\n<pre><code>glance_api_config { &#39;HEADER/important_config&#39;:\n value =&gt; &#39;secret_value&#39;,\n}\n</code></pre>\n\n<p>Provided that self.file_path has been implemented, you can purge with the following puppet syntax:</p>\n\n<pre><code>resources { &#39;glance_api_config&#39;\n purge =&gt; true,\n}\n</code></pre>\n\n<p>If the above code is added, then the resulting configured file will only contain lines implemented as Puppet resources</p>\n\n<h2>A few noteworthy features:</h2>\n\n<ul>\n<li>The module tries <em>hard</em> not to manipulate your file any more than it needs to.\nIn most cases, it should leave the original whitespace, comments, ordering,\netc. perfectly intact.</li>\n<li>Supports comments starting with either &#39;#&#39; or &#39;;&#39;.</li>\n<li>Will add missing sections if they don&#39;t exist.</li>\n<li>Supports a &quot;global&quot; section (settings that go at the beginning of the file,\nbefore any named sections) by specifying a section name of &quot;&quot;.</li>\n</ul>\n</section>",
2906
+ "changelog": "<section class=\"plaintext\"><pre>2013-07-16 - Version 1.0.0\nFeatures:\n- Handle empty values.\n- Handle whitespace in settings names (aka: server role = something)\n- Add mechanism for allowing ini_setting subclasses to override the\nformation of the namevar during .instances, to allow for ini_setting\nderived types that manage flat ini-file-like files and still purge\nthem.\n\n2013-05-28 - Chris Price &lt;chris@puppetlabs.com&gt; - 0.10.3\n * Fix bug in subsetting handling for new settings (cbea5dc)\n\n2013-05-22 - Chris Price &lt;chris@puppetlabs.com&gt; - 0.10.2\n * Better handling of quotes for subsettings (1aa7e60)\n\n2013-05-21 - Chris Price &lt;chris@puppetlabs.com&gt; - 0.10.1\n * Change constants to class variables to avoid ruby warnings (6b19864)\n\n2013-04-10 - Erik Dalén &lt;dalen@spotify.com&gt; - 0.10.1\n * Style fixes (c4af8c3)\n\n2013-04-02 - Dan Bode &lt;dan@puppetlabs.com&gt; - 0.10.1\n * Add travisfile and Gemfile (c2052b3)\n\n2013-04-02 - Chris Price &lt;chris@puppetlabs.com&gt; - 0.10.1\n * Update README.markdown (ad38a08)\n\n2013-02-15 - Karel Brezina &lt;karel.brezina@gmail.com&gt; - 0.10.0\n * Added &#x27;ini_subsetting&#x27; custom resource type (4351d8b)\n\n2013-03-11 - Dan Bode &lt;dan@puppetlabs.com&gt; - 0.10.0\n * guard against nil indentation values (5f71d7f)\n\n2013-01-07 - Dan Bode &lt;dan@puppetlabs.com&gt; - 0.10.0\n * Add purging support to ini file (2f22483)\n\n2013-02-05 - James Sweeny &lt;james.sweeny@puppetlabs.com&gt; - 0.10.0\n * Fix test to use correct key_val_parameter (b1aff63)\n\n2012-11-06 - Chris Price &lt;chris@puppetlabs.com&gt; - 0.10.0\n * Added license file w&#x2F;Apache 2.0 license (5e1d203)\n\n2012-11-02 - Chris Price &lt;chris@puppetlabs.com&gt; - 0.9.0\n * Version 0.9.0 released\n\n2012-10-26 - Chris Price &lt;chris@puppetlabs.com&gt; - 0.9.0\n * Add detection for commented versions of settings (a45ab65)\n\n2012-10-20 - Chris Price &lt;chris@puppetlabs.com&gt; - 0.9.0\n * Refactor to clarify implementation of `save` (f0d443f)\n\n2012-10-20 - Chris Price &lt;chris@puppetlabs.com&gt; - 0.9.0\n * Add example for `ensure=absent` (e517148)\n\n2012-10-20 - Chris Price &lt;chris@puppetlabs.com&gt; - 0.9.0\n * Better handling of whitespace lines at ends of sections (845fa70)\n\n2012-10-20 - Chris Price &lt;chris@puppetlabs.com&gt; - 0.9.0\n * Respect indentation &#x2F; spacing for existing sections and settings (c2c26de)\n\n2012-10-17 - Chris Price &lt;chris@puppetlabs.com&gt; - 0.9.0\n * Minor tweaks to handling of removing settings (cda30a6)\n\n2012-10-10 - Dan Bode &lt;dan@puppetlabs.com&gt; - 0.9.0\n * Add support for removing lines (1106d70)\n\n2012-10-02 - Dan Bode &lt;dan@puppetlabs.com&gt; - 0.9.0\n * Make value a property (cbc90d3)\n\n2012-10-02 - Dan Bode &lt;dan@puppetlabs.com&gt; - 0.9.0\n * Make ruby provider a better parent. (1564c47)\n\n2012-09-29 - Reid Vandewiele &lt;reid@puppetlabs.com&gt; - 0.9.0\n * Allow values with spaces to be parsed and set (3829e20)\n\n2012-09-24 - Chris Price &lt;chris@pupppetlabs.com&gt; - 0.0.3\n * Version 0.0.3 released\n\n2012-09-20 - Chris Price &lt;chris@puppetlabs.com&gt; - 0.0.3\n * Add validation for key_val_separator (e527908)\n\n2012-09-19 - Chris Price &lt;chris@puppetlabs.com&gt; - 0.0.3\n * Allow overriding separator string between key&#x2F;val pairs (8d1fdc5)\n\n2012-08-20 - Chris Price &lt;chris@pupppetlabs.com&gt; - 0.0.2\n * Version 0.0.2 released\n\n2012-08-17 - Chris Price &lt;chris@pupppetlabs.com&gt; - 0.0.2\n * Add support for &quot;global&quot; section at beginning of file (c57dab4)\n</pre></section>",
2907
+ "license": "<section class=\"plaintext\"><pre> Apache License\n Version 2.0, January 2004\n http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n &quot;License&quot; shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n &quot;Licensor&quot; shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n &quot;Legal Entity&quot; shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n &quot;control&quot; means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n &quot;You&quot; (or &quot;Your&quot;) shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n &quot;Source&quot; form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n &quot;Object&quot; form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n &quot;Work&quot; shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n &quot;Derivative Works&quot; shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n &quot;Contribution&quot; shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, &quot;submitted&quot;\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as &quot;Not a Contribution.&quot;\n\n &quot;Contributor&quot; shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a &quot;NOTICE&quot; text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an &quot;AS IS&quot; BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and&#x2F;or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets &quot;[]&quot;\n replaced with your own identifying information. (Don&#x27;t include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same &quot;printed page&quot; as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2012 Chris Price\n\n Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an &quot;AS IS&quot; BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n</pre></section>",
2908
+ "created_at": "2013-07-17 05:26:51 -0700",
2909
+ "updated_at": "2013-07-17 05:26:51 -0700",
2910
+ "deleted_at": null
2911
+ },
2912
+ {
2913
+ "uri": "/v3/releases/puppetlabs-mongodb-0.1.0",
2914
+ "module": {
2915
+ "uri": "/v3/modules/puppetlabs-mongodb",
2916
+ "name": "mongodb",
2917
+ "owner": {
2918
+ "uri": "/v3/users/puppetlabs",
2919
+ "username": "puppetlabs",
2920
+ "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec"
2921
+ }
2922
+ },
2923
+ "version": "0.1.0",
2924
+ "metadata": {
2925
+ "checksums": {
2926
+ "Modulefile": "5fc5f4dc58d95e1eda99915db1c7958a",
2927
+ "manifests/sources/yum.pp": "1705a4bbf4403d0ecdd0ed786aa8e20f",
2928
+ "Rakefile": "0254db5d3fc38c67a2c160d7296a24f8",
2929
+ "manifests/init.pp": "c48460e24a2ce1b8a31b2fc54552852b",
2930
+ "tests/sources/yum.pp": "1daacf2de2c2d718345010fc5ce73245",
2931
+ "spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",
2932
+ "tests/init.pp": "c29e4762855114f0111961d495abcf65",
2933
+ "README.md": "0f38e45f2d429354d71a12cf488a03bf",
2934
+ "manifests/params.pp": "546588b8fcec2505809ffa6b090b3ceb",
2935
+ "CHANGELOG": "5ad3778c792b1a1de5440577057f8090",
2936
+ "tests/sources/apt.pp": "bcd51d9fcb2cef9af29f0acc08e36c85",
2937
+ "manifests/sources/apt.pp": "43f39c1438902fd1735a9f1e81eb91e9",
2938
+ "templates/mongod.conf.erb": "8798b9c0f386ad75e9b0f0c277deff55",
2939
+ "spec/fixtures/hiera.yaml": "5c6a20f757d1c94c1233af257b97d3c3",
2940
+ "spec/classes/mongodb_spec.rb": "aa53243aad016d53d46fbff023352693",
2941
+ "LICENSE": "b3f8a01d8699078d82e8c3c992307517"
2942
+ },
2943
+ "license": "Apache License Version 2.0",
2944
+ "version": "0.1.0",
2945
+ "types": [
2946
+
2947
+ ],
2948
+ "dependencies": [
2949
+ {
2950
+ "version_requirement": ">= 0.0.2",
2951
+ "name": "puppetlabs/apt"
2952
+ }
2953
+ ],
2954
+ "summary": "mongodb puppet module",
2955
+ "source": "git@github.com:puppetlabs/puppetlabs-mongodb.git",
2956
+ "project_page": "https://github.com/puppetlabs/puppetlabs-mongodb",
2957
+ "description": "10gen mongodb puppet module",
2958
+ "author": "puppetlabs",
2959
+ "name": "puppetlabs-mongodb"
2960
+ },
2961
+ "tags": [
2962
+ "mongodb"
2963
+ ],
2964
+ "file_uri": "/v3/files/puppetlabs-mongodb-0.1.0.tar.gz",
2965
+ "file_size": 5148,
2966
+ "file_md5": "ffe6895b48238da59fa195fe86e04c21",
2967
+ "downloads": 18113,
2968
+ "readme": "<section class=\"markdown\"><h1>mongodb puppet module</h1>\n\n<h2>Overview</h2>\n\n<p>Installs mongodb on Ubuntu/Debian from OS repo, or alternatively per 10gen <a href=\"http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages\">installation documentation</a>.</p>\n\n<h2>Usage</h2>\n\n<h3>class mongodb</h3>\n\n<p>Parameters:</p>\n\n<ul>\n<li>enable_10gen (default: false) - Whether or not to set up 10gen software repositories</li>\n<li>init (auto discovered) - override init (sysv or upstart) for Debian derivatives</li>\n<li>location - override apt location configuration for Debian derivatives</li>\n<li>packagename (auto discovered) - override the package name</li>\n<li>servicename (auto discovered) - override the service name</li>\n</ul>\n\n<p>By default ubuntu is upstart and debian uses sysv.</p>\n\n<p>Examples:</p>\n\n<pre><code>class mongodb {\n init =&gt; &#39;sysv&#39;,\n}\n\nclass mongodb {\n enable_10gen =&gt; true,\n}\n</code></pre>\n\n<h2>Supported Platforms</h2>\n\n<ul>\n<li>Debian Wheezy</li>\n<li>Ubuntu 12.04 (precise)</li>\n<li>RHEL 6</li>\n</ul>\n</section>",
2969
+ "changelog": "<section class=\"plaintext\"><pre>2012-07-13 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.1.0\n* Add support for RHEL&#x2F;CentOS\n* Change default mongodb install location to OS repo\n\n2012-05-29 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.2\n* Fix Modulefile typo.\n* Remove repo pin.\n* Update spec tests and add travis support.\n\n2012-05-03 Puppet Labs &lt;info@puppetlabs.com&gt; - 0.0.1\n* Initial Release.\n</pre></section>",
2970
+ "license": "<section class=\"plaintext\"><pre>Copyright (C) 2012 Puppet Labs Inc\n\nPuppet Labs can be contacted at: info@puppetlabs.com\n\nLicensed under the Apache License, Version 2.0 (the &quot;License&quot;);\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http:&#x2F;&#x2F;www.apache.org&#x2F;licenses&#x2F;LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an &quot;AS IS&quot; BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n</pre></section>",
2971
+ "created_at": "2012-07-13 22:42:04 -0700",
2972
+ "updated_at": "2012-07-13 22:42:04 -0700",
2973
+ "deleted_at": null
2974
+ },
2975
+ {
2976
+ "uri": "/v3/releases/jamtur01-httpauth-0.0.2",
2977
+ "module": {
2978
+ "uri": "/v3/modules/jamtur01-httpauth",
2979
+ "name": "httpauth",
2980
+ "owner": {
2981
+ "uri": "/v3/users/jamtur01",
2982
+ "username": "jamtur01",
2983
+ "gravatar_id": "31cc2100279326dd6148a7e163692097"
2984
+ }
2985
+ },
2986
+ "version": "0.0.2",
2987
+ "metadata": {
2988
+ "types": [
2989
+ {
2990
+ "providers": [
2991
+ {
2992
+ "doc": "Manage HTTP Basic and Digest authentication files",
2993
+ "name": "httpauth"
2994
+ }
2995
+ ],
2996
+ "properties": [
2997
+ {
2998
+ "doc": " Valid values are `present`, `absent`.",
2999
+ "name": "ensure"
3000
+ }
3001
+ ],
3002
+ "doc": "Manage HTTP Basic or Digest password files. httpauth { 'user': file => '/path/to/password/file', password => 'password', mechanism => basic, ensure => present, } ",
3003
+ "name": "httpauth",
3004
+ "parameters": [
3005
+ {
3006
+ "doc": "The name of the user to be managed.",
3007
+ "name": "name"
3008
+ },
3009
+ {
3010
+ "doc": "The HTTP password file to be managed. If it doesn't exist it is created.",
3011
+ "name": "file"
3012
+ },
3013
+ {
3014
+ "doc": "The password in plaintext.",
3015
+ "name": "password"
3016
+ },
3017
+ {
3018
+ "doc": "The realm - defaults to nil and mainly used for Digest authentication.",
3019
+ "name": "realm"
3020
+ },
3021
+ {
3022
+ "doc": "The authentication mechanism to use - either basic or digest. Default to basic. Valid values are `basic`, `digest`.",
3023
+ "name": "mechanism"
3024
+ }
3025
+ ]
3026
+ }
3027
+ ],
3028
+ "author": "puppet",
3029
+ "dependencies": [
3030
+
3031
+ ],
3032
+ "license": "Apache 2.0",
3033
+ "summary": "Puppet type for managing HTTP Basic and Digest auth files, a la htpasswd.",
3034
+ "project_page": "https://github.com/jamtur01/puppet-httpauth",
3035
+ "description": "UNKNOWN",
3036
+ "source": "UNKNOWN",
3037
+ "checksums": {
3038
+ "spec/spec.opts": "a600ded995d948e393fbe2320ba8e51c",
3039
+ "lib/puppet/type/httpauth.rb": "beab42ad1086202db040c72bc6783494",
3040
+ "lib/puppet/provider/httpauth/httpauth.rb": "c71417aa66ca270ffa501f779f87de62",
3041
+ "spec/unit/type/httpauth.rb": "a42a6d3b57debd7fca90d832ba7094a7",
3042
+ "Rakefile": "871849fbd09bcc076f4ab87ff750ddf6",
3043
+ "README.markdown": "1a4288364496bddee1cbd102099fecf1",
3044
+ "Modulefile": "eaba4cd27b76a1c9787f56d86d5305a5",
3045
+ "spec/spec_helper.rb": "f6e809f57723ea8a2bd121ad99bfce4c"
3046
+ },
3047
+ "version": "0.0.2",
3048
+ "name": "puppet-httpauth"
3049
+ },
3050
+ "tags": [
3051
+ "apache",
3052
+ "HTTP",
3053
+ "basic",
3054
+ "digest",
3055
+ "authentication",
3056
+ "auth",
3057
+ "htpasswd",
3058
+ "htdigest"
3059
+ ],
3060
+ "file_uri": "/v3/files/jamtur01-httpauth-0.0.2.tar.gz",
3061
+ "file_size": 3411,
3062
+ "file_md5": "b3868fcbcf52e3740cb4becf93838072",
3063
+ "downloads": 18072,
3064
+ "readme": "<section class=\"markdown\"><h1>Puppet HTTP Authentication type</h1>\n\n<p>This provides a HTTP Authentication type for Puppet that support Basic and Digest authentication.</p>\n\n<p>Copyright - James Turnbull <a href=\"mailto:james@lovedthanlost.net\">james@lovedthanlost.net</a></p>\n\n<p>License: GPLv3</p>\n\n<p>Thanks to John Ferlito and JKur (<a href=\"https://github.com/jkur\">https://github.com/jkur</a>) for patches.</p>\n\n<h2>Requirements</h2>\n\n<ul>\n<li>webrick</li>\n</ul>\n\n<h2>Usage</h2>\n\n<pre><code>httpauth { &#39;user&#39;:\n file =&gt; &#39;/path/to/password/file&#39;,\n password =&gt; &#39;password&#39;,\n realm =&gt; &#39;realm&#39;,\n mechanism =&gt; basic,\n ensure =&gt; present,\n}\n</code></pre>\n</section>",
3065
+ "changelog": null,
3066
+ "license": null,
3067
+ "created_at": "2012-06-06 01:07:36 -0700",
3068
+ "updated_at": "2013-03-04 14:57:26 -0800",
3069
+ "deleted_at": null
3070
+ }
3071
+ ]
3072
+ }