Skip to content

Commit cb9b273

Browse files
committed
Merge branch 'main' into feat/topology-aware-scheduling
2 parents 025827e + c4e4cb2 commit cb9b273

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

ansible/roles/proxy/tasks/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
- name: Validate http_proxy definition
22
ansible.builtin.assert:
3-
that: proxy_http_proxy != '' # this is default if squid not active
3+
that: proxy_http_proxy != ''
44
fail_msg: >-
55
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.
78
- name: Define configuration in /etc/environment
89
tags: proxy
910
lineinfile:

environments/common/inventory/group_vars/all/proxy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ proxy_remove: false
2020

2121
# full http proxy string - override if the above don't provide enough control:
2222
proxy_http_proxy: >-
23-
{% if groups['squid'] | length > 0 %}
23+
{%- if proxy_http_address != '' -%}
2424
http://
2525
{%- if proxy_basic_password -%}
2626
{{ proxy_basic_user }}:{{ proxy_basic_password }}@
2727
{%- endif -%}
2828
{{ proxy_http_address }}:{{ proxy_http_port }}
29-
{% else %}
30-
31-
{% endif %}
29+
{%- else %}
30+
31+
{%- endif %}

packer/openstack.pkr.hcl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ variable "floating_ip_network" {
102102
default = null
103103
}
104104

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+
105111
variable "manifest_output_path" {
106112
type = string
107113
default = "packer-manifest.json"
@@ -162,6 +168,7 @@ source "openstack" "openhpc" {
162168
}
163169
networks = var.networks
164170
floating_ip_network = var.floating_ip_network
171+
floating_ip = var.floating_ip
165172
security_groups = var.security_groups
166173

167174
# Input image:

0 commit comments

Comments
 (0)