<commit_before>---
# Variables shared across all staging playbooks
ansible_user: admin

# Defined in Terrafrom (temporarily static)
db_data_device: "/dev/xvdf"
db_data_device_fstype: "ext4"
db_data_path: "/data"
db_data_mount_opts: "defaults,auto,noatime,noexec 0 0"

# Static from Terraform
db_private_ip: 10.0.1.20

# MongoDB Configuration Variables (used in configure_mongo.yml task)
mongodb_user: mongodb
mongodb_daemon_name: mongod

mongodb_apt_keyserver: keyserver.ubuntu.com
mongodb_apt_key_id: EA312927
mongodb_repo: 'deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 main'

mongodb_conf_auth: true                           # Run with security
mongodb_conf_bind_ip: "0.0.0.0"                   # IP addresses to listen on (Static)
mongodb_conf_dbpath: "{{ db_data_path }}"         # Directory for datafiles (Static)
mongodb_conf_nohttpinterface: true                # Disable http interface
mongodb_conf_journal: true                        # Enable journaling
mongodb_conf_logappend: true                      # Append to logpath instead of over-writing
mongodb_conf_logpath: /var/log/mongodb/{{ mongodb_daemon_name }}.log # Log file to send write to instead of stdout
mongodb_conf_port: 27017                          # Specify port number

# MongoDB User Variables (used in configure_auth.yml task)
# Passwords are stored outside version control
initial_admin_name: picoAdmin
initial_admin_password: "{{ <PASSWORD> }}"

mongodb_root_admin_name: rootAdmin
mongodb_root_admin_password: "{{ <PASSWORD> }}"

picoCTF_db_name: picoCTF3

# Add additional users here
mongodb_users:
  - {
    name: picoWeb,
    password: "{{ <PASSWORD> }}",
    roles: readWrite,
    database: "{{ picoCTF_db_name }}"
  }
  - {
    name: cocoWeb,
    password: "{{ <PASSWORD> }}",
    roles: readWrite,
    database: "{{ picoCTF_db_name }}"
  }
  - {
    name: cocoAdmin,
    password: "{{ <PASSWORD> }}",
    roles: "userAdminAnyDatabase,readWriteAnyDatabase",
    database: "admin"
  }

# picoCTF-web and picoCTF-shell variables
pico_repo: "https://github.com/picoCTF/picoCTF-platform"
pico_code_dir: "/vagrant"
pico_http_dir: "/srv/http/ctf"

## nginx
pico_server_name: "_"                                 # catch all [TODO]
pico_http_alias: "{{ pico_http_dir }}/$1.html"
pico_api_proxy_pass: "http://localhost:8000"
pico_api_auth_user:  "/api/user/authorize/user"
pico_api_auth_teacher: "/api/user/authorize/teacher"
pico_api_auth_admin: "/api/user/authorize/admin"
pico_site_config_name: "ctf"

pico_internal_allow: "10.0.1.0/24"
pico_game_redirect: "http://game.staging.picoctf.com"

pico_web_api_dir: "{{ web_code_dir }}"

# picoCTF-webapp
web_repo:  "https://github.com/royragsdale/picoCTF-web"
web_verison: "refactor_config"
web_code_dir:  "/picoCTF-web"
web_config_dir:  "/picoCTF-web-config"

pico_web_js_out_path: "{{ pico_web_api_dir}}/web/js/"
pico_web_coffescript_in_path: "{{ pico_web_api_dir}}/web/coffee/"

pico_web_backup_dir: "/backup"


# picoCTF-shell-manager
shellinabox_deb_path: "{{ pico_code_dir }}/configs/shellinabox/shellinabox_2.18_amd64.deb"

shell_hostname: "192.168.3.11"
web_address: "http://172.16.17.32"

shell_site_config_name: "shell"

shellinaboxd_port: "4242"
shellinabox_server_path: "http://127.0.0.1:{{ shellinaboxd_port }}/"

# [TODO] fix this path
shellinabox_js_path: "/opt/hacksports/shellinabox/ShellInABox.js"
shellinabox_js_src: "{{ pico_shell_manager_dir }}/config/ShellInABox.js"

shell_manager_repo:  "https://github.com/royragsdale/picoCTF-shell-manager"
shell_manager_verison: "remove_data_files"
pico_shell_manager_dir:  "/picoCTF-shell-manager"

shell_service_path: "/lib/systemd/system"

shellinaboxd_service_name: "shellinaboxd.service"
#shellinaboxd_src: "{{ pico_code_dir }}/scripts/{{ shellinaboxd_service_name }}"
shellinaboxd_dst: "{{ shell_service_path }}/{{ shellinaboxd_service_name }}"


pam_common_auth_src: "{{ pico_shell_manager_dir }}/config/common-auth"
sshd_config_src: "{{ pico_shell_manager_dir }}/config/sshd_config"



private_problems_repo: "<EMAIL>:picoCTF/picoCTF-problems-private.git"
private_problems_branch: "quick_merge"
private_problems_dir: "/picoCTF-problems-private"

<commit_msg>Move to personal staging branches for changes<commit_after>---
# Variables shared across all staging playbooks
ansible_user: admin

