Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
RobWC committed Apr 6, 2015
2 parents 8df8451 + 421a872 commit bb0c084
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 2 deletions.
Binary file added docs/Images/Reggie-Portal-SignIn-WithName.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/Images/Reggie-Portal-SignIn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/Images/Reggie-Portal-StudentSummary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 19 additions & 2 deletions docs/registeringyourhost.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
Registering Your Host to the Hub
================================

As each Student's vSRX will be using DHCP to assign addresses to their Untrust interface, we need to register them with the central database.

## Student Registration
The process is mostly straight forward, and simply requires you to enter your name.

1. Open the Web Browser on your local NetDevops Machine and connect to http://10.10.0.10/ . You will now be presented with the following image
- It is important to do this from the NetDevOps machine and not your local laptop browser.
![Student Portal1](https://github.com/JNPRAutomate/JNPRAutomateDemo-Student/blob/master/docs/Images/Reggie-Portal-SignIn.png)
2. Enter your name in the Text box on the screen and hit submit.
![Student Portal2](https://github.com/JNPRAutomate/JNPRAutomateDemo-Student/blob/master/docs/Images/Reggie-Portal-SignIn-WithName.png)
3. You should now be redirected to the Student Summary page that lists all of your IP details for the rest of this lab.
- You should copy these details down onto the printed hand out for future reference.
- If you need this information again, returning to the registration portal will take you directly to this summary screen.
![Student Portal3](https://github.com/JNPRAutomate/JNPRAutomateDemo-Student/blob/master/docs/Images/Reggie-Portal-StudentSummary.png)

After you have registered, the Head End SRX will have all the details required for you to continue your lab. The proctor will run an Ansible playbook that connects to the Reggie API and automatically provisions your VPN.

Tools
-----

Using CURL
- Web Browser
- "Reggie" Student Registration Portal
41 changes: 41 additions & 0 deletions proctor/ansible/playbooks/deploy_reggie.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
- name: Deploy Reggie Registration Portal
hosts: public_server
connection: local
gather_facts: no
vars:
# reggie_repo_url: "https://github.com/JNPRAutomate/reggie/archive/master.zip"
reggie_repo_url: "https://github.com/JNPRAutomate/reggie.git"
reggie_zip: "reggie.zip"
reggie_app_root: "/reggie"
reggie_user: "vagrant"
reggie_group: "vagrant"

tasks:
- name: creates reggie root directory
sudo: yes
file:
path="{{ reggie_app_root }}"
state=directory
owner="{{ reggie_user }}"
group="{{ reggie_group }}"
mode=0775

- name: Download reggie repo (GitHub)
git:
repo="{{ reggie_repo_url }}"
dest="{{ reggie_app_root }}"

# - name: create pyenv environment
# pyenv_path: "/home/{{ reggie_user }}/.pyenv"
# pyenv_owner: "{{ reggie_user }}"
# pyenv_python_versions:
# - "3.4.1"
# - "2.7.8"
# pyenv_virtualenvs:
# - venv_name: "reggie_env"
# py_version: "2.7.8"

- name: install reggie pip requirements
pip:
requirements="{{ reggie_app_root }}/requirements.txt"

0 comments on commit bb0c084

Please sign in to comment.