-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'rubocop' of https://github.com/guilhem/ceph-cookbook in…
…to guilhem-rubocop Conflicts: recipes/apt.rb
- Loading branch information
Showing
39 changed files
with
343 additions
and
308 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
AllCops: | ||
Includes: | ||
- Berksfile | ||
- Gemfile | ||
- Rakefile | ||
- Thorfile | ||
- Guardfile | ||
Excludes: | ||
- vendor/** | ||
|
||
AlignParameters: | ||
ClassLength: | ||
Enabled: false | ||
Documentation: | ||
Enabled: false | ||
Encoding: | ||
Enabled: false | ||
HashSyntax: | ||
Enabled: false | ||
StringLiterals: | ||
Enabled: false | ||
LineLength: | ||
Enabled: false | ||
MethodLength: | ||
Max: 30 | ||
Enabled: false | ||
SignalException: | ||
Enabled: false | ||
TrailingComma: | ||
Enabled: false | ||
WordArray: | ||
Enabled: false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
language: ruby | ||
rvm: | ||
- 1.9.3 | ||
- 2.0.0 | ||
before_script: | ||
- bundle exec berks install | ||
bundler_args: --without integration | ||
script: | ||
- bundle exec strainer test --except kitchen | ||
- bundle exec rake travis |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
source "https://rubygems.org" | ||
source 'https://rubygems.org' | ||
|
||
gem "chef", "~> 11" | ||
gem "berkshelf", "~> 2.0.10" | ||
gem 'chef', '~> 11' | ||
gem 'berkshelf', '~> 2.0.10' | ||
|
||
group :test do | ||
gem "chefspec", "~> 3.0.2" | ||
gem "foodcritic", "~> 3.0.3" | ||
gem "strainer" | ||
gem "rubocop" | ||
gem 'foodcritic', '~> 3.0' | ||
gem 'rubocop' | ||
end | ||
|
||
group :integration do | ||
gem "test-kitchen", "~> 1.1.1" | ||
gem "kitchen-vagrant", "~> 0.14" | ||
gem 'test-kitchen', '~> 1.1.1' | ||
gem 'kitchen-vagrant', '~> 0.14' | ||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/usr/bin/env rake | ||
|
||
# Style tests. Rubocop and Foodcritic | ||
namespace :style do | ||
begin | ||
require 'rubocop/rake_task' | ||
desc 'Run Ruby style checks' | ||
Rubocop::RakeTask.new(:ruby) | ||
rescue LoadError | ||
puts '>>>>> Rubocop gem not loaded, omitting tasks' unless ENV['CI'] | ||
end | ||
|
||
begin | ||
require 'foodcritic' | ||
|
||
desc 'Run Chef style checks' | ||
FoodCritic::Rake::LintTask.new(:chef) do |t| | ||
t.options = { | ||
fail_tags: ['any'], | ||
tags: ['~FC003'] | ||
} | ||
end | ||
rescue LoadError | ||
puts '>>>>> foodcritic gem not loaded, omitting tasks' unless ENV['CI'] | ||
end | ||
end | ||
|
||
desc 'Run all style checks' | ||
task style: ['style:chef', 'style:ruby'] | ||
|
||
# Integration tests. Kitchen.ci | ||
namespace :integration do | ||
begin | ||
require 'kitchen/rake_tasks' | ||
|
||
desc 'Run kitchen integration tests' | ||
Kitchen::RakeTasks.new | ||
rescue LoadError | ||
puts '>>>>> Kitchen gem not loaded, omitting tasks' unless ENV['CI'] | ||
end | ||
end | ||
|
||
desc 'Run all tests on Travis' | ||
task travis: ['style'] | ||
|
||
# Default | ||
task default: ['style', 'integration:kitchen:all'] |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
default["ceph"]["cephfs_mount"] = "/ceph" | ||
default['ceph']['cephfs_mount'] = '/ceph' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
default["ceph"]["config"] = {} | ||
default["ceph"]["config-sections"] = {} | ||
default['ceph']['config'] = {} | ||
default['ceph']['config-sections'] = {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
case node['platform'] | ||
when 'ubuntu' | ||
default["ceph"]["mds"]["init_style"] = "upstart" | ||
default['ceph']['mds']['init_style'] = 'upstart' | ||
else | ||
default["ceph"]["mds"]["init_style"] = "sysvinit" | ||
default['ceph']['mds']['init_style'] = 'sysvinit' | ||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
case node['platform'] | ||
when 'ubuntu' | ||
default["ceph"]["mon"]["init_style"] = "upstart" | ||
default['ceph']['mon']['init_style'] = 'upstart' | ||
else | ||
default["ceph"]["mon"]["init_style"] = "sysvinit" | ||
default['ceph']['mon']['init_style'] = 'sysvinit' | ||
end | ||
default["ceph"]["mon"]["secret_file"] = "/etc/chef/secrets/ceph_mon" | ||
default['ceph']['mon']['secret_file'] = '/etc/chef/secrets/ceph_mon' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
case node['platform'] | ||
when 'ubuntu' | ||
default["ceph"]["osd"]["init_style"] = "upstart" | ||
default['ceph']['osd']['init_style'] = 'upstart' | ||
else | ||
default["ceph"]["osd"]["init_style"] = "sysvinit" | ||
default['ceph']['osd']['init_style'] = 'sysvinit' | ||
end | ||
default["ceph"]["osd"]["secret_file"] = "/etc/chef/secrets/ceph_osd" | ||
default['ceph']['osd']['secret_file'] = '/etc/chef/secrets/ceph_osd' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,15 +17,15 @@ | |
# limitations under the License. | ||
# | ||
|
||
default["ceph"]["radosgw"]["api_fqdn"] = "localhost" | ||
default["ceph"]["radosgw"]["admin_email"] = "[email protected]" | ||
default["ceph"]["radosgw"]["rgw_addr"] = "*:80" | ||
default["ceph"]["radosgw"]["rgw_port"] = false | ||
default["ceph"]["radosgw"]["webserver_companion"] = "apache2" # can be false | ||
default['ceph']["radosgw"]['use_apache_fork'] = true | ||
default['ceph']['radosgw']['api_fqdn'] = 'localhost' | ||
default['ceph']['radosgw']['admin_email'] = '[email protected]' | ||
default['ceph']['radosgw']['rgw_addr'] = '*:80' | ||
default['ceph']['radosgw']['rgw_port'] = false | ||
default['ceph']['radosgw']['webserver_companion'] = 'apache2' # can be false | ||
default['ceph']['radosgw']['use_apache_fork'] = true | ||
case node['platform'] | ||
when 'ubuntu' | ||
default["ceph"]["radosgw"]["init_style"] = "upstart" | ||
default['ceph']['radosgw']['init_style'] = 'upstart' | ||
else | ||
default["ceph"]["radosgw"]["init_style"] = "sysvinit" | ||
default['ceph']['radosgw']['init_style'] = 'sysvinit' | ||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
roles: | ||
- ceph-mds: | ||
- ceph-mon: | ||
- ceph-osd: | ||
- ceph-radosgw: | ||
- ceph-tgt: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
name "ceph" | ||
maintainer "Kyle Bader" | ||
maintainer_email "[email protected]" | ||
license "Apache 2.0" | ||
description "Installs/Configures the Ceph distributed filesystem" | ||
name 'ceph' | ||
maintainer 'Kyle Bader' | ||
maintainer_email '[email protected]' | ||
license 'Apache 2.0' | ||
description 'Installs/Configures the Ceph distributed filesystem' | ||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) | ||
version "0.2.1" | ||
version '0.2.1' | ||
|
||
depends "apache2", ">= 1.1.12" | ||
depends "apt" | ||
depends "yum", ">= 3.0" | ||
depends "yum-epel" | ||
depends 'apache2', '>= 1.1.12' | ||
depends 'apt' | ||
depends 'yum', '>= 3.0' | ||
depends 'yum-epel' |
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
Oops, something went wrong.