Skip to content

Instantly share code, notes, and snippets.

@aibou
Created June 30, 2015 07:25
Show Gist options
  • Save aibou/cf78acdbcbfb6ec7dae8 to your computer and use it in GitHub Desktop.
Save aibou/cf78acdbcbfb6ec7dae8 to your computer and use it in GitHub Desktop.
なにか(for amazon linux)
require 'spec_helper'
describe package('ntp') do
it { should be_installed.with_version('4.2.6p5-30.24.amzn1') }
end
# describe service('ntpd') do
# it { should be_enabled }
# it { should be_running }
# end
describe process('ntpd') do
it { should be_running }
its(:args) { should match(/-x -g/) }
end
describe command('/usr/sbin/ntptime') do
its(:stdout) { should match(/ntp_gettime\(\) returns code 0 \(OK\)/) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment