{"id":24911510,"url":"https://github.com/hackoregon/hacko-infrastructure","last_synced_at":"2025-03-28T03:14:56.046Z","repository":{"id":77886703,"uuid":"59439577","full_name":"hackoregon/hacko-infrastructure","owner":"hackoregon","description":"Builds hackoregong AWS vpc","archived":false,"fork":false,"pushed_at":"2017-03-02T04:17:54.000Z","size":42,"stargazers_count":2,"open_issues_count":3,"forks_count":2,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-02-02T04:23:26.192Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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","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-05-22T23:40:34.000Z","updated_at":"2016-06-10T03:00:31.000Z","dependencies_parsed_at":"2023-03-12T02:23:45.157Z","dependency_job_id":null,"html_url":"https://github.com/hackoregon/hacko-infrastructure","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%2Fhacko-infrastructure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackoregon%2Fhacko-infrastructure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackoregon%2Fhacko-infrastructure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackoregon%2Fhacko-infrastructure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hackoregon","download_url":"https://codeload.github.com/hackoregon/hacko-infrastructure/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:36.943Z","updated_at":"2025-03-28T03:14:56.035Z","avatar_url":"https://github.com/hackoregon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"#\n# Here are the basic steps to get this repo working\n\n1. Change names and values in group_vars/all/main.yml as appropriate\n\n4. Use ansible-vault to create the vault file:\nansible-vault create group_vars/all/vault\n\nYou need to define the following variables in the group_vars/all/vault file:\nAll password hashes should be generated with: mkpasswd --method=SHA-512\n-------------------------------------------\naws_access_key: xxxxxxxxxxxxxxxxxxxx\naws_secret_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\nkeypair: mykepair\n\nwebmin_user: webmin\nwebmin_passwd: \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n\n# Users are in a dictionary structure like so\nmy_users:\n  user1:\n    group: \"admin\"\n    shell: \"/bin/bash\"\n    passwd: \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n    vpn_phrase: \"TheVPNPassPhrase\"\n    pub_key:  ssh-rsa xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n  user2:\n    group: \"wheel\"\n    shell: \"/bin/bash\"\n    passwd: \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n    vpn_phrase: \"AnotherVPNPassPhrase\"\n    pub_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n\n-------------------------------------------\npub_key is the user's id_rsa.pub file. Just paste the whole contents of that file after pub_key:\n\n5. edit make-vpc.yml and increment the counter for the id variable:\n\"id: '{{bastion_group}}_{{region}}02'\" becomes \"id: '{{bastion_group}}_{{region}}03'\", etc \nThis may not be strictly necessary, but the id variable implements ec2 client tokens for idempotency.\n\nhttp://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html\n\n6. edit all localized names in make-vpc.yml. update hosts: tag_Name_natvpn_hackoregon\nin particular. the last portion should match the \"owner\" var.\n\n7. add the vault password you used in step 3 to ~/.vault_pass.txt. chmod 600 ~/.vault_pass.txt\n\n7. From the repo root: ./launchvpc.sh\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackoregon%2Fhacko-infrastructure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackoregon%2Fhacko-infrastructure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackoregon%2Fhacko-infrastructure/lists"}