<commit_before>optoro\_skel Cookbook
========================
This cookbook is a skeleton.

Information on our workflow is available at [here](https://optoro.atlassian.net/wiki/display/DO/Adding+a+cookbook+to+the+Chef+Pipeline)

In order to run guard thta will monitor and test your cookbook against chefspec, rubocop and foodcritic first run bundle install,
and then run bundle exec guard in a separate console 

knife-solo is used to create test databags for use with serverspec:
```
  cd test/integration
  bundle exec knife solo data bag create <data_bag>
  bundle exec knife solo data bag create <data_bag> <data_bag_item>
```<commit_msg>Updated README with basic examples<commit_after>optoro\_zpool Cookbook
========================

This is a resource cookbook.  Including it in your metadata.rb file will allow you to access to the `zpool` resouce.

  This simply provides a the resource for interacting with zpools. You will need to have ZFS already installed.  See `optoro_zfs`, `zfs`, or `zfs_linux` cookbooks.


Examples!

###RAID0
```
zpool 'raid0' do
  disks ['/dev/sdb','/dev/sdc']
end
```

###RAID1
```
zpool 'raid10' do
  disks ['mirror', '/dev/sdb', '/dev/sdc']
end
```

###RAID10 w/ ZIL 
```
zpool 'raid10' do
  disks ['mirror', '/dev/sdb', '/dev/sdc', 'mirror', '/dev/sdd', '/dev/sde']
  log_disks ['/dev/sdf']
end
```

###RAIDZ w/ ZIL mirror & Cache
```
zpool 'raidz' do
  disks ['mirror', '/dev/sdb', '/dev/sdc', '/dev/sdd']
  log_disks ['mirror', '/dev/sde', '/dev/sdf']
  cache_disks ['/dev/sdg']
end
```

###Optional Attributes

Attribute        | Description |Type | Default
-----------------|-------------|-----|--------
mountpoint       | Aboslute path to where the zpool should be mounted | String | zpool.name
autoexpand       | Whether or not to expand the zpool when a new disk is introduced | Boolean | false
force            | Forces the destruction or creation of a zpool | Boolean | false
ashift           | Sets the ashift for a pool | Integer | 0 (automatic detection)
```
{'fraction_non_alphanumeric': 0.16119402985074627, 'fraction_numerical': 0.004975124378109453, 'mean_word_length': 3.601830663615561, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4343978', 'n_tokens_mistral': 666, 'n_tokens_neox': 636, 'n_words': 235}