Skip to content

Instantly share code, notes, and snippets.

@arukoh
Created March 14, 2019 13:33
Show Gist options
  • Save arukoh/5145f14d5c85c2c32e3804f1bad02a9f to your computer and use it in GitHub Desktop.
Save arukoh/5145f14d5c85c2c32e3804f1bad02a9f to your computer and use it in GitHub Desktop.
itamae serverspec
package 'nginx' do
action :install
end
service 'nginx' do
action [:enable, :start]
end
require 'spec_helper'
describe package('nginx') do
it { should be_installed }
end
describe service('nginx') do
it { should be_enabled }
it { should be_running }
end
describe port(80) do
it { should be_listening }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment