spec/integration/recipes/default.rb in itamae-1.2.18 vs spec/integration/recipes/default.rb in itamae-1.2.19
- old
+ new
@@ -1,10 +1,13 @@
node.reverse_merge!({
message: "Hello, Itamae"
})
execute 'apt-get update'
+execute 'deluser --remove-home itamae2' do
+ only_if "id itamae2"
+end
include_recipe "./included.rb"
include_recipe "./included.rb" # including the same recipe is expected to be skipped.
user "create itamae user" do
@@ -19,9 +22,16 @@
uid 1234
username "itamae"
password "$1$TQz9gPMl$nHYrsA5W2ZdZ0Yn021BQH1"
home '/home/itamae'
shell '/bin/dash'
+end
+
+user "create itamae2 user with create home directory" do
+ username "itamae2"
+ create_home true
+ home "/home/itamae2"
+ shell "/bin/sh"
end
######
package 'dstat' do