Skip to content

Commit

Permalink
Clearer arguments for ansible-playbook command.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandruanghel committed Nov 13, 2018
1 parent 7346416 commit 3020c52
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 6 deletions.
5 changes: 4 additions & 1 deletion apply_blueprint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

source $(dirname "${BASH_SOURCE[0]}")/set_cloud.sh

ansible-playbook -i "inventory/${cloud_to_use}" -e "cloud_name=${cloud_to_use}" playbooks/apply_blueprint.yml "$@"
ansible-playbook "playbooks/apply_blueprint.yml" \
--inventory="inventory/${cloud_to_use}" \
--extra-vars="cloud_name=${cloud_to_use}" \
"$@"
5 changes: 4 additions & 1 deletion configure_ambari.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

source $(dirname "${BASH_SOURCE[0]}")/set_cloud.sh

ansible-playbook -i "inventory/${cloud_to_use}" -e "cloud_name=${cloud_to_use}" playbooks/configure_ambari.yml "$@"
ansible-playbook "playbooks/configure_ambari.yml" \
--inventory="inventory/${cloud_to_use}" \
--extra-vars="cloud_name=${cloud_to_use}" \
"$@"
5 changes: 4 additions & 1 deletion install_ambari.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

source $(dirname "${BASH_SOURCE[0]}")/set_cloud.sh

ansible-playbook -i "inventory/${cloud_to_use}" -e "cloud_name=${cloud_to_use}" playbooks/install_ambari.yml "$@"
ansible-playbook "playbooks/install_ambari.yml" \
--inventory="inventory/${cloud_to_use}" \
--extra-vars="cloud_name=${cloud_to_use}" \
"$@"
5 changes: 4 additions & 1 deletion install_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

source $(dirname "${BASH_SOURCE[0]}")/set_cloud.sh

ansible-playbook -i "inventory/${cloud_to_use}" -e "cloud_name=${cloud_to_use}" playbooks/install_cluster.yml "$@"
ansible-playbook "playbooks/install_cluster.yml" \
--inventory="inventory/${cloud_to_use}" \
--extra-vars="cloud_name=${cloud_to_use}" \
"$@"
5 changes: 4 additions & 1 deletion post_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

source $(dirname "${BASH_SOURCE[0]}")/set_cloud.sh

ansible-playbook -i "inventory/${cloud_to_use}" -e "cloud_name=${cloud_to_use}" playbooks/post_install.yml "$@"
ansible-playbook "playbooks/post_install.yml" \
--inventory="inventory/${cloud_to_use}" \
--extra-vars="cloud_name=${cloud_to_use}" \
"$@"
5 changes: 4 additions & 1 deletion prepare_nodes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

source $(dirname "${BASH_SOURCE[0]}")/set_cloud.sh

ansible-playbook -i "inventory/${cloud_to_use}" -e "cloud_name=${cloud_to_use}" playbooks/prepare_nodes.yml "$@"
ansible-playbook "playbooks/prepare_nodes.yml" \
--inventory="inventory/${cloud_to_use}" \
--extra-vars="cloud_name=${cloud_to_use}" \
"$@"

0 comments on commit 3020c52

Please sign in to comment.