Install/configure Garage
Add a garage cookbook that installs the garage binary distribution and creates the necessary configuration and system service. Also deploy two new VMs to act as storage nodes. refs #428
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# InSpec test for recipe kosmos_garage::garagej
|
||||
|
||||
# The Chef InSpec reference, with examples and extensive documentation, can be
|
||||
# found at https://docs.chef.io/inspec/resources/
|
||||
|
||||
describe file('/usr/local/bin/garage') do
|
||||
it { should exist }
|
||||
its('mode') { should cmp '00755' }
|
||||
end
|
||||
|
||||
describe service('garage') do
|
||||
it { should be_enabled }
|
||||
it { should be_installed }
|
||||
it { should be_running }
|
||||
end
|
||||
|
||||
[3900, 3901, 3902, 3903, 3904].each do |port_number|
|
||||
describe port(port_number) do
|
||||
it { should be_listening }
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user