Permalink
Browse files

Adding sysstat.

  • Loading branch information...
darron committed Jan 18, 2014
1 parent 9200475 commit c32167fe8fb044af52c9689caae0efef7fbac152
Showing with 18 additions and 2 deletions.
  1. +2 −0 Berksfile
  2. +3 −2 metadata.rb
  3. +2 −0 recipes/default.rb
  4. +4 −0 spec/default_spec.rb
  5. +7 −0 test/integration/default/serverspec/default_spec.rb
View
@@ -1,3 +1,5 @@
site :opscode
metadata
cookbook 'sysstat', git: 'https://github.com/retr0h/cookbook-sysstat.git'
View
@@ -3,8 +3,9 @@
maintainer 'Darron Froese'
maintainer_email 'darron@froese.org'
license 'Apache 2.0'
description 'Installs/configures something'
version '0.2.0'
description 'Installs/configures some basic octohost items.'
version '0.3.0'
recipe 'octobase::default', 'Installs/configures something'
depends 'apt'
depends 'sysstat', '1.3.0'
View
@@ -18,6 +18,8 @@
# limitations under the License.
#
include_recipe 'sysstat::default'
remote_file node['octo']['path'] do
source node['octo']['url']
owner 'root'
View
@@ -5,6 +5,10 @@
describe 'octobase::default' do
let(:chef_run) { ChefSpec::Runner.new.converge(described_recipe) }
it 'includes the `sysstat` recipe' do
expect(chef_run).to include_recipe('sysstat::default')
end
it 'grabs and installs octo' do
expect(chef_run).to create_remote_file('/usr/bin/octo')
end
@@ -3,5 +3,12 @@
# Write integration tests with Serverspec - http://serverspec.org/
describe 'octobase::default' do
describe service('ssh') do
it { should be_enabled }
it { should be_running }
end
describe service('sysstat') do
it { should be_enabled }
end
end

0 comments on commit c32167f

Please sign in to comment.