{"id":24911545,"url":"https://github.com/hackoregon/application-provisioning","last_synced_at":"2025-10-19T03:46:27.060Z","repository":{"id":77886288,"uuid":"61327980","full_name":"hackoregon/application-provisioning","owner":"hackoregon","description":"Ansible playbooks and scripts","archived":false,"fork":false,"pushed_at":"2016-06-23T04:11:39.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-02-02T04:23:34.346Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hackoregon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-16T21:47:49.000Z","updated_at":"2016-06-18T21:32:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"88ef0724-db5a-4e65-aa5c-90555e506afe","html_url":"https://github.com/hackoregon/application-provisioning","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackoregon%2Fapplication-provisioning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackoregon%2Fapplication-provisioning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackoregon%2Fapplication-provisioning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackoregon%2Fapplication-provisioning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hackoregon","download_url":"https://codeload.github.com/hackoregon/application-provisioning/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245960813,"owners_count":20700781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-02T04:20:49.229Z","updated_at":"2025-10-19T03:46:22.014Z","avatar_url":"https://github.com/hackoregon.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Hackoregon Application Deployment Playbooks\n\n### Prerequisites\n-----------------\n**These instructions assume NPM is installed on your machine**\n#### Install AWS CLI\n* Mac OSX\n```\n $ sudo pip install awscli --ignore-installed six\n ```\n* Ubuntu\n```\n$ curl \"https://s3.amazonaws.com/aws-cli/awscli-bundle.zip\" -o \"awscli-bundle.zip\"\n$ unzip awscli-bundle.zip\n$ sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws\n```\nConfigure AWS CLI, replacing Access ID and Secret key with deployment credentials provided by DevOps team\n```\n$ aws configure\nAWS Access Key ID [None]: XXXXXXXXXX\nAWS Secret Access Key [None]: XXXXXXXXXX\nDefault region name [None]: us-west-2\nDefault output format [None]: ENTER\n```\nEnsure you have have access to HackOregon's AWS S3 buckets\n```\n$ aws s3 ls\n```\nYou should see something like this on the command line:\n```\n2016-06-14 14:19:22 hacko-fonts\n2016-02-08 15:34:51 hackoregon-dst\n2016-06-09 18:50:00 plot-pdx\n2016-06-09 18:52:02 plotpdx.org\n2014-04-11 13:31:16 voter-reg\n2016-06-17 11:28:02 www.cropcompass.org\n2016-06-09 22:47:36 www.plotpdx.org\n2016-06-17 17:28:44 www.programmingforprogress.org\n```\n#### Install Ansible\n* Mac OSX\n```\n$ sudo easy_install pip\n$ sudo pip install ansible\n```\n* Ubuntu\n```\n$ sudo apt-get install software-properties-common\n$ sudo apt-add-repository ppa:ansible/ansible\n$ sudo apt-get update\n$ sudo apt-get install ansible\n```\n#### Get the application deployment playbooks\n\n```\ngit clone https://github.com/hackoregon/application-provisioning\n```\n\n#### Create your credential file using ansible-vault\nCreate your vault credentials.\n* For the ***Cropcompass frontend:***\n```\nansible-vault create cropcompass-frontend/group_vars/all/vault\n```\n* For the ***Education frontend:***\n```\nansible-vault create education-frontend/group_vars/all/vault\n```\n* For the ***Hunger frontend:***\n```\nansible-vault create hunger-frontend/group_vars/all/vault\n```\nEdit the file, replacing x's with deployment credentials provided by DevOps team\n```\naws_access_key: xxxxxxxxxxxxxxxxxxxx\naws_secret_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n```\n* Note: You can save the vault file outside of the repo directory and just copy the to the appropriate **group/vars/all/vault** directory and skip this step if you need to pull the repo again\n\nCreate password file using password used to create the vault file by editing\n```\n$ vi ~/.vault_pass.txt\n```\nthen:\n```\n$ chmod 600 ~/.vault_pass.txt\n```\n\n### Deploying the static websites\n---------------------------------\nFrom your local repo root:\n\n* Cropcompass front end deploy\n```\n$ cd crompcompass-frontend\n./deployCropcompassFrontend.sh\n```\n* Education front end deploy\n```\n$ cd education-frontend\n./deployEducationFrontend.sh\n```\n\n* Hunger front end deploy\n```\n$ cd hunger-frontend\n./deployHungerFrontend.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackoregon%2Fapplication-provisioning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackoregon%2Fapplication-provisioning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackoregon%2Fapplication-provisioning/lists"}