Skip to content

Commit

Permalink
Adding sysstat.
Browse files Browse the repository at this point in the history
  • Loading branch information
darron committed Jan 18, 2014
1 parent 9200475 commit c32167f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Berksfile
@@ -1,3 +1,5 @@
site :opscode

metadata

cookbook 'sysstat', git: 'https://github.com/retr0h/cookbook-sysstat.git'
5 changes: 3 additions & 2 deletions metadata.rb
Expand Up @@ -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'
2 changes: 2 additions & 0 deletions recipes/default.rb
Expand Up @@ -18,6 +18,8 @@
# limitations under the License.
#

include_recipe 'sysstat::default'

remote_file node['octo']['path'] do
source node['octo']['url']
owner 'root'
Expand Down
4 changes: 4 additions & 0 deletions spec/default_spec.rb
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions test/integration/default/serverspec/default_spec.rb
Expand Up @@ -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.