-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install lvm package during compile phase and don't execute volume_ext…
…end recipe unless di-ruby-lvm gem is installed
- Loading branch information
Showing
4 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f46d411
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth bumping the version number after this commit as it is a bug fix?
I am having trouble with berkshelf getting this commit because it sees no difference between this and any other commit at version 5.0.1.
f46d411
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
want to close one other issue before bumping the version
Do
bundle exec berks update gluster
and it will pick up this one assuming you have the correct commit hash in yourBerksfile
f46d411
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great thanks, it is working now. However I am still not exactly sure why! If you have any interest, although its not specific to your cookbook, perhaps you might be able to throw some light on this quirky thing:
I have a cookbook called 'servu-stack' which depends upon a cookbook called 'servu-gluster' which is a wrapper cookbook and thus depends upon this cookbook, called 'gluster'. Dependancy tree like this:
servu-stack
↳ servu-gluster
↳ gluster
In the 'servu-gluster' cookbook's Berksfile it defines this commit:
cookbook 'gluster', git: 'https://github.com/shortdudey123/chef-gluster.git', :ref => '128da'
Running
berks install
in the 'servu-gluster' cookbook correctly pulls down this cookbook into the Berkshelf, at this commit.However, running
berks install
in the 'servu-stack' cookbook, pulls this cookbook into the Berkshelf at the wrong (previous) commit.So I added into the Berksfile of the 'servu-stack' cookbook a line, exactly like above:
cookbook 'gluster', git: 'https://github.com/shortdudey123/chef-gluster.git', :ref => '128da'
This meant the 'servu-stack' now resolves to the correct dependancy. However, I do not understand why this is necessary, as surely Berkshelf should look down the dependancy tree and resolve the correct dependency of a dependant, in the same way as the dependant does?
f46d411
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Berkshelf only locks its dependency tree for the Berksfile you give it. It doesn't do that if you do berks install between Berksfile's