Skip to content

Instantly share code, notes, and snippets.

@gkspranger
Last active February 3, 2017 20:05
Show Gist options
  • Save gkspranger/642611408a9bce878c97804eaf1c0312 to your computer and use it in GitHub Desktop.
Save gkspranger/642611408a9bce878c97804eaf1c0312 to your computer and use it in GitHub Desktop.
require 'spec_helper'
# check to make sure the httpd package is installed
describe package('httpd') do
it { should be_installed }
end
# check to ensure the httpd service is running and enabled
describe service('httpd') do
it { should be_running }
it { should be_enabled }
end
# check to make sure port 80 is listening
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