Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

lmctfy (4) Versions 0.2.0

Installs/Configures Google's Let Me Contain That For You

Policyfile
Berkshelf
Knife
cookbook 'lmctfy', '= 0.2.0', :supermarket
cookbook 'lmctfy', '= 0.2.0'
knife supermarket install lmctfy
knife supermarket download lmctfy
README
Dependencies
Quality -%

chef-lmctfy Build Status

Description

Installs/Configures Google's Let Me Contain That For You. Please see [COMPATIBILITY.md](COMPATIBILITY.md) for more information about LMCTFY versions that are tested and supported by cookbook versions along with LWRP features.

Requirements

Platforms

  • Ubuntu 12.10, 13.04, 13.10

Upcoming Platforms

  • CentOS 6 (requires newer g++, CentOS devtoolset-1.1 likely in another cookbook)
  • Fedora 17+ (should work, requires testing)
  • RHEL 6 (requires newer g++, Red Hat devtoolset-1.1 likely in another cookbook)
  • Ubuntu 12.04 (requires newer g++, ubuntu-toolchain-r likely in another cookbook)

Cookbooks

Opscode Cookbooks

Third-Party Cookbooks

Attributes

These attributes are under the node['lmctfy'] namespace.

Attribute Description Type Default
init lmctfy init specification String ""
install_dir Installation directory for LMCTFY String auto-detected (see attributes/default.rb)
install_type Installation type for LMCTFY ("source" is only available currently) String "source"

cgroups Attributes

These attributes are under the node['lmctfy']['cgroups'] namespace.

Attribute Description Type Default
packages cgroups packages for installation String auto-detected (see attributes/default.rb)

Source Attributes

These attributes are under the node['lmctfy']['source'] namespace.

Attribute Description Type Default
ref Repository reference for LMCTFY source String "master"
url Repository URL for LMTCFY source String "https://github.com/google/lmctfy.git"

Recipes

  • recipe[lmctfy] Installs/Configures lmctfy
  • recipe[lmctfy::cgroups] Installs/Configures cgroups
  • recipe[lmctfy::lmctfy_init] Runs lmctfy init
  • recipe[lmctfy::source] Installs lmctfy via source
  • recipe[lmctfy::source_cli] Installs lmctfy CLI via source
  • recipe[lmctfy::source_cpp] Installs lmctfy C++ via source

LWRPs

lmctfy_container

Create a container without spec:

lmctfy_container "my_container" do
  spec ""
end

Create a container with spec:

lmctfy_container "my_100mb_container" do
  spec "memory:{limit:100000000}"
end

Create a container with spec in config:

lmctfy_container "my_config_container" do
  config "/path/to/lmctfy-config"
end

Create a container and run command at same time:

lmctfy_container "my_command_container" do
  command "sleep 9999"
  nowait true
  spec ""
  action [:create,:run]
end

Run a command in a container:

lmctfy_container "my_container" do
  command "sleep 9999"
  nowait true
  action :run
end

Kill all processes in a container:

lmctfy_container "my_container" do
  action :killall
end

Kill all processes and destroy container at same time:

lmctfy_container "my_container" do
  action [:killall, :destroy]
end

Destroy a container:

lmctfy_container "my_container" do
  action :destroy
end

Usage

Default Installation

  • Add recipe[lmctfy] to your node's run list

Testing and Development

Vagrant

Here's how you can quickly get testing or developing against the cookbook thanks to Vagrant and Berkshelf.

vagrant plugin install vagrant-berkshelf
vagrant plugin install vagrant-cachier
vagrant plugin install vagrant-omnibus
git clone git://github.com/bflad/chef-docker.git
cd chef-docker
vagrant up BOX # BOX being ubuntu1204, ubuntu1210, or ubuntu1304

You can then SSH into the running VM using the vagrant ssh BOX command.

The VM can easily be stopped and deleted with the vagrant destroy command. Please see the official Vagrant documentation for a more in depth explanation of available commands.

Test Kitchen

Please see documentation in: [TESTING.md](TESTING.md)

Contributing

Please use standard Github issues/pull requests and if possible, in combination with testing on the Vagrant boxes or Test Kitchen suite.

Maintainers

Dependent cookbooks

build-essential >= 0.0.0
control_groups >= 0.0.0
gflags >= 0.0.0
git >= 0.0.0
protobuf >= 0.0.0
re2 >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

No quality metric results found