Skip to content

Commit

Permalink
Merge pull request #59 from dpattmann/master
Browse files Browse the repository at this point in the history
Fix problems with volume_extend recipe
  • Loading branch information
shortdudey123 authored Jun 10, 2016
2 parents 19bca42 + f46d411 commit 128da38
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased
- **[PR #58](https://github.com/shortdudey123/chef-gluster/pull/58)** - Fix case statement syntax
- **[PR #59](https://github.com/shortdudey123/chef-gluster/pull/59)** - Fix problems with volume_extend recipe
- **[PR #61](https://github.com/shortdudey123/chef-gluster/pull/61)** - Update disk controller logic for Vagrant template

## v5.0.1 (2016-03-12)
Expand Down
4 changes: 2 additions & 2 deletions attributes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
# Package dependencies
case node['platform']
when 'ubuntu'
default['gluster']['server']['dependencies'] = ['xfsprogs']
default['gluster']['server']['dependencies'] = %w(xfsprogs lvm2)
when 'redhat', 'centos'
default['gluster']['server']['dependencies'] = ['xfsprogs']
default['gluster']['server']['dependencies'] = %w(xfsprogs lvm2)
end

# Default path to use for mounting bricks
Expand Down
7 changes: 6 additions & 1 deletion recipes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,9 @@
include_recipe 'lvm'
include_recipe 'gluster::server_setup'
include_recipe 'gluster::server_extend'
include_recipe 'gluster::volume_extend'
include_recipe 'gluster::volume_extend' if begin
Gem::Specification.find_by_name('di-ruby-lvm')
rescue Gem::LoadError
Chef::Log.info('not including gluster::volume_extend since di-ruby-lvm was not found')
return false
end
4 changes: 3 additions & 1 deletion recipes/server_install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@

# Install dependencies
node['gluster']['server']['dependencies'].each do |d|
package d
package d do
action :nothing
end.run_action :install
end

# Install the server package
Expand Down

0 comments on commit 128da38

Please sign in to comment.