Commit 879b8976 by John Jarvis

defaulting common_hostname to empty string

also extra vars overrides developer sandbox defaults
parent c89dfd6d
...@@ -33,7 +33,7 @@ COMMON_UBUNTU_APT_KEYSERVER: "http://keyserver.ubuntu.com/pks/lookup?op=get&fing ...@@ -33,7 +33,7 @@ COMMON_UBUNTU_APT_KEYSERVER: "http://keyserver.ubuntu.com/pks/lookup?op=get&fing
# do not include http/https # do not include http/https
COMMON_GIT_MIRROR: 'github.com' COMMON_GIT_MIRROR: 'github.com'
# override this var to set a different hostname # override this var to set a different hostname
COMMON_HOSTNAME: !!null COMMON_HOSTNAME: ""
# Set to true to customize DNS search domains # Set to true to customize DNS search domains
COMMON_CUSTOM_DHCLIENT_CONFIG: false COMMON_CUSTOM_DHCLIENT_CONFIG: false
......
...@@ -95,18 +95,18 @@ ...@@ -95,18 +95,18 @@
- name: update /etc/hosts - name: update /etc/hosts
template: src=hosts.j2 dest=/etc/hosts template: src=hosts.j2 dest=/etc/hosts
when: COMMON_HOSTNAME when: COMMON_HOSTNAME|length > 0
register: etc_hosts register: etc_hosts
- name: update /etc/hostname - name: update /etc/hostname
template: src=hostname.j2 dest=/etc/hostname template: src=hostname.j2 dest=/etc/hostname
when: COMMON_HOSTNAME when: COMMON_HOSTNAME|length > 0
register: etc_hostname register: etc_hostname
- name: run hostname - name: run hostname
shell: > shell: >
hostname -F /etc/hostname hostname -F /etc/hostname
when: COMMON_HOSTNAME and (etc_hosts.changed or etc_hostname.changed) when: COMMON_HOSTNAME|length >0 and (etc_hosts.changed or etc_hostname.changed)
- name: update /etc/dhcp/dhclient.conf - name: update /etc/dhcp/dhclient.conf
template: src=etc/dhcp/dhclient.conf.j2 dest=/etc/dhcp/dhclient.conf template: src=etc/dhcp/dhclient.conf.j2 dest=/etc/dhcp/dhclient.conf
......
...@@ -57,7 +57,7 @@ extra_var_arg="-e@${extra_vars_file}" ...@@ -57,7 +57,7 @@ extra_var_arg="-e@${extra_vars_file}"
if [[ $edx_internal == "true" ]]; then if [[ $edx_internal == "true" ]]; then
# if this is a an edx server include # if this is a an edx server include
# the secret var file # the secret var file
extra_var_arg="-e@${extra_vars_file} -e@${WORKSPACE}/configuration-secure/ansible/vars/developer-sandbox.yml" extra_var_arg="-e@${WORKSPACE}/configuration-secure/ansible/vars/developer-sandbox.yml -e@${extra_vars_file}"
fi fi
if [[ -z $region ]]; then if [[ -z $region ]]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment