be_app_path: "/home/{{ deployer_user.name }}/{{ app_name }}" fe_app_name: "{{ app_name }}_fe" fe_app_path: "/home/{{ deployer_user.name }}/{{ fe_app_name }}" tapefiles_dir: "./taperole" deployer_user: name: deployer groups: - deployer - staff # Path where this playbook is being run from local_dir: "{{lookup('env', 'PWD')}}" # Puma Configs puma_workers: "{{ansible_processor_cores}}" puma_pidfile: "{{be_app_path}}/pids/puma.pid" puma_state_path: "{{be_app_path}}/pids/puma.state" puma_sockfile: "{{ be_app_path }}/tmp/puma_{{ app_name }}.sock" swap_file: path: /swp size_kb: "{{ 3 * 1024 * 1024 }}" # echo 'password' | md5 database_password: 286755fad04869ca523320acce0dc6a4 precompile_assets: true # Sets server_name in the nginx sites-enabled file app_url: false fe_build_command: npm run build allowed_ports: - 80 - 443 nodejs_version: "8.x" no_changes_found_error: | ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ No Changes detected on remote branch proceeding with deploy anyway ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ # Postgres Backups backup_hosts: - production backup_dir: file:///var/lib/postgresql/backups backup_schedule: 0 4 * * * backup_enabled: yes backup_cron: yes backup_user: root backup_postgres_user: postgres backup_postgres_host: localhost # PG Settings postgresql_version: 9.4 backup_profiles: - name: postgresql schedule: "{{ backup_schedule }}" source: postgresql://{{ app_name }}_{{ be_app_env }} target: "{{ backup_dir }}" user: root rbenv: env: system version: v1.0.0 ruby_version: 2.4.0 rbenv_group: root # Redis # Disable transparent hugepage in redis because it causes memory leak issues # This change does not persist on server reboot. We have to modify /etc/default/grub # for a changes to take full effect. # Check out roles/redis/tasks/main.yml sysfs_sysfs_d_files: 001-transparent-hugepage.conf: - attribute: kernel/mm/transparent_hugepage/enabled value: never