itamae 1.2.18 → 1.2.19
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/CHANGELOG.md +6 -0
- data/lib/itamae/resource/user.rb +2 -0
- data/lib/itamae/version.txt +1 -1
- data/spec/integration/default_spec.rb +6 -0
- data/spec/integration/recipes/default.rb +10 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a63438ba5d5a7df745b43c27d982046e5a00f12
|
4
|
+
data.tar.gz: 5cf2cd03190449e6dd7a9b8b2bd8dbd9d664fe6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5a195641261be7d1f1c6626c7b36f4aaa457034ae856d894ad0a7df4dc9ad6a5445e0aadd2f98da8dcfeca18c4aba67127124617b50d1fcace00412274d17fb
|
7
|
+
data.tar.gz: 8ae0da5d2367aa6ea25e54cc497a52c4da35c42a64421f8889c12773f85b45b48447c82a50b8f25a6bd9928d17f99d5dddd899db235de17caa5fcac51fe900df
|
data/CHANGELOG.md
CHANGED
data/lib/itamae/resource/user.rb
CHANGED
@@ -11,6 +11,7 @@ module Itamae
|
|
11
11
|
define_attribute :system_user, type: [TrueClass, FalseClass]
|
12
12
|
define_attribute :uid, type: Integer
|
13
13
|
define_attribute :shell, type: String
|
14
|
+
define_attribute :create_home, type: [TrueClass, FalseClass], default: false
|
14
15
|
|
15
16
|
def pre_action
|
16
17
|
case @current_action
|
@@ -65,6 +66,7 @@ module Itamae
|
|
65
66
|
system_user: attributes.system_user,
|
66
67
|
uid: attributes.uid,
|
67
68
|
shell: attributes.shell,
|
69
|
+
create_home: attributes.create_home,
|
68
70
|
}
|
69
71
|
|
70
72
|
run_specinfra(:add_user, attributes.username, options)
|
data/lib/itamae/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.19
|
@@ -158,3 +158,9 @@ describe file('/tmp/file_edit_sample') do
|
|
158
158
|
it { should be_owned_by "itamae" }
|
159
159
|
it { should be_grouped_into "itamae" }
|
160
160
|
end
|
161
|
+
|
162
|
+
describe file('/home/itamae2') do
|
163
|
+
it { should be_directory }
|
164
|
+
it { should be_owned_by "itamae2" }
|
165
|
+
it { should be_grouped_into "itamae2" }
|
166
|
+
end
|
@@ -3,6 +3,9 @@ node.reverse_merge!({
|
|
3
3
|
})
|
4
4
|
|
5
5
|
execute 'apt-get update'
|
6
|
+
execute 'deluser --remove-home itamae2' do
|
7
|
+
only_if "id itamae2"
|
8
|
+
end
|
6
9
|
|
7
10
|
include_recipe "./included.rb"
|
8
11
|
include_recipe "./included.rb" # including the same recipe is expected to be skipped.
|
@@ -23,6 +26,13 @@ user "update itamae user" do
|
|
23
26
|
shell '/bin/dash'
|
24
27
|
end
|
25
28
|
|
29
|
+
user "create itamae2 user with create home directory" do
|
30
|
+
username "itamae2"
|
31
|
+
create_home true
|
32
|
+
home "/home/itamae2"
|
33
|
+
shell "/bin/sh"
|
34
|
+
end
|
35
|
+
|
26
36
|
######
|
27
37
|
|
28
38
|
package 'dstat' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itamae
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryota Arai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -277,7 +277,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
277
277
|
version: '0'
|
278
278
|
requirements: []
|
279
279
|
rubyforge_project:
|
280
|
-
rubygems_version: 2.
|
280
|
+
rubygems_version: 2.4.5
|
281
281
|
signing_key:
|
282
282
|
specification_version: 4
|
283
283
|
summary: Simple Configuration Management Tool
|