Configures the autofs service on a Chef node.
- Ubuntu 14.04
This cookbook depends on the following cookbooks:
Key | Type | Description | Default |
---|---|---|---|
node[:autofs][:timeout] | Integer | Set the default mount timeout | 300 |
node[:autofs][:browse_mode] | Boolean | Whether or not maps are browsable by default | false |
node[:autofs][:options] | String | Additional options to be specified in /etc/default/autofs | "" |
Include autofs::nis
in your node's run_list
:
{
"run_list": [
"recipe[autofs::nis]"
]
}
The tests in this cookbook are very much specific to my environment. I may eventually fix that, but that's just the way it is for now.
Be sure that you've run bundle
before attempting to run any of the
following commands.
Unit tests can be run with RSpec:
$ cd autofs
$ rspec
While developing, however, you'll want to run Guard to have it automatically run the unit tests each time a file is changed:
$ cd autofs
$ guard
To run integration tests:
$ cd autofs
$ kitchen test
Note, however, that you will need to comment out the lines with FIXME
comments
in the integration tests (within test/integration
) as these apply to one
specific infrastructure and will not work in your infrastructure.
Also, you'll need to have VirtualBox and Vagrant installed.
Finally, to properly test things, you'll need to set the default gateway to the gateway for the bridged interface, and edit /etc/resolv.conf appropriately.
- Fork the repository on Github
- Create a named feature branch (i.e.
add-new-recipe
) - Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request
Author:: Jeff Shantz (jeff@csd.uwo.ca)
Copyright:: 2014, Western University
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
`