# Defined in Terrafrom (temporarily static)
db_data_device: "/dev/xvdf"
db_data_device_fstype: "ext4"
db_data_path: "/data"
db_data_mount_opts: "defaults,auto,noatime,noexec 0 0"

# Static from Terraform
db_private_ip: 10.0.1.20

# MongoDB Configuration Variables (used in configure_mongo.yml task)
mongodb_user: mongodb
mongodb_daemon_name: mongod

mongodb_apt_keyserver: keyserver.ubuntu.com
mongodb_apt_key_id: EA312927
mongodb_repo: 'deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 main'

mongodb_conf_auth: true                           # Run with security
mongodb_conf_bind_ip: "0.0.0.0"                   # IP addresses to listen on (Static)
mongodb_conf_dbpath: "{{ db_data_path }}"         # Directory for datafiles (Static)
mongodb_conf_nohttpinterface: true                # Disable http interface
mongodb_conf_journal: true                        # Enable journaling
mongodb_conf_logappend: true                      # Append to logpath instead of over-writing
mongodb_conf_logpath: /var/log/mongodb/{{ mongodb_daemon_name }}.log # Log file to send write to instead of stdout
mongodb_conf_port: 27017                          # Specify port number

# MongoDB User Variables (used in configure_auth.yml task)
# Passwords are stored outside version control
initial_admin_name: picoAdmin
initial_admin_password: "{{ <PASSWORD> }}"

mongodb_root_admin_name: rootAdmin
mongodb_root_admin_password: "{{ <PASSWORD> }}"

picoCTF_db_name: picoCTF3

# Add additional users here
mongodb_users:
  - {
    name: picoWeb,
    password: "{{ <PASSWORD> }}",
    roles: readWrite,
    database: "{{ picoCTF_db_name }}"
  }
  - {
    name: cocoWeb,
    password: "{{ <PASSWORD> }}",
    roles: readWrite,
    database: "{{ picoCTF_db_name }}"
  }
  - {
    name: cocoAdmin,
    password: "{{ <PASSWORD> }}",
    roles: "userAdminAnyDatabase,readWriteAnyDatabase",
    database: "admin"
  }

# picoCTF-web and picoCTF-shell variables
pico_repo: "https://github.com/picoCTF/picoCTF-platform"
pico_code_dir: "/vagrant"
pico_http_dir: "/srv/http/ctf"

## nginx
pico_server_name: "_"                                 # catch all [TODO]
pico_http_alias: "{{ pico_http_dir }}/$1.html"
pico_api_proxy_pass: "http://localhost:8000"
pico_api_auth_user:  "/api/user/authorize/user"
pico_api_auth_teacher: "/api/user/authorize/teacher"
pico_api_auth_admin: "/api/user/authorize/admin"
pico_site_config_name: "ctf"

pico_internal_allow: "10.0.1.0/24"
pico_game_redirect: "http://game.staging.picoctf.com"

pico_web_api_dir: "{{ web_code_dir }}"

# picoCTF-webapp
web_repo:  "https://github.com/royragsdale/picoCTF-web"
web_verison: "staging"
web_code_dir:  "/picoCTF-web"
web_config_dir:  "/picoCTF-web-config"

pico_web_js_out_path: "{{ pico_web_api_dir}}/web/js/"
pico_web_coffescript_in_path: "{{ pico_web_api_dir}}/web/coffee/"

pico_web_backup_dir: "/backup"


# picoCTF-shell-manager
shellinabox_deb_path: "{{ pico_code_dir }}/configs/shellinabox/shellinabox_2.18_amd64.deb"

shell_hostname: "192.168.3.11"
web_address: "http://172.16.17.32"

shell_site_config_name: "shell"

shellinaboxd_port: "4242"
shellinabox_server_path: "http://127.0.0.1:{{ shellinaboxd_port }}/"

# [TODO] fix this path
shellinabox_js_path: "/opt/hacksports/shellinabox/ShellInABox.js"
shellinabox_js_src: "{{ pico_shell_manager_dir }}/config/ShellInABox.js"

shell_manager_repo:  "https://github.com/royragsdale/picoCTF-shell-manager"
shell_manager_verison: "staging"
pico_shell_manager_dir:  "/picoCTF-shell-manager"

shell_service_path: "/lib/systemd/system"

shellinaboxd_service_name: "shellinaboxd.service"
#shellinaboxd_src: "{{ pico_code_dir }}/scripts/{{ shellinaboxd_service_name }}"
shellinaboxd_dst: "{{ shell_service_path }}/{{ shellinaboxd_service_name }}"


pam_common_auth_src: "{{ pico_shell_manager_dir }}/config/common-auth"
sshd_config_src: "{{ pico_shell_manager_dir }}/config/sshd_config"



private_problems_repo: "<EMAIL>:picoCTF/picoCTF-problems-private.git"
private_problems_branch: "quick_merge"
private_problems_dir: "/picoCTF-problems-private"


{'fraction_non_alphanumeric': 0.12191616766467066, 'fraction_numerical': 0.017245508982035928, 'mean_word_length': 4.6693822131704, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 12, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6249523', 'n_tokens_mistral': 3373, 'n_tokens_neox': 3196, 'n_words': 520}