This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,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 |
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,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" |