Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
879b8976
Commit
879b8976
authored
Dec 11, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
defaulting common_hostname to empty string
also extra vars overrides developer sandbox defaults
parent
c89dfd6d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
playbooks/roles/common/defaults/main.yml
+1
-1
playbooks/roles/common/tasks/main.yml
+3
-3
util/jenkins/ansible-provision.sh
+1
-1
No files found.
playbooks/roles/common/defaults/main.yml
View file @
879b8976
...
...
@@ -33,7 +33,7 @@ COMMON_UBUNTU_APT_KEYSERVER: "http://keyserver.ubuntu.com/pks/lookup?op=get&fing
# do not include http/https
COMMON_GIT_MIRROR
:
'
github.com'
# override this var to set a different hostname
COMMON_HOSTNAME
:
!!null
COMMON_HOSTNAME
:
"
"
# Set to true to customize DNS search domains
COMMON_CUSTOM_DHCLIENT_CONFIG
:
false
...
...
playbooks/roles/common/tasks/main.yml
View file @
879b8976
...
...
@@ -95,18 +95,18 @@
-
name
:
update /etc/hosts
template
:
src=hosts.j2 dest=/etc/hosts
when
:
COMMON_HOSTNAME
when
:
COMMON_HOSTNAME
|length > 0
register
:
etc_hosts
-
name
:
update /etc/hostname
template
:
src=hostname.j2 dest=/etc/hostname
when
:
COMMON_HOSTNAME
when
:
COMMON_HOSTNAME
|length > 0
register
:
etc_hostname
-
name
:
run hostname
shell
:
>
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
template
:
src=etc/dhcp/dhclient.conf.j2 dest=/etc/dhcp/dhclient.conf
...
...
util/jenkins/ansible-provision.sh
View file @
879b8976
...
...
@@ -57,7 +57,7 @@ extra_var_arg="-e@${extra_vars_file}"
if
[[
$edx_internal
==
"true"
]]
;
then
# if this is a an edx server include
# 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
if
[[
-z
$region
]]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment