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
OpenEdx
configuration
Commits
314c68d2
Commit
314c68d2
authored
Nov 05, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding hostname change in edxlocal
parent
13d7fd75
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
1 deletions
+27
-1
playbooks/edx-east/deploy_edxapp.yml
+1
-0
playbooks/roles/edxlocal/defaults/main.yml
+2
-1
playbooks/roles/edxlocal/tasks/main.yml
+14
-0
playbooks/roles/edxlocal/templates/hostname.j2
+1
-0
playbooks/roles/edxlocal/templates/hosts.j2
+9
-0
No files found.
playbooks/edx-east/deploy_edxapp.yml
View file @
314c68d2
...
...
@@ -4,5 +4,6 @@
gather_facts
:
True
roles
:
-
common
-
edxlocal
-
supervisor
-
edxapp
playbooks/roles/edxlocal/defaults/main.yml
View file @
314c68d2
---
edxlocal_hostname
:
edx-server
edxlocal_debian_pkgs
:
-
python-mysqldb
-
mysql-server-5.5
-
postfix
-
postfix
-
python-pycurl
playbooks/roles/edxlocal/tasks/main.yml
View file @
314c68d2
...
...
@@ -40,3 +40,17 @@
-
name
:
edxlocal | install memcached
apt
:
pkg=memcached state=present
-
name
:
edxlocal | set the hostname to edx-server (single instance only)
template
:
src=hosts.j2 dest=/etc/hosts
register
:
etc_hosts
-
name
:
edxlocal | set the hostname to edx-server (single instance only)
template
:
src=hostname.j2 dest=/etc/hostname
register
:
etc_hostname
-
name
:
edxlocal | update hostname
shell
:
>
hostname -F /etc/hostname
when
:
etc_hosts.changed or etc_hostname.changed
playbooks/roles/edxlocal/templates/hostname.j2
0 → 100644
View file @
314c68d2
{{ edxlocal_hostname }}
playbooks/roles/edxlocal/templates/hosts.j2
0 → 100644
View file @
314c68d2
127.0.0.1 {{ edxlocal_hostname }} localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
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