odbc Cookbook
Installs and configured unixODBC. Optionally install a set of drivers
Requirements
Attributes
odbc::source
| Key | Type | Description | Default |
|---|---|---|---|
| ['odbc']['drivers'] | Array | List of optional drivers to install. Includes :microsoft, :freetds, :postgresql, :mysql | [] |
| ['odbc']['source']['version'] | String | unixODBC version to install from source | 2.3.0 |
| ['odbc']['source']['url'] | String | unixODBC remote url base | ftp://ftp.unixodbc.org/pub/unixODBC |
| ['odbc']['source']['cppflags'] | String | Additional CPPFLAGS used when compiling | -DSIZEOF_LONG_INT=8 |
odbc::drivers
Microsoft ODBC Driver 11
| Key | Type | Description | Default |
|---|---|---|---|
| ['odbc']['driver']['microsoft']['source_url'] | String | Base url for odbc driver | https://s3-us-west-2.amazonaws.com/metasphere/odbc/drivers/microsoft/RHEL#{node['platform_version'].to_i}/msodbcsql-11.0.2270.0.tar.gz |
Usage
odbc::source
Just include odbc::source in your node's run_list:
{
"name":"my_node",
"run_list": [
"recipe[odbc::source]"
]
}odbc::source
Just include odbc::drivers in your node's run_list and pass an array of acceptable drivers as symbols:
{
"name":"my_node",
"run_list": [
"recipe[odbc::drivers]"
]
}Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Authors: Justin Schneck