ruby-ldap 0.9.12 → 0.9.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +7 -0
  2. data/ChangeLog +5 -1
  3. data/NOTES +7 -0
  4. data/README +1 -0
  5. data/TODO +0 -10
  6. data/lib/ldap/ldif.rb +1 -0
  7. data/rbldap.h +1 -1
  8. metadata +9 -41
  9. data/test/cookbooks/apt/metadata.rb +0 -13
  10. data/test/cookbooks/apt/providers/repository.rb +0 -73
  11. data/test/cookbooks/apt/recipes/cacher-client.rb +0 -44
  12. data/test/cookbooks/apt/recipes/cacher.rb +0 -45
  13. data/test/cookbooks/apt/recipes/default.rb +0 -50
  14. data/test/cookbooks/apt/resources/repository.rb +0 -30
  15. data/test/cookbooks/nginx/attributes/default.rb +0 -35
  16. data/test/cookbooks/nginx/definitions/nginx_site.rb +0 -35
  17. data/test/cookbooks/nginx/metadata.rb +0 -86
  18. data/test/cookbooks/nginx/recipes/default.rb +0 -56
  19. data/test/cookbooks/nginx/recipes/source.rb +0 -143
  20. data/test/cookbooks/openldap/attributes/default.rb +0 -61
  21. data/test/cookbooks/openldap/metadata.rb +0 -99
  22. data/test/cookbooks/openldap/recipes/auth.rb +0 -70
  23. data/test/cookbooks/openldap/recipes/client.rb +0 -28
  24. data/test/cookbooks/openldap/recipes/default.rb +0 -18
  25. data/test/cookbooks/openldap/recipes/server.rb +0 -110
  26. data/test/cookbooks/postgresql/attributes/default.rb +0 -68
  27. data/test/cookbooks/postgresql/metadata.rb +0 -15
  28. data/test/cookbooks/postgresql/recipes/client.rb +0 -27
  29. data/test/cookbooks/postgresql/recipes/default.rb +0 -20
  30. data/test/cookbooks/postgresql/recipes/server.rb +0 -36
  31. data/test/cookbooks/postgresql/recipes/server_debian.rb +0 -51
  32. data/test/cookbooks/postgresql/recipes/server_redhat.rb +0 -84
  33. data/test/cookbooks/sqlite/metadata.rb +0 -11
  34. data/test/cookbooks/sqlite/recipes/default.rb +0 -26
  35. data/test/cookbooks/vagrant_main/recipes/default.rb +0 -12
