forked from picoCTF/picoCTF
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- minor fixes and clarifications in terrafrom files. thanks @archang31 - restrict character set in gen_vault to prevent issues with escaping - remove run_py_in_venv.sh and update playbooks, prevents hacky arg passing.
- Loading branch information
1 parent
d5a1915
commit 18e01de
Showing
12 changed files
with
69 additions
and
69 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -10,20 +10,20 @@ all: | |
|
||
hosts: | ||
shell: | ||
hostname : "picoCTF-shell-PROD" | ||
ansible_host : "shell.example.com" # UPDATE: with fully qualified domain name | ||
hostname : "picoCTF-shell-PROD" | ||
ansible_host : "shell.example.com" # UPDATE: with fully qualified domain name | ||
web: | ||
hostname : "picoCTF-web-PROD" | ||
ansible_host : "ctf.example.com" # UPDATE: with fully qualified domain name | ||
hostname : "picoCTF-web-PROD" | ||
ansible_host : "ctf.example.com" # UPDATE: with fully qualified domain name | ||
|
||
vars: | ||
# UPDATE: this is the default key specified in terraform/variables.tf | ||
# that was automatically added to the machines when launched | ||
ansible_ssh_private_key_file: "~/.ssh/picoCTF_production_rsa" | ||
ansible_ssh_private_key_file : "~/.ssh/picoCTF_production_rsa" | ||
|
||
# UPDATE: with an administrator's email | ||
# Used in auto_add_web_admin and to get SSL/TLS certificates | ||
admin_email : "[email protected]" | ||
admin_email : "[email protected]" | ||
|
||
### | ||
# *** Reasonable defaults *** | ||
|
@@ -35,50 +35,50 @@ all: | |
### | ||
|
||
# ubuntu is the default user for the AWS Ubuntu AMI | ||
ansible_user : "ubuntu" | ||
ansible_user : "ubuntu" | ||
|
||
## Source Settings: | ||
# This is how the picoCTF platform source code will be sent to the remote | ||
# hosts. Since you already have a copy of the source code checked out | ||
# this simply pushes your current copy to the remote host (preventing any | ||
# complex interactions with private git repositories). See ansible/common/tasks | ||
sync_mode : "source" | ||
pico_src_dir : "{{ playbook_dir }}/../" | ||
sync_mode : "source" | ||
pico_src_dir : "{{ playbook_dir }}/../" | ||
|
||
# SSH admin keys (Optional) | ||
admin_keys : [] | ||
admin_keys : [] | ||
|
||
## Web automation and Features (Optional): | ||
# These are currently setup to fully configure and start an event. This | ||
# is appropriate for testing purposes but if you are planning on running | ||
# a live event you will likely want to disable some of these. | ||
auto_add_web_admin : True | ||
auto_add_shell : True | ||
auto_load_problems : True | ||
auto_start_competition : True | ||
enable_docker : True | ||
auto_add_web_admin : True | ||
auto_add_shell : True | ||
auto_load_problems : True | ||
auto_start_competition : True | ||
enable_docker : True | ||
|
||
## HTTPS: | ||
# You can automatically obtain free SSL/TLS certificates from Let's | ||
# Encrypt by using certbot. In order for this functionality to work | ||
# you must have a domain registered and pointing at your hosts. The | ||
# `ansible_host` for both `web` and `shell` should be domain names. | ||
enable_certbot : True | ||
enable_certbot : True | ||
|
||
# Set whether `ansible_host` is an IP address or a domain name (DNS) In a | ||
# production environment we recommend DNS so that you can easily use SSL/TLS | ||
host_type : "DNS" # valid options 'IP' or 'DNS' | ||
host_type : "DNS" # valid options 'IP' or 'DNS' | ||
|
||
## Database settings: | ||
# Should not need to be changed. | ||
on_aws : True | ||
mongodb_web_user : "picoWeb" | ||
env_db_users: | ||
on_aws : True | ||
mongodb_web_user : "picoWeb" | ||
env_db_users : | ||
- { | ||
name : "{{ mongodb_web_user }}", | ||
password : "{{ picoWeb_db_password }}", | ||
database : "{{ db_name }}", | ||
roles : readWrite | ||
name : "{{ mongodb_web_user }}", | ||
password : "{{ picoWeb_db_password }}", | ||
database : "{{ db_name }}", | ||
roles : readWrite | ||
} | ||
|
||
### | ||
|
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
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
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
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
This file was deleted.
Oops, something went wrong.