This cookbook installs Ambari-server and Ambari-agent in order to provision a cluster with the HDP distribution using the Blueprint API.
Supporting (or trying to support) the versions Ambari is supporting.
- RHEL, CentOS, and Oracle Linux 5
- RHEL, CentOS, and Oracle Linux 6
- Suse 11
Just include ambari::server
in your node's run_list
:
{
"name":"my_node",
"run_list": [
"recipe[ambari::server]"
]
}
Just include ambari::agent
in your node's run_list
(alll the nodes of your cluster):
The Ambari Server will be automatically detected, but you can override this detection using the attribute node['ambari']['server']['fdqn']
.
{
"name":"my_node",
"run_list": [
"recipe[ambari::agent]"
]
}
Include ambari::blueprints
in your node's run_list
. Then configure the blueprints
attributes listed below.
Key | Description | Default |
---|---|---|
node['ambari']['rhel_5_repo'] | URL for the RHEL 5.x repository | http://public-repo-1.hortonworks.com/ambari/centos5/1.x/updates/1.6.0/ambari.repo |
node['ambari']['rhel_6_repo'] | URL for the RHEL 6.x repository | http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.6.0/ambari.repo |
node['ambari']['suse_11_repo'] | URL for the Suse 11.x repository | http://public-repo-1.hortonworks.com/ambari/suse11/1.x/updates/1.6.0/ambari.repo |
node['ambari']['server_fdqn'] | FQDN for the Ambari server | Found by searching a node using the recipe ambari::server in the same environment |
Key | Description |
---|---|
node['ambari']['blueprints']['blueprint_name'] | Name of the cluster's blueprint |
node['ambari']['blueprints']['blueprint_json'] | JSON description of the Blueprint. See a single-node example here : https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-ExampleBlueprint |
node['ambari']['blueprints']['cluster_name'] | Cluster's name |
node['ambari']['blueprints']['cluster_json'] | JSON template for the Cluster. See a single-node example here: https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-ExampleClusterCreationTemplate |
If you wish to contribute on this cookbook:
- 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
Author: Julien Pellet
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.