garcun 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/garcon/chef/provider/civilize.rb +8 -2
- data/lib/garcon/chef/secret_bag.rb +1 -2
- data/lib/garcon/utility/memstash.rb +2 -2
- data/lib/garcon/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5455662f944538cd8256f62810d0511329cb350d
|
|
4
|
+
data.tar.gz: 5422ee4c6da1f792561345c8f8f603223726e674
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b99d44b3d94e5e6036e042d9773d4e11a5fc253445ad5e648a5e4510ab6d302078ef1eadacb151f70ed2699eb56005206f26d41ca2786beadd408cd9e54e9dc
|
|
7
|
+
data.tar.gz: 32964750cf0f9dc0f247abbbb4d86429614b9f6cb2897882e962054feaf3008b6d9e8eead5555deee72ef8f548d44cfc67b7ca5365cd84cc16f4f85d32422ed1
|
|
@@ -38,6 +38,12 @@ class Chef
|
|
|
38
38
|
attribute :local,
|
|
39
39
|
kind_of: [String],
|
|
40
40
|
default: 'en_US.UTF-8'
|
|
41
|
+
attribute :ps1_root_msg,
|
|
42
|
+
kind_of: [TrueClass, FalseClass],
|
|
43
|
+
default: lazy { node[:garcon][:civilize][:ps1_root_msg] }
|
|
44
|
+
attribute :ps1_usr_msg,
|
|
45
|
+
kind_of: [TrueClass, FalseClass],
|
|
46
|
+
default: lazy { node[:garcon][:civilize][:ps1_usr_msg] }
|
|
41
47
|
attribute :iptables,
|
|
42
48
|
kind_of: [TrueClass, FalseClass],
|
|
43
49
|
default: lazy { node[:garcon][:civilize][:iptables] }
|
|
@@ -122,7 +128,7 @@ class Chef
|
|
|
122
128
|
t.run_action :create unless docker?
|
|
123
129
|
end
|
|
124
130
|
end
|
|
125
|
-
|
|
131
|
+
# Garçon
|
|
126
132
|
def civilize_platform
|
|
127
133
|
case node[:platform]
|
|
128
134
|
when 'debian', 'ubuntu'
|
|
@@ -156,7 +162,7 @@ class Chef
|
|
|
156
162
|
t.owner 'root'
|
|
157
163
|
t.group 'root'
|
|
158
164
|
t.mode 00644
|
|
159
|
-
t.variables
|
|
165
|
+
t.variables ps1_root_msg: r.ps1_root_msg, ps1_usr_msg: r.ps1_usr_msg
|
|
160
166
|
t.run_action :create
|
|
161
167
|
end
|
|
162
168
|
|
|
@@ -39,8 +39,7 @@ module Garcon
|
|
|
39
39
|
#
|
|
40
40
|
# You also can provide a default password value in developer mode, like:
|
|
41
41
|
#
|
|
42
|
-
# node.set[:garcon][:secret][:passwd] = '
|
|
43
|
-
# mysql_passwd = secret('passwords', 'eazypass')
|
|
42
|
+
# node.set[:garcon][:secret][:passwd] = secret('passwords', 'eazypass')
|
|
44
43
|
#
|
|
45
44
|
# The mysql_passwd will == 'eazypass'
|
|
46
45
|
#
|
|
@@ -57,11 +57,11 @@ module Garcon
|
|
|
57
57
|
|
|
58
58
|
# The maximum sum total number of elements (cache entries) allowed on the
|
|
59
59
|
# disk tier for the cache. If this target is exceeded, eviction occurs to
|
|
60
|
-
# bring the count within the allowed target. The default value is
|
|
60
|
+
# bring the count within the allowed target. The default value is 100. A
|
|
61
61
|
# setting of 0 means that no eviction of the cache's entries takes place
|
|
62
62
|
# (infinite size is allowed), and consequently can cause the node to run
|
|
63
63
|
# out of disk space.
|
|
64
|
-
DEFAULT_MAX_ENTRIES =
|
|
64
|
+
DEFAULT_MAX_ENTRIES = 100
|
|
65
65
|
|
|
66
66
|
# @!attribute [r] :stats
|
|
67
67
|
# @return [CacheStats] The Cache statistics.
|
data/lib/garcon/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: garcun
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stefano Harding
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-07-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: chef
|