diff --git a/docs/Images/Reggie-Portal-SignIn-WithName.png b/docs/Images/Reggie-Portal-SignIn-WithName.png new file mode 100644 index 0000000..f8fe1b3 Binary files /dev/null and b/docs/Images/Reggie-Portal-SignIn-WithName.png differ diff --git a/docs/Images/Reggie-Portal-SignIn.png b/docs/Images/Reggie-Portal-SignIn.png new file mode 100644 index 0000000..cf22341 Binary files /dev/null and b/docs/Images/Reggie-Portal-SignIn.png differ diff --git a/docs/Images/Reggie-Portal-StudentSummary.png b/docs/Images/Reggie-Portal-StudentSummary.png new file mode 100644 index 0000000..e88ad48 Binary files /dev/null and b/docs/Images/Reggie-Portal-StudentSummary.png differ diff --git a/docs/registeringyourhost.md b/docs/registeringyourhost.md index 4bfd0b7..86bff1e 100644 --- a/docs/registeringyourhost.md +++ b/docs/registeringyourhost.md @@ -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 diff --git a/proctor/ansible/playbooks/deploy_reggie.yml b/proctor/ansible/playbooks/deploy_reggie.yml new file mode 100644 index 0000000..72b8132 --- /dev/null +++ b/proctor/ansible/playbooks/deploy_reggie.yml @@ -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" \ No newline at end of file