Skip to content

Commit

Permalink
Merge pull request openshift#2734 from dougbtv/openstack_timeout_option
Browse files Browse the repository at this point in the history
[openstack] allows timeout option for heat create stack
  • Loading branch information
detiber authored Nov 16, 2016
2 parents 3b41756 + 47f6094 commit 7762b55
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README_openstack.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ The following options are used only by `heat_stack.yaml`. They are so used only
* `floating_ip_pool` (default to `external`): comma separated list of floating IP pools
* `ssh_from` (default to `0.0.0.0/0`): IPs authorized to connect to the VMs via ssh
* `node_port_from` (default to `0.0.0.0/0`): IPs authorized to connect to the services exposed via nodePort
* `heat_timeout` (default to `3`): Timeout (in minutes) passed to heat for create or update stack.


Creating a cluster
Expand Down
2 changes: 1 addition & 1 deletion playbooks/openstack/openshift-cluster/launch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

- name: Create or Update OpenStack Stack
command: 'heat {{ heat_stack_action }} -f {{ openstack_infra_heat_stack }}
--timeout 3
--timeout {{ openstack_heat_timeout }}
-P cluster_env={{ cluster_env }}
-P cluster_id={{ cluster_id }}
-P subnet_24_prefix={{ openstack_subnet_24_prefix }}
Expand Down
2 changes: 2 additions & 0 deletions playbooks/openstack/openshift-cluster/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ openstack_ssh_access_from: "{{ lookup('oo_option', 'ssh_from') |
default('0.0.0.0/0', True) }}"
openstack_node_port_access_from: "{{ lookup('oo_option', 'node_port_from') |
default('0.0.0.0/0', True) }}"
openstack_heat_timeout: "{{ lookup('oo_option', 'heat_timeout') |
default('3', True) }}"
openstack_flavor:
etcd: "{{ lookup('oo_option', 'etcd_flavor' ) | default('m1.small', True) }}"
master: "{{ lookup('oo_option', 'master_flavor' ) | default('m1.small', True) }}"
Expand Down

0 comments on commit 7762b55

Please sign in to comment.