Include inventory_to_use vars to add cluster's hosts in ambari_groups #155
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change permit to create a file in vars that define the cluster by overriding some of the properties defined in 'all' file without modifying it.
For example, I create playbooks/group_vars/poc_cluster:
`---
cluster_name: 'poc_cluster'
ambari_admin_password: '123abc;'
default_password: '123abc'
blueprint_dynamic:
host_group: "hdp-master"
clients: ['ZOOKEEPER_CLIENT', 'HDFS_CLIENT', 'YARN_CLIENT', 'MAPREDUCE2_CLIENT', 'TEZ_CLIENT', 'PIG', 'SQOOP', 'HIVE_CLIENT', 'OOZIE_CLIENT', 'INFRA_SOLR_CLIENT', 'SPARK2_CLIENT', 'HBASE_CLIENT']
services: ['NAMENODE', 'SECONDARY_NAMENODE', 'ZOOKEEPER_SERVER', 'KAFKA_BROKER', 'RESOURCEMANAGER', 'APP_TIMELINE_SERVER', 'YARN_REGISTRY_DNS', 'TIMELINE_READER', 'HISTORYSERVER', 'HIVE_SERVER', 'HIVE_METASTORE', 'OOZIE_SERVER', 'HBASE_MASTER', 'SPARK2_JOBHISTORYSERVER', 'ZEPPELIN_MASTER', 'AMBARI_SERVER', 'INFRA_SOLR', 'NIFI_REGISTRY_MASTER']
host_group: "hdp-slave"
clients: ['ZOOKEEPER_CLIENT', 'HDFS_CLIENT', 'YARN_CLIENT', 'MAPREDUCE2_CLIENT', 'TEZ_CLIENT', 'PIG', 'SQOOP', 'HIVE_CLIENT', 'OOZIE_CLIENT', 'INFRA_SOLR_CLIENT', 'SPARK2_CLIENT', 'HBASE_CLIENT']
services: ['DATANODE', 'NODEMANAGER', 'HBASE_REGIONSERVER', 'NIFI_MASTER']
`