forked from marthag8/zfs
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from chef-cookbooks/cleanup
Cleanup
- Loading branch information
Showing
20 changed files
with
107 additions
and
390 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
remote_file = "https://raw.githubusercontent.com/chef-cookbooks/community_cookbook_tools/master/delivery/project.toml" |
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,23 +1,22 @@ | ||
--- | ||
driver: | ||
name: vagrant | ||
|
||
provisioner: | ||
name: chef_zero | ||
product: chef-client | ||
channel: stable | ||
version: 12.21.12 | ||
deprecations_as_errors: true | ||
|
||
verifier: | ||
name: inspec | ||
|
||
platforms: | ||
- name: ubuntu-16.04 | ||
- name: freebsd-10.4 | ||
- name: freebsd-11.1 | ||
- name: freebsd-10 | ||
- name: freebsd-11 | ||
- name: solaris-11 | ||
driver: | ||
box: chef/solaris-11.3 | ||
- name: ubuntu-16.04 | ||
|
||
suites: | ||
- name: default | ||
run_list: | ||
- recipe[zfs_test::default] | ||
attributes: | ||
- recipe[test::default] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# chef_zfs Cookbook CHANGELOG | ||
|
||
This file is used to list changes made in each version of the chef_zfs cookbook. | ||
|
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,2 @@ | ||
Please refer to | ||
https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD |
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,9 @@ | ||
# This gemfile provides additional gems for testing and releasing this cookbook | ||
# It is meant to be installed on top of ChefDK which provides the majority | ||
# of the necessary gems for testing this cookbook | ||
# | ||
# Run 'chef exec bundle install' to install these dependencies | ||
|
||
source 'https://rubygems.org' | ||
|
||
gem 'community_cookbook_releaser' |
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,2 @@ | ||
Please refer to | ||
https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD |
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 |
---|---|---|
|
@@ -12,4 +12,4 @@ | |
supports os | ||
end | ||
|
||
chef_version '>= 12.11' | ||
chef_version '>= 12.7' |
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 @@ | ||
# -*- encoding: utf-8 -*- | ||
# | ||
# Author:: Ryan Hass (<[email protected]>) | ||
# Author:: Ryan Hass (<[email protected]>) | ||
# Author:: Martha Greenberg (<[email protected]>) | ||
# | ||
# Copyright (C) 2017, Chef Software Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
|
@@ -17,9 +16,7 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
require 'mixlib/shellout' | ||
|
||
provides :zfs | ||
resource_name :zfs | ||
property :properties, Array | ||
|
||
load_current_value do | ||
|
@@ -32,11 +29,11 @@ | |
zfs_set_properties(name, new_resource.properties) unless new_resource.properties.nil? | ||
else | ||
cmd = %w(zfs create) | ||
properties.each do |setting| | ||
new_resource.properties.each do |setting| | ||
key = setting.keys.first | ||
cmd << '-o' | ||
cmd << "#{key}=#{setting[key]}" | ||
end unless properties.nil? | ||
end unless new_resource.properties.nil? | ||
cmd << new_resource.name | ||
|
||
execute 'zfs_create' do | ||
|
Empty file.
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 @@ | ||
name 'test' | ||
license 'Apache-2.0' | ||
version '0.1.0' | ||
|
||
depends 'chef_zfs' | ||
depends 'chef_zpool' |
File renamed without changes.
Oops, something went wrong.