Skip to content

This program is in development and is to be used for the Mitre Scout Engineering Day as a Registration Web Service. This program is for the DevOps and Deployment of the registration service using Vagrant, Ansible, Terraform, and Docker. Anyone who would like to make contributions please contact Ryan Dufrene at rdufrene@mitre.org or Walter Hiranp…

License

Notifications You must be signed in to change notification settings

ScoutEngineeringDay/SED-Deployments

Repository files navigation

SED-Deployments

This program is used to create a Vagrant mechine to host the Scount Engineering Day Web Application. Anyone who would like to help with development please contact Ryan Dufrene at rdufrene@mitre.org, or Walter Hiranpat at whiranpat@mitre.org.

Installation

The following tools are needed:

The following are some useful tools:

Contributing

Before contributing please make sure you meet the requirements stated in the CONTRIBUTING.md file

Process to contribute as non-member of the team:

  1. Fork the project
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

Setup Local Development Enviorment

This should be done by the command line of your choosing and after the required software above has been installed. (Note: Setting up the enviorment will require internet access.)

  1. Clone this repository into the folder you would like: git clone https://github.com/ScoutEngineeringDay/SED-Deployments.git
  2. Enter the new folder: cd SED-Deployments
  3. Check out the dev branch: git checkout -t origin/dev
  4. Install Vagrant Virtualbox Guest Additions plugin: vagrant plugin install vagrant-vbguest
  5. Encrypt your Ansible variables as described in the wiki page on Ansible Vault
  6. Start Vagrant: vagrant up
  7. Website should now be on localhost:8080

Now you should have an instance of the website working on your computer that is pulling code live from the /your_location_choice/content/SED-Deployments/SED-Web-Application folder.

Recompiling Website Code

After making changes to the code located in /your_location_choice/SED-Deployments/content/SED-Web-Application you will notice that the website will not automatically update.

The following steps will update the local delpyment of the website:

  1. Open command line of your choosing.
  2. Enter the folder that holds the repository: cd /your_location_choice/SED-Deployments
  3. SSH into the Vagrant mechine: vagrant ssh
  4. Enter the code source: /ansible
  5. Run the update script: ./SED-web-update.sh

Wait for the site to recompile and then refresh http://localhost:8080/.

Using Ansible Vault

To provide the password used to decrypt secrets stored in the Ansible Vault, save the password in a file named /ansible-vault.txt

Secrets files are named *.vault.yml and must all have the same password for decryption. In order to better track the variables stored in vault files, a plaintext version is stored in a corresponding *.yml file. It is the developer's responsibility to make sure that changes are reflected in both locations. For information about creating and editing vault files, see the Ansible documentation.

URLs:

About

This program is in development and is to be used for the Mitre Scout Engineering Day as a Registration Web Service. This program is for the DevOps and Deployment of the registration service using Vagrant, Ansible, Terraform, and Docker. Anyone who would like to make contributions please contact Ryan Dufrene at rdufrene@mitre.org or Walter Hiranp…

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published