• R/O
  • HTTP
  • SSH
  • HTTPS

grid-chef-repo: Commit

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


Commit MetaInfo

Revision1973f1f46d808dada5917b953dc5ccfeef784ba1 (tree)
Time2017-02-19 21:23:05
Authorwhitestar <whitestar@gaea...>
Commiterwhitestar

Log Message

adds the ssl_cert cookbook dependency.

Change Summary

Incremental Difference

--- /dev/null
+++ b/cookbooks/lxcs/Berksfile
@@ -0,0 +1,21 @@
1+#
2+# Copyright 2017 whitestar
3+#
4+# Licensed under the Apache License, Version 2.0 (the "License");
5+# you may not use this file except in compliance with the License.
6+# You may obtain a copy of the License at
7+#
8+# http://www.apache.org/licenses/LICENSE-2.0
9+#
10+# Unless required by applicable law or agreed to in writing, software
11+# distributed under the License is distributed on an "AS IS" BASIS,
12+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+# See the License for the specific language governing permissions and
14+# limitations under the License.
15+#
16+
17+# for ver. 3.x
18+#source 'https://gpm00.grid.example.com:6280'
19+source 'https://supermarket.chef.io'
20+
21+metadata
--- a/cookbooks/lxcs/CHANGELOG.md
+++ b/cookbooks/lxcs/CHANGELOG.md
@@ -1,5 +1,9 @@
11 # lxcs CHANGELOG
22
3+0.1.6
4+-----
5+- adds the `ssl_cert` cookbook dependency.
6+
37 0.1.5
48 -----
59 - bug fix: LXD profile and network management.
--- a/cookbooks/lxcs/metadata.rb
+++ b/cookbooks/lxcs/metadata.rb
@@ -5,7 +5,7 @@ maintainer_email ''
55 license 'Apache 2.0'
66 description 'Installs/Configures LinuxContainers.org products'
77 long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
8-version '0.1.5'
8+version '0.1.6'
99 source_url 'http://scm.osdn.jp/gitroot/metasearch/grid-chef-repo.git'
1010 issues_url 'https://osdn.jp/projects/metasearch/ticket'
1111
@@ -15,3 +15,4 @@ issues_url 'https://osdn.jp/projects/metasearch/ticket'
1515 supports 'ubuntu', '>= 16.04'
1616
1717 depends 'platform_utils', '>= 0.3.1'
18+depends 'ssl_cert', '>= 0.3.7'
--- a/cookbooks/lxcs/recipes/lxd.rb
+++ b/cookbooks/lxcs/recipes/lxd.rb
@@ -17,6 +17,8 @@
1717 # limitations under the License.
1818 #
1919
20+::Chef::Recipe.send(:include, SSLCert::Helper)
21+
2022 lxd_conf = node['lxcs']['lxd']
2123
2224 # Note: LXD itself does not require this directory.
@@ -56,17 +58,7 @@ if lxd_conf['init']['enabled']
5658 item_conf = lxd_conf['init']['trust_password_vault_item']
5759
5860 unless item_conf.empty?
59- require 'chef-vault'
60- secret = ChefVault::Item.load(item_conf['vault'], item_conf['name'])
61- if item_conf.key?('env_context') && item_conf['env_context'] == true
62- secret = secret[node.chef_environment]
63- end
64- if !item_conf['key'].nil? && !item_conf['key'].empty?
65- item_conf['key'].split('/').each {|elm|
66- secret = secret[elm]
67- }
68- end
69-
61+ secret = get_vault_item_value(item_conf)
7062 opts += " --trust-password #{secret}"
7163 end
7264
Show on old repository browser