-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for --limit option for overcloud deploy
with --limit option passed to overcloud deploy command for scaleout, deployment will only be limited to hosts that are mentioned(or being scaled out).
- Loading branch information
1 parent
33b4f86
commit be2fdc2
Showing
4 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
- name: get existing compute count | ||
shell: | | ||
source /home/stack/stackrc | ||
{{ overcloud_host_list }} | grep compute | grep {{ node_type }} | wc -l | ||
register: compute_count | ||
|
||
- name: add hosts to deploy_limit_str of type {{ node_type }} | ||
set_fact: | ||
deploy_limit_str: "{{ deploy_limit_str + append_item }}" | ||
vars: | ||
append_item: "{{ (deploy_limit_str|length == 0) | ternary(item, (',' + item)) }}" | ||
with_sequence: "start={{ compute_count.stdout|int }} end={{ compute_count.stdout|int + total_machine_count[node_type]|int - 1 }} format=compute{{ node_type }}-%1u" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters