main.yml #3

  • //
  • guest/
  • russell_jackson/
  • ansible-sdp/
  • inventories/
  • group_vars/
  • central/
  • main.yml
  • View
  • Commits
  • Open Download .zip Download (1 KB)
---
#  NOTE: This cannot be overriden in the inventory file unless used as host_vars
perforce_domain: "example.com"
perforce_mailfrom_email: "perforce-admin@{{ perforce_domain }}"
perforce_mailto_email: "rustyjackson@{{ perforce_domain }}"
perforce_smtp_server: "smtp.{{ perforce_domain }}"
update_dependencies: true

new_sdp: true
new_p4d: false
p4d_enabled: true
install_broker: true

perforce_id: "1"
perforce_case_sensitive: "0"
perforce_service: "p4d_{{ perforce_id }}"
perforce_ssl_prefix: ""
perforce_p4_port: "1666"
perforce_p4broker_port: "ssl:1667"
perforce_p4broker_target_port: "1666"

perforce_user: "perforce"
perforce_uid: "10666"
perforce_group: "perforce"
perforce_gid: "10666"
commit_dns: "perforce-commit.p4.example.com"
perforce_version: "25.2"
perforce_broker_version: "25.2"

perforce_admin_user: "p4admin"
# Override with ansible-vault in production
perforce_admin_user_pass: "F@stSCM!"

# Password hash created with: openssl passwd -6 -salt saltsecret
# Override with ansible-vault in production
perforce_user_password: "$6$PerforceRules$DahgNsXI/V89vqPAXzwflxe7wU09fotIVI5waJACxVd01.EQpQqd5zdnbtgaV.ylstYfQq30xGEBC7yznkE6X1"

# Additional admin users to create sudoers files for
admin_users:
  - russelljackson
# Change User Description Committed
#3 32493 Russell C. Jackson (Rusty) Created some dummy files to allow the install to run.
#2 32492 Russell C. Jackson (Rusty) Fix bugs, remove orphaned files, and apply best practices to ansible-sdp

- Fix broken Jinja2 filter syntax (|bool|) in main-playbook.yml
- Fix target_server logic comparing string literals instead of variables
- Fix package install failing on RedHat due to missing OS family guard
- Split packages into OS-agnostic and Debian-specific lists, remove duplicates
- Switch all binary downloads from HTTP to HTTPS
- Remove 7 orphaned files (unused templates, scripts, configs)
- Replace hardcoded emails in cron with template variables
- Fix inconsistent journal rotations (06:00/08:00) to use rotate_journal.sh
- Parameterize admin sudoers and perforce user password
- Fix ansible.cfg malformed vars block
- Fix ansibleuser sudo group for RedHat (wheel) vs Debian (sudo)
- Remove redundant triple broker start/restart in install.yml
- Replace shell sed with ansible.builtin.replace in monitoring role
- Fix duplicate handler and undefined variable in monitoring handlers
- Use notify handlers instead of inline commands for sysctl/THP
- Add idempotency (creates:) to pyenv install
#1 32488 Russell C. Jackson (Rusty) Ansible scaffolding for the sdp - Needs work.