Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Chef patches for joyent smartos(smartmachine).

tag: v0.2.0

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 files
Octocat-spinner-32 libraries
Octocat-spinner-32 recipes
Octocat-spinner-32 spec
Octocat-spinner-32 .chefignore
Octocat-spinner-32 .gitignore
Octocat-spinner-32 CHANGELOG.md
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 metadata.rb
README.md

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 anyone 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

bundle
rake

Foodcritic

bundle
rake fc

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)

Something went wrong with that request. Please try again.