-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from willingc/playbooks
Improve comments and explanations in playbooks
- Loading branch information
Showing
21 changed files
with
223 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Custom configuration settings for Ansible application | ||
|
||
[defaults] | ||
remote_user=root | ||
hostfile=./hosts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
|
||
# This is separate because it has to be run after the instructor's | ||
# user account is setup. | ||
# This playbook is deployed separately and after `deploy.yml` since the | ||
# instructor's user account must be set up before deploying formgrader | ||
|
||
- hosts: jupyterhub_hosts | ||
roles: | ||
- formgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,4 @@ Contents | |
use-nbgrader.rst | ||
teaching-checklist.md | ||
acknowledgment.rst | ||
repo_contents.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Repository Contents | ||
|
||
## Ansible application | ||
|
||
### ansible.cfg | ||
|
||
Custom configuration settings for the Ansible application | ||
- We use to customize root access, root privileges, and ssh connection length. | ||
|
||
### ansible-conda | ||
|
||
Git submodule for `ansible-conda` application | ||
|
||
## Inventory (Ansible) | ||
|
||
### hosts.inventory | ||
|
||
Inventory file of servers (hosts) being managed by Ansible | ||
|
||
## Playbooks (Ansible) | ||
|
||
### deploy.yml (a.k.a. site.yml in Ansible jargon) | ||
|
||
### deploy_formgrade.yml | ||
|
||
### saveusers.yml | ||
|
||
## Variables (Ansible) | ||
|
||
### group_vars | ||
|
||
### host_vars | ||
|
||
## Roles (Ansible) | ||
|
||
### bash | ||
|
||
### common | ||
|
||
### cull_idle | ||
|
||
### formgrade | ||
|
||
### jupyterhub | ||
|
||
### nbgrader | ||
|
||
### newrelic | ||
|
||
### nginx | ||
|
||
### python | ||
|
||
### r | ||
|
||
### saveusers | ||
|
||
### supervisor | ||
|
||
|
||
## Development | ||
|
||
### .gitignore | ||
|
||
### .gitmodules | ||
|
||
### LICENSE | ||
|
||
### README.md | ||
|
||
## Documentation | ||
|
||
### readthedocs.yml | ||
|
||
Settings for readthedocs services | ||
|
||
### docs | ||
|
||
Directory containing sphinx documentation for the reference deployment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
# The `hosts` inventory file lists the JupyterHub servers managed by Ansible | ||
|
||
# This provides an inventory of host servers used for JupyterHub | ||
# Edit the fqdn (fully qualified domain name) for your hub server | ||
# For example: | ||
# | ||
# [jupyterhub_hosts] | ||
# www.example.com | ||
# | ||
# Save file as `hosts` (without the file type suffix) when done editing. | ||
# User tip: `hosts.example` is an example file where the contents are | ||
# ignored. Saving the file as `hosts` after editing is important. | ||
|
||
[jupyterhub_hosts] | ||
fqdn.goes.here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
--- | ||
# This playbook installs a bash environment and kernel | ||
|
||
- name: pip install bash_kernel package | ||
pip: name={{item}} state=present editable=false | ||
become: true | ||
with_items: | ||
- bash_kernel | ||
|
||
- name: install bash_kernel | ||
- name: install bash_kernel for jupyter | ||
command: python3 -m bash_kernel.install | ||
become: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
--- | ||
# This playbook restarts the network time protocol and ssh daemons | ||
|
||
- name: restart ntp | ||
service: name=ntp state=restarted | ||
become: true | ||
|
||
- name: restart sshd | ||
service: name=ssh state=restarted | ||
become: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
--- | ||
# This playbook installs the network time protocol daemon | ||
|
||
- name: install ntp | ||
apt: pkg=ntp state=present | ||
become: true | ||
notify: | ||
- restart ntp | ||
- restart ntp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.