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

google-authenticator (3) Versions 0.1.4

Installs/Configures google-authenticator

Policyfile
Berkshelf
Knife
cookbook 'google-authenticator', '= 0.1.4', :supermarket
cookbook 'google-authenticator', '= 0.1.4'
knife supermarket install google-authenticator
knife supermarket download google-authenticator
README
Dependencies
Quality -%

google-authenticator Cookbook

Installs google-authenticator.

Requirements

This requires the opencode-openssh, which can be found here:

https://github.com/opscode-cookbooks/openssh

This has been tested on Fedora 19. It may work on other Linux distributions.

Attributes

google-authenticator::default

<table>
<tr>
<th>Key</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['google-authenticator']['package_name']</tt></td>
<td>Google authenticator package</td>
<td><tt>google-authenticator</tt></td>
</tr>
<tr>
<td><tt>['google-authenticator']['sshd_pamd_']</tt></td>
<td>location of sshd pam module</td>
<td><tt>/etc/pam.d/sshd</tt></td>
</tr>
</table>

Usage

Just include google-authenticator in your node's run_list, along with opscode's openssh:

{
  "name":"my_node",
  "run_list": [
    "recipe[google-authenticator]",
    "recipe[openssh]"
  ]
}

Then override the server attribute for openssh with:

{
    "server":{
        "ChallengeResponseAuthentication":"yes"
    }
}

You may also override ['google-authenticator']['sshd_pamd_'] attribute if the location is different.

Note that this cookbook makes a changes on the pam file through the use of Chef::Util::FileEdit:insert_line_if_no_match(). If you are running a version of Chef client earlier than 10.16.x, this cookbook may not work.

More information on setting up Google Authenticator can be found at this URL:

http://www.mnxsolutions.com/security/two-factor-ssh-with-google-authenticator.html

Contributing

If you want to contribute.

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Submit a Pull Request using Github

License and Authors

Authors: Rilindo Foster rilindo.foster@monzell.com

Dependent cookbooks

openssh >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

No quality metric results found