cookbook 'smartmachine_functions', '= 0.2.0'
smartmachine_functions (8) Versions 0.2.0 Follow4
Chef patches, little fix and tools for joyent smartos(smartmachine).
cookbook 'smartmachine_functions', '= 0.2.0', :supermarket
knife supermarket install smartmachine_functions
knife supermarket download smartmachine_functions
smartmachine_functions Cookbook
Chef patches, little fix and tools for joyent smartos(smartmachine).
Usage
Just add recipe[smartmachine_functions]
to runlist for Fix pkgin provider.
Or add other recipes.
Recipes
defaut
Do nothing. Dummy recipe to include libraries.
tools
Add several tools to /opt/local/bin.
mdata_permission
The smartmachine metadata has serious vulnerability such as any localuser can get metadata.
To fix it, set mode 0700 to /var/run/smartdc
directory.
Fertures
BugFix: Override Chef::Provider::Package::SmartOS
Package resource works well.
Security Fix: mdata socket vulnerability
Fix metadata api vulnerability.
Tool: sm-summry_json
This command prints out formatted sm-summary as json.
Test
This cookbook tested by ChefSpec and Foodcritic.
Run test
Rspec
<pre><code>bundle
rake
</code></pre>
Foodcritic
<pre><code>bundle
rake fc
</code></pre>
Contributing
e.g.
1. Fork the repository on Github
2. Create a named feature branch (like add_component_x
)
3. Write you change
4. Write tests for your change (if applicable)
5. Run the tests, ensuring they all pass
6. Submit a Pull Request using Github
License and Authors
Authors: sawanoboryu@higanworks.com (HiganWorks LLC)
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.