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,143 +0,0 @@
1
- #
2
- # Cookbook Name:: nginx
3
- # Recipe:: source
4
- #
5
- # Author:: Adam Jacob (<adam@opscode.com>)
6
- # Author:: Joshua Timberman (<joshua@opscode.com>)
7
- #
8
- # Copyright 2009-2011, Opscode, Inc.
9
- #
10
- # Licensed under the Apache License, Version 2.0 (the "License");
11
- # you may not use this file except in compliance with the License.
12
- # You may obtain a copy of the License at
13
- #
14
- # http://www.apache.org/licenses/LICENSE-2.0
15
- #
16
- # Unless required by applicable law or agreed to in writing, software
17
- # distributed under the License is distributed on an "AS IS" BASIS,
18
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- # See the License for the specific language governing permissions and
20
- # limitations under the License.
21
- #
22
-
23
- include_recipe "build-essential"
24
-
25
- unless platform?("centos","redhat","fedora")
26
- include_recipe "runit"
27
- end
28
-
29
- packages = value_for_platform(
30
- ["centos","redhat","fedora"] => {'default' => ['pcre-devel', 'openssl-devel']},
31
- "default" => ['libpcre3', 'libpcre3-dev', 'libssl-dev']
32
- )
33
-
34
- packages.each do |devpkg|
35
- package devpkg
36
- end
37
-
38
- nginx_version = node[:nginx][:version]
39
-
40
- node.set[:nginx][:install_path] = "/opt/nginx-#{nginx_version}"
41
- node.set[:nginx][:src_binary] = "#{node[:nginx][:install_path]}/sbin/nginx"
42
- node.set[:nginx][:daemon_disable] = true
43
- node.set[:nginx][:configure_flags] = [
44
- "--prefix=#{node[:nginx][:install_path]}",
45
- "--conf-path=#{node[:nginx][:dir]}/nginx.conf",
46
- "--with-http_ssl_module",
47
- "--with-http_gzip_static_module"
48
- ]
49
-
50
- configure_flags = node[:nginx][:configure_flags].join(" ")
51
-
52
- remote_file "#{Chef::Config[:file_cache_path]}/nginx-#{nginx_version}.tar.gz" do
53
- source "http://sysoev.ru/nginx/nginx-#{nginx_version}.tar.gz"
54
- action :create_if_missing
55
- end
56
-
57
- bash "compile_nginx_source" do
58
- cwd Chef::Config[:file_cache_path]
59
- code <<-EOH
60
- tar zxf nginx-#{nginx_version}.tar.gz
61
- cd nginx-#{nginx_version} && ./configure #{configure_flags}
62
- make && make install
63
- EOH
64
- creates node[:nginx][:src_binary]
65
- end
66
-
67
- directory node[:nginx][:log_dir] do
68
- mode 0755
69
- owner node[:nginx][:user]
70
- action :create
71
- end
72
-
73
- directory node[:nginx][:dir] do
74
- owner "root"
75
- group "root"
76
- mode "0755"
77
- end
78
-
79
- unless platform?("centos","redhat","fedora")
80
- runit_service "nginx"
81
-
82
- service "nginx" do
83
- subscribes :restart, resources(:bash => "compile_nginx_source")
84
- end
85
- else
86
- #install init db script
87
- template "/etc/init.d/nginx" do
88
- source "nginx.init.erb"
89
- owner "root"
90
- group "root"
91
- mode "0755"
92
- end
93
-
94
- #install sysconfig file (not really needed but standard)
95
- template "/etc/sysconfig/nginx" do
96
- source "nginx.sysconfig.erb"
97
- owner "root"
98
- group "root"
99
- mode "0644"
100
- end
101
-
102
- #register service
103
- service "nginx" do
104
- supports :status => true, :restart => true, :reload => true
105
- action :enable
106
- subscribes :restart, resources(:bash => "compile_nginx_source")
107
- end
108
- end
109
-
110
-
111
- %w{ sites-available sites-enabled conf.d }.each do |dir|
112
- directory "#{node[:nginx][:dir]}/#{dir}" do
113
- owner "root"
114
- group "root"
115
- mode "0755"
116
- end
117
- end
118
-
119
- %w{nxensite nxdissite}.each do |nxscript|
120
- template "/usr/sbin/#{nxscript}" do
121
- source "#{nxscript}.erb"
122
- mode "0755"
123
- owner "root"
124
- group "root"
125
- end
126
- end
127
-
128
- template "nginx.conf" do
129
- path "#{node[:nginx][:dir]}/nginx.conf"
130
- source "nginx.conf.erb"
131
- owner "root"
132
- group "root"
133
- mode "0644"
134
- notifies :restart, resources(:service => "nginx"), :immediately
135
- end
136
-
137
- cookbook_file "#{node[:nginx][:dir]}/mime.types" do
138
- source "mime.types"
139
- owner "root"
140
- group "root"
141
- mode "0644"
142
- notifies :restart, resources(:service => "nginx"), :immediately
143
- end
@@ -1,61 +0,0 @@
1
- # Cookbook Name:: openldap
2
- # Attributes:: openldap
3
- #
4
- # Copyright 2008-2009, Opscode, Inc.
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
- if domain && domain.length > 0
20
- default[:openldap][:basedn] = "dc=#{domain.split('.').join(",dc=")}"
21
- default[:openldap][:server] = "ldap.#{domain}"
22
- end
23
-
24
- openldap[:rootpw] = nil
25
-
26
- # File and directory locations for openldap.
27
- case platform
28
- when "redhat","centos"
29
- set[:openldap][:dir] = "/etc/openldap"
30
- set[:openldap][:run_dir] = "/var/run/openldap"
31
- set[:openldap][:module_dir] = "/usr/lib64/openldap"
32
- when "debian","ubuntu"
33
- set[:openldap][:dir] = "/etc/ldap"
34
- set[:openldap][:run_dir] = "/var/run/slapd"
35
- set[:openldap][:module_dir] = "/usr/lib/ldap"
36
- else
37
- set[:openldap][:dir] = "/etc/ldap"
38
- set[:openldap][:run_dir] = "/var/run/slapd"
39
- set[:openldap][:module_dir] = "/usr/lib/ldap"
40
- end
41
-
42
- openldap[:ssl_dir] = "#{openldap[:dir]}/ssl"
43
- openldap[:cafile] = "#{openldap[:ssl_dir]}/ca.crt"
44
-
45
- # Server settings.
46
- openldap[:slapd_type] = nil
47
-
48
- if openldap[:slapd_type] == "slave"
49
- master = search(:nodes, 'openldap_slapd_type:master')
50
- default[:openldap][:slapd_master] = master
51
- default[:openldap][:slapd_replpw] = nil
52
- default[:openldap][:slapd_rid] = 102
53
- end
54
-
55
- # Auth settings for Apache.
56
- if openldap[:basedn] && openldap[:server]
57
- default[:openldap][:auth_type] = "openldap"
58
- default[:openldap][:auth_binddn] = "ou=people,#{openldap[:basedn]}"
59
- default[:openldap][:auth_bindpw] = nil
60
- default[:openldap][:auth_url] = "ldap://#{openldap[:server]}/#{openldap[:auth_binddn]}?uid?sub?(objecctClass=*)"
61
- end
@@ -1,99 +0,0 @@
1
- maintainer "Opscode, Inc."
2
- maintainer_email "cookbooks@opscode.com"
3
- license "Apache 2.0"
4
- description "Configures a server to be an OpenLDAP master, replication slave or client for auth"
5
- long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
6
- version "0.9.4"
7
- recipe "openldap", "Empty, use one of the other recipes"
8
- recipe "openldap::auth", "Set up openldap for user authentication"
9
- recipe "openldap::client", "Install openldap client packages"
10
- recipe "openldap::server", "Set up openldap to be a slapd server"
11
-
12
- %w{ ubuntu debian }.each do |os|
13
- supports os
14
- end
15
-
16
- %w{ openssh nscd }.each do |cb|
17
- depends cb
18
- end
19
-
20
- attribute "openldap/basedn",
21
- :display_name => "OpenLDAP BaseDN",
22
- :description => "BaseDN for the LDAP directory",
23
- :default => "dc=domain,dc=com"
24
-
25
- attribute "openldap/server",
26
- :display_name => "OpenLDAP Server",
27
- :description => "LDAP Server, used for URIs",
28
- :default => "ldap.domain"
29
-
30
- attribute "openldap/rootpw",
31
- :display_name => "OpenLDAP Root Password",
32
- :description => "Password for 'admin' root user, should be a SHA hash that OpenLDAP supports",
33
- :default => "nil"
34
-
35
- attribute "openldap/dir",
36
- :display_name => "OpenLDAP Dir",
37
- :description => "Main configuration directory for OpenLDAP",
38
- :default => "/etc/ldap"
39
-
40
- attribute "openldap/run_dir",
41
- :display_name => "OpenLDAP Run Directory",
42
- :description => "Run directory for LDAP server processes",
43
- :default => "/var/run/slapd"
44
-
45
- attribute "openldap/module_dir",
46
- :display_name => "OpenLDAP Module Directory",
47
- :description => "Location for OpenLDAP add-on modules",
48
- :default => "/usr/lib/ldap"
49
-
50
- attribute "openldap/ssl_dir",
51
- :display_name => "OpenLDAP SSL Directory",
52
- :description => "Location for LDAP SSL certificates",
53
- :default => "openldap_dir/ssl"
54
-
55
- attribute "openldap/cafile",
56
- :display_name => "OpenLDAP CA File",
57
- :description => "Location for CA certificate",
58
- :default => "openldap_dir_ssl/ca.crt"
59
-
60
- attribute "openldap/slapd_type",
61
- :display_name => "OpenLDAP Slapd Type",
62
- :description => "Whether the server is a master or slave",
63
- :default => "nil"
64
-
65
- attribute "openldap/slapd_master",
66
- :display_name => "OpenLDP Slapd Master",
67
- :description => "Search nodes for attribute slapd_type master, for slaves",
68
- :default => "nil"
69
-
70
- attribute "openldap/slapd_replpw",
71
- :display_name => "OpenLDAP Slapd Replication Password",
72
- :description => "Password for slaves to replicate from master",
73
- :default => "nil"
74
-
75
- attribute "openldap/slapd_rid",
76
- :display_name => "OpenLDAP Slapd Replication ID",
77
- :description => "Slave's ID, must be unique",
78
- :default => "102"
79
-
80
- attribute "openldap/auth_type",
81
- :display_name => "OpenLDAP Auth Type",
82
- :description => "Used in Apache configs, AuthBasicProvider",
83
- :default => "openldap"
84
-
85
- attribute "openldap/auth_binddn",
86
- :display_name => "OpenLDAP Auth BindDN",
87
- :description => "Used in auth_url and Apache configs, AuthBindDN",
88
- :default => "ou=people,openldap_basedn"
89
-
90
- attribute "openldap/auth_bindpw",
91
- :display_name => "OpenLDAP Auth Bind Password",
92
- :description => "Used in Apache configs, AuthBindPassword",
93
- :default => "nil"
94
-
95
- attribute "openldap/auth_url",
96
- :display_name => "OpenLDAP Auth URL",
97
- :description => "Used in Apache configs, AuthLDAPURL",
98
- :default => "ldap://openldap_server/openldap_auth_binddn?uid?sub?(objectClass=*)"
99
-
@@ -1,70 +0,0 @@
1
- #
2
- # Cookbook Name:: openldap
3
- # Recipe:: auth
4
- #
5
- # Copyright 2008-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
- include_recipe "openldap::client"
21
- include_recipe "openssh"
22
- include_recipe "nscd"
23
-
24
- package "libnss-ldap" do
25
- action :upgrade
26
- end
27
-
28
- package "libpam-ldap" do
29
- action :upgrade
30
- end
31
-
32
- template "/etc/ldap.conf" do
33
- source "ldap.conf.erb"
34
- mode 0644
35
- owner "root"
36
- group "root"
37
- end
38
-
39
- template "/etc/ldap/ldap.conf" do
40
- source "ldap-ldap.conf.erb"
41
- mode 0644
42
- owner "root"
43
- group "root"
44
- end
45
-
46
- cookbook_file "/etc/nsswitch.conf" do
47
- source "nsswitch.conf"
48
- mode 0644
49
- owner "root"
50
- group "root"
51
- notifies :restart, resources(:service => "nscd"), :immediately
52
- notifies :run, resources(:execute => [ "nscd-clear-passwd", "nscd-clear-group" ]), :immediately
53
- end
54
-
55
- %w{ account auth password session }.each do |pam|
56
- cookbook_file "/etc/pam.d/common-#{pam}" do
57
- source "common-#{pam}"
58
- mode 0644
59
- owner "root"
60
- group "root"
61
- notifies :restart, resources(:service => "ssh"), :delayed
62
- end
63
- end
64
-
65
- template "/etc/security/login_access.conf" do
66
- source "login_access.conf.erb"
67
- mode 0644
68
- owner "root"
69
- group "root"
70
- end
@@ -1,28 +0,0 @@
1
- #
2
- # Cookbook Name:: openldap
3
- # Recipe:: client
4
- #
5
- # Copyright 2008-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 "ldap-utils" do
21
- action :upgrade
22
- end
23
-
24
- directory node[:openldap][:ssl_dir] do
25
- mode 0755
26
- owner "root"
27
- group "root"
28
- end
@@ -1,18 +0,0 @@
1
- #
2
- # Cookbook Name:: openldap
3
- # Recipe:: default
4
- #
5
- # Copyright 2008-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
- #
@@ -1,110 +0,0 @@
1
- #
2
- # Cookbook Name:: openldap
3
- # Recipe:: server
4
- #
5
- # Copyright 2008-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
- include_recipe "openldap::client"
20
-
21
- case node[:platform]
22
- when "ubuntu"
23
- if (node[:platform_version].to_f >= 10.04)
24
- package "db4.8-util" do
25
- action :upgrade
26
- end
27
- else
28
- package "db4.2-util" do
29
- action :upgrade
30
- end
31
- end
32
- cookbook_file "/var/cache/local/preseeding/slapd.seed" do
33
- source "slapd.seed"
34
- mode 0600
35
- owner "root"
36
- group "root"
37
- end
38
- package "slapd" do
39
- response_file "slapd.seed"
40
- action :upgrade
41
- end
42
- else
43
- package "db4.2-util" do
44
- action :upgrade
45
- end
46
- package "slapd" do
47
- action :upgrade
48
- end
49
- end
50
-
51
- cookbook_file "#{node[:openldap][:ssl_dir]}/#{node[:openldap][:server]}.pem" do
52
- source "ssl/#{node[:openldap][:server]}.pem"
53
- mode 0644
54
- owner "root"
55
- group "root"
56
- end
57
-
58
- service "slapd" do
59
- action [:enable, :start]
60
- end
61
-
62
- if (node[:platform] == "ubuntu") and (node[:platform_version].to_f >= 8.10)
63
- template "/etc/default/slapd" do
64
- source "default_slapd.erb"
65
- owner "root"
66
- group "root"
67
- mode 0644
68
- end
69
-
70
- directory "#{node[:openldap][:dir]}/slapd.d" do
71
- recursive true
72
- owner "openldap"
73
- group "openldap"
74
- action :create
75
- end
76
-
77
- execute "slapd-config-convert" do
78
- command "slaptest -f #{node[:openldap][:dir]}/slapd.conf -F #{node[:openldap][:dir]}/slapd.d/"
79
- user "openldap"
80
- action :nothing
81
- notifies :start, resources(:service => "slapd"), :immediately
82
- end
83
-
84
- template "#{node[:openldap][:dir]}/slapd.conf" do
85
- source "slapd.conf.erb"
86
- mode 0640
87
- owner "openldap"
88
- group "openldap"
89
- notifies :stop, resources(:service => "slapd"), :immediately
90
- notifies :run, resources(:execute => "slapd-config-convert")
91
- end
92
- else
93
- case node[:platform]
94
- when "debian","ubuntu"
95
- template "/etc/default/slapd" do
96
- source "default_slapd.erb"
97
- owner "root"
98
- group "root"
99
- mode 0644
100
- end
101
- end
102
-
103
- template "#{node[:openldap][:dir]}/slapd.conf" do
104
- source "slapd.conf.erb"
105
- mode 0640
106
- owner "openldap"
107
- group "openldap"
108
- notifies :restart, resources(:service => "slapd")
109
- end
110
- end
@@ -1,68 +0,0 @@
1
- #
2
- # Cookbook Name:: postgresql
3
- # Attributes:: postgresql
4
- #
5
- # Copyright 2008-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
- case platform
20
- when "debian"
21
-
22
- if platform_version.to_f == 5.0
23
- default[:postgresql][:version] = "8.3"
24
- elsif platform_version =~ /.*sid/
25
- default[:postgresql][:version] = "8.4"
26
- end
27
-
28
- set[:postgresql][:dir] = "/etc/postgresql/#{node[:postgresql][:version]}/main"
29
-
30
- when "ubuntu"
31
-
32
- if platform_version.to_f <= 9.04
33
- default[:postgresql][:version] = "8.3"
34
- else
35
- default[:postgresql][:version] = "8.4"
36
- end
37
-
38
- set[:postgresql][:dir] = "/etc/postgresql/#{node[:postgresql][:version]}/main"
39
-
40
- when "fedora"
41
-
42
- if platform_version.to_f <= 12
43
- default[:postgresql][:version] = "8.3"
44
- else
45
- default[:postgresql][:version] = "8.4"
46
- end
47
-
48
- set[:postgresql][:dir] = "/var/lib/pgsql/data"
49
-
50
- when "redhat","centos"
51
-
52
- default[:postgresql][:version] = "8.4"
53
- set[:postgresql][:dir] = "/var/lib/pgsql/data"
54
-
55
- when "suse"
56
-
57
- if platform_version.to_f <= 11.1
58
- default[:postgresql][:version] = "8.3"
59
- else
60
- default[:postgresql][:version] = "8.4"
61
- end
62
-
63
- set[:postgresql][:dir] = "/var/lib/pgsql/data"
64
-
65
- else
66
- default[:postgresql][:version] = "8.4"
67
- set[:postgresql][:dir] = "/etc/postgresql/#{node[:postgresql][:version]}/main"
68
- end
@@ -1,15 +0,0 @@
1
- maintainer "Opscode, Inc."
2
- maintainer_email "cookbooks@opscode.com"
3
- license "Apache 2.0"
4
- description "Installs and configures postgresql for clients or servers"
5
- long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
6
- version "0.11.1"
7
- recipe "postgresql", "Empty, use one of the other recipes"
8
- recipe "postgresql::client", "Installs postgresql client package(s)"
9
- recipe "postgresql::server", "Installs postgresql server packages, templates"
10
- recipe "postgresql::redhat", "Installs postgresql server packages, redhat family style"
11
- recipe "postgresql::server", "Installs postgresql server packages, debian family style"
12
-
13
- %w{rhel centos fedora ubuntu debian suse}.each do |os|
14
- supports os
15
- end
@@ -1,27 +0,0 @@
1
- #
2
- # Cookbook Name:: postgresql
3
- # Recipe:: client
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
- case node.platform
21
- when "ubuntu","debian"
22
- package "postgresql-client"
23
- when "fedora","suse"
24
- package "postgresql-devel"
25
- when "redhat","centos"
26
- package "postgresql#{node.postgresql.version.split('.').join}-devel"
27
- end
@@ -1,20 +0,0 @@
1
- #
2
- # Cookbook Name:: postgresql
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
- include_recipe "postgresql::client"