@@ -1,36 +0,0 @@
1
- #/postgresql.conf.
2
- # Cookbook Name:: postgresql
3
- # Recipe:: server
4
- #
5
- # Copyright 2009-2010, Opscode, Inc.
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- include_recipe "postgresql::client"
21
-
22
- case node[:postgresql][:version]
23
- when "8.3"
24
- node.default[:postgresql][:ssl] = "off"
25
- when "8.4"
26
- node.default[:postgresql][:ssl] = "true"
27
- end
28
-
29
- # Include the right "family" recipe for installing the server
30
- # since they do things slightly differently.
31
- case node.platform
32
- when "redhat", "centos", "fedora", "suse"
33
- include_recipe "postgresql::server_redhat"
34
- when "debian", "ubuntu"
35
- include_recipe "postgresql::server_debian"
36
- end
@@ -1,51 +0,0 @@
1
- #/postgresql.conf.
2
- # Cookbook Name:: postgresql
3
- # Recipe:: server
4
- #
5
- # Copyright 2009-2010, Opscode, Inc.
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- include_recipe "postgresql::client"
21
-
22
- case node[:postgresql][:version]
23
- when "8.3"
24
- node.default[:postgresql][:ssl] = "off"
25
- when "8.4"
26
- node.default[:postgresql][:ssl] = "true"
27
- end
28
-
29
- package "postgresql"
30
-
31
- service "postgresql" do
32
- service_name "postgresql-#{node.postgresql.version}"
33
- supports :restart => true, :status => true, :reload => true
34
- action :nothing
35
- end
36
-
37
- template "#{node[:postgresql][:dir]}/pg_hba.conf" do
38
- source "debian.pg_hba.conf.erb"
39
- owner "postgres"
40
- group "postgres"
41
- mode 0600
42
- notifies :reload, resources(:service => "postgresql")
43
- end
44
-
45
- template "#{node[:postgresql][:dir]}/postgresql.conf" do
46
- source "debian.postgresql.conf.erb"
47
- owner "postgres"
48
- group "postgres"
49
- mode 0600
50
- notifies :restart, resources(:service => "postgresql")
51
- end
@@ -1,84 +0,0 @@
1
- #/postgresql.conf.
2
- # Cookbook Name:: postgresql
3
- # Recipe:: server
4
- #
5
- # Copyright 2009-2010, Opscode, Inc.
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- include_recipe "postgresql::client"
21
-
22
- # Create a group and user like the package will.
23
- # Otherwise the templates fail.
24
-
25
- group "postgres" do
26
- # Workaround lack of option for -r and -o...
27
- group_name "-r -o postgres"
28
- not_if { Etc.getgrnam("postgres") }
29
- gid 26
30
- end
31
-
32
- user "postgres" do
33
- # Workaround lack of option for -M and -n...
34
- username "-M -n postgres"
35
- not_if { Etc.getpwnam("postgres") }
36
- shell "/bin/bash"
37
- comment "PostgreSQL Server"
38
- home "/var/lib/pgsql"
39
- gid "postgres"
40
- system true
41
- uid 26
42
- supports :non_unique => true
43
- end
44
-
45
- package "postgresql" do
46
- case node.platform
47
- when "redhat","centos"
48
- package_name "postgresql#{node.postgresql.version.split('.').join}"
49
- else
50
- package_name "postgresql"
51
- end
52
- end
53
-
54
- case node.platform
55
- when "redhat","centos"
56
- package "postgresql#{node.postgresql.version.split('.').join}-server"
57
- when "fedora","suse"
58
- package "postgresql-server"
59
- end
60
-
61
- execute "/sbin/service postgresql initdb" do
62
- not_if { ::FileTest.exist?(File.join(node.postgresql.dir, "PG_VERSION")) }
63
- end
64
-
65
- service "postgresql" do
66
- supports :restart => true, :status => true, :reload => true
67
- action [:enable, :start]
68
- end
69
-
70
- template "#{node[:postgresql][:dir]}/pg_hba.conf" do
71
- source "redhat.pg_hba.conf.erb"
72
- owner "postgres"
73
- group "postgres"
74
- mode 0600
75
- notifies :reload, resources(:service => "postgresql")
76
- end
77
-
78
- template "#{node[:postgresql][:dir]}/postgresql.conf" do
79
- source "redhat.postgresql.conf.erb"
80
- owner "postgres"
81
- group "postgres"
82
- mode 0600
83
- notifies :restart, resources(:service => "postgresql")
84
- end
@@ -1,11 +0,0 @@
1
- maintainer "Opscode, Inc."
2
- maintainer_email "cookbooks@opscode.com"
3
- license "Apache 2.0"
4
- description "Installs sqlite"
5
- version "0.7.1"
6
-
7
- recipe "sqlite", "Installs sqlite"
8
-
9
- %w{ubuntu debian}.each do |os|
10
- supports os
11
- end
@@ -1,26 +0,0 @@
1
- #
2
- # Cookbook Name:: sqlite
3
- # Recipe:: default
4
- #
5
- # Copyright 2009, Opscode, Inc.
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- package "sqlite3" do
21
- action :upgrade
22
- end
23
-
24
- package "sqlite3-doc" do
25
- action :upgrade
26
- end
@@ -1,12 +0,0 @@
1
- # vagrant_main cookbook
2
- # This cookbook includes and sets up a server with openldap.
3
- #
4
- require_recipe 'apt'
5
- require_recipe 'openldap::server'
6
-
7
- execute[apt-get-update]
8
-
9
- # require_recipe 'nginx'
10
- # include_recipe "openldap::server"
11
- # require_recipe 'postgresql'
12
- # require_recipe 'sqlite'