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
6746fadb
Commit
6746fadb
authored
Nov 05, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding hostname role, setting hostname during provisioning
parent
9802b658
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
17 deletions
+24
-17
playbooks/edx-east/edx_provision.yml
+2
-0
playbooks/roles/edxlocal/tasks/main.yml
+0
-14
playbooks/roles/edxlocal/templates/hostname.j2
+0
-1
playbooks/roles/gh_users/tasks/main.yml
+1
-1
playbooks/roles/hostname/defaults/main.yml
+2
-0
playbooks/roles/hostname/tasks/main.yml
+17
-0
playbooks/roles/hostname/templates/hostname.j2
+1
-0
playbooks/roles/hostname/templates/hosts.j2
+1
-1
No files found.
playbooks/edx-east/edx_provision.yml
View file @
6746fadb
...
...
@@ -24,3 +24,5 @@
# gh_users hash must be passed
# in as a -e variable
-
gh_users
# Sets hostname to edx-server (default)
-
hostname
playbooks/roles/edxlocal/tasks/main.yml
View file @
6746fadb
...
...
@@ -40,17 +40,3 @@
-
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
deleted
100644 → 0
View file @
9802b658
{{ edxlocal_hostname }}
playbooks/roles/gh_users/tasks/main.yml
View file @
6746fadb
...
...
@@ -22,7 +22,7 @@
# TODO: give limited sudo access to this group
-
name
:
gh_users | grant full sudo access to gh group
copy
:
>
content="%
adm
ALL=(ALL) NOPASSWD:ALL"
content="%
gh
ALL=(ALL) NOPASSWD:ALL"
dest=/etc/sudoers.d/gh owner=root group=root
mode=0440 validate='visudo -cf %s'
...
...
playbooks/roles/hostname/defaults/main.yml
0 → 100644
View file @
6746fadb
---
hostname
:
edx-server
playbooks/roles/hostname/tasks/main.yml
0 → 100644
View file @
6746fadb
---
# A very simple role to change a hostname on an ubuntu server
-
name
:
hostname | update /etc/hosts
template
:
src=hosts.j2 dest=/etc/hosts
register
:
etc_hosts
-
name
:
hostname | update /etc/hostname
template
:
src=hostname.j2 dest=/etc/hostname
register
:
etc_hostname
-
name
:
hostname | run hostname
shell
:
>
hostname -F /etc/hostname
when
:
etc_hosts.changed or etc_hostname.changed
playbooks/roles/hostname/templates/hostname.j2
0 → 100644
View file @
6746fadb
{{ hostname }}
playbooks/roles/
edxlocal
/templates/hosts.j2
→
playbooks/roles/
hostname
/templates/hosts.j2
View file @
6746fadb
127.0.0.1 {{
edxlocal_
hostname }} localhost
127.0.0.1 {{ hostname }} localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
...
...
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