• R/O
  • HTTP
  • SSH
  • HTTPS

grid-chef-repo: コミット

Grid環境構築用のChefリポジトリです。


コミットメタ情報

リビジョンebc9304af9717e0a060f93817983ed9e71466118 (tree)
日時2017-01-02 15:19:40
作者whitestar <whitestar@gaea...>
コミッターwhitestar

ログメッセージ

bug fix: key access group modification.

変更サマリ

差分

--- a/cookbooks/openldap-grid/CHANGELOG.md
+++ b/cookbooks/openldap-grid/CHANGELOG.md
@@ -1,5 +1,10 @@
11 # CHANGELOG for openldap-grid
22
3+0.2.4
4+-----
5+- bug fix: key access group modification.
6+- updates documents.
7+
38 0.2.3
49 -----
510 - adds Samba schema setup feature.
--- a/cookbooks/openldap-grid/README.md
+++ b/cookbooks/openldap-grid/README.md
@@ -1,17 +1,24 @@
11 openldap-grid Cookbook
2-=================
2+======================
33
44 This cookbook sets up OpenLDAP client, server and nss-ldapd.
55
6-Requirements
7-------------
6+## Contents
7+
8+- [Requirements](#requirements)
9+- [Attributes](#attributes)
10+ - [openldap::default](#openldapdefault)
11+- [Usage](#usage)
12+ - [with ssl_cert cookbook](#with-ssl_cert-cookbook)
13+- [License and Authors](#license-and-authors)
14+
15+## Requirements
816
917 None.
1018
11-Attributes
12-----------
19+## Attributes
1320
14-#### openldap::default
21+### openldap::default
1522 |Key|Type|Description, example|Default|
1623 |:--|:--|:--|:--|
1724 |`['openldap']['with_ssl_cert_cookbook']`|Boolean|make it work with ssl_cert cookbook. (ver. 0.1.1 or later)|`false`|
@@ -35,10 +42,7 @@ Attributes
3542 |`['openldap']['server']['ldaps']`|Boolean|enable ldaps (ver. 0.1.2 or later)|`false`|
3643 |`['openldap']['server']['KRB5_KTNAME']`|String|e.g. `'/etc/krb5.keytab'` (ver. 0.1.2 or later)|`nil`|
3744
38-['openldap']['extra_schema']
39-
40-Usage
41------
45+## Usage
4246
4347 Just include `openldap-grid::recipe` in your node's `run_list`:
4448
@@ -53,16 +57,16 @@ Just include `openldap-grid::recipe` in your node's `run_list`:
5357 }
5458 ```
5559
56-#### with ssl_cert cookbook
60+### with ssl_cert cookbook
5761
5862 If `node['openldap']['with_ssl_cert_cookbook']` is `true`, `node['openldap']['client']['TLS_CACERT']` and `node['openldap']['nss-ldapd']['tls_cacertfile']` are overridden by the file path based on `['openldap']['ssl_cert']['ca_name']` attribute.
5963
60-License and Authors
61--------------------
64+## License and Authors
65+
6266 - Author:: whitestar at osdn.jp
6367
6468 ```text
65-Copyright 2013-2016, whitestar
69+Copyright 2013-2017, whitestar
6670
6771 Licensed under the Apache License, Version 2.0 (the "License");
6872 you may not use this file except in compliance with the License.
--- a/cookbooks/openldap-grid/metadata.rb
+++ b/cookbooks/openldap-grid/metadata.rb
@@ -5,7 +5,7 @@ maintainer_email ''
55 license 'Apache 2.0'
66 description 'Installs/Configures openldap'
77 long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
8-version '0.2.3'
8+version '0.2.4'
99 source_url 'http://scm.osdn.jp/gitroot/metasearch/grid-chef-repo.git'
1010 issues_url 'https://osdn.jp/projects/metasearch/ticket'
1111
@@ -13,4 +13,4 @@ issues_url 'https://osdn.jp/projects/metasearch/ticket'
1313 supports os
1414 end
1515
16-depends 'ssl_cert', '>= 0.3.2'
16+depends 'ssl_cert', '>= 0.3.5'
--- a/cookbooks/openldap-grid/recipes/server.rb
+++ b/cookbooks/openldap-grid/recipes/server.rb
@@ -17,6 +17,8 @@
1717 # limitations under the License.
1818 #
1919
20+::Chef::Recipe.send(:include, SSLCert::Helper)
21+
2022 case node['platform_family']
2123 when 'debian'
2224 [
@@ -30,10 +32,8 @@ when 'debian'
3032 }
3133
3234 # for SSL server key access
33- group 'ssl-cert' do
34- action :modify
35- members 'openldap'
36- append true
35+ if node['openldap']['with_ssl_cert_cookbook']
36+ append_members_to_key_access_group(['openldap'])
3737 end
3838
3939 template '/etc/default/slapd' do
@@ -53,14 +53,8 @@ when 'rhel'
5353 }
5454
5555 # for SSL server key access
56- group node['ssl_cert']['rhel']['key_access_group'] do
57- action :modify
58- members 'ldap'
59- append true
60- only_if {
61- node['openldap']['with_ssl_cert_cookbook'] \
62- && node['ssl_cert']['rhel']['key_access_group'] != 'root'
63- }
56+ if node['openldap']['with_ssl_cert_cookbook']
57+ append_members_to_key_access_group(['ldap'])
6458 end
6559
6660 template '/etc/sysconfig/ldap' do
旧リポジトリブラウザで表示