File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed
ansible/roles/proxy/tasks
environments/common/inventory/group_vars/all Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 1
1
- name : Validate http_proxy definition
2
2
ansible.builtin.assert :
3
- that : proxy_http_proxy != '' # this is default if squid not active
3
+ that : proxy_http_proxy != ''
4
4
fail_msg : >-
5
5
Variable proxy_http_proxy cannot be the empty string for hosts in the
6
- proxy group. See environment/common/inventory/group_vars/all/proxy.yml.
6
+ proxy group. See environments/common/inventory/group_vars/all/proxy.yml
7
+ for convenience variables to set this.
7
8
- name : Define configuration in /etc/environment
8
9
tags : proxy
9
10
lineinfile :
Original file line number Diff line number Diff line change @@ -20,12 +20,12 @@ proxy_remove: false
20
20
21
21
# full http proxy string - override if the above don't provide enough control:
22
22
proxy_http_proxy : >-
23
- {% if groups['squid'] | length > 0 %}
23
+ {%- if proxy_http_address != '' - %}
24
24
http://
25
25
{%- if proxy_basic_password -%}
26
26
{{ proxy_basic_user }}:{{ proxy_basic_password }}@
27
27
{%- endif -%}
28
28
{{ proxy_http_address }}:{{ proxy_http_port }}
29
- {% else %}
30
-
31
- {% endif %}
29
+ {%- else %}
30
+
31
+ {%- endif %}
Original file line number Diff line number Diff line change @@ -102,6 +102,12 @@ variable "floating_ip_network" {
102
102
default = null
103
103
}
104
104
105
+ variable "floating_ip" {
106
+ type = string
107
+ description = " ID of pre-existing FIP to attach. Note floating_ip_network is not required when using this"
108
+ default = null
109
+ }
110
+
105
111
variable "manifest_output_path" {
106
112
type = string
107
113
default = " packer-manifest.json"
@@ -162,6 +168,7 @@ source "openstack" "openhpc" {
162
168
}
163
169
networks = var. networks
164
170
floating_ip_network = var. floating_ip_network
171
+ floating_ip = var. floating_ip
165
172
security_groups = var. security_groups
166
173
167
174
# Input image:
You can’t perform that action at this time.
0 commit comments