p4-cache-test.yml #1

  • //
  • guest/
  • russell_jackson/
  • ansible-sdp/
  • inventories/
  • host_vars/
  • p4-cache-test.yml
  • View
  • Commits
  • Open Download .zip Download (1 KB)
# AWS EC2 test host: ec2-3-135-203-141.us-east-2.compute.amazonaws.com
# Ubuntu 26.04 LTS, single 100GB root disk, no separate p4 volumes.

# Connection (overrides ansible.cfg defaults for this host only)
ansible_host: ec2-3-135-203-141.us-east-2.compute.amazonaws.com
ansible_user: ubuntu
ansible_ssh_private_key_file: /tmp/p4-cache-ubuntu-testing.pem
ansible_become: true
ansible_python_interpreter: /usr/bin/python3

# workflow vars
perforce_clean: false
dummy_interface: false       # Not needed on EC2 (single NIC, no multi-homed licensing)
copy_license: false          # Placeholder license file in repo is not valid
perforce_depots_use_nfs: false
install_broker: false        # Placeholder SSL cert/key in repo would prevent broker from starting

# Server identity
perforce_dnsname: "p4-cache-test"
perforce_standby_dnsname: "p4-cache-test-standby"
perforce_master_id: "master"
perforce_replica_id: "standby2"
p4serviceuser: "svc_master"
perforce_server_type: "p4d_master"

# Volume paths (all on the single root disk for this test instance)
perforce_online_metadata_volume: "mnt/p4meta"
perforce_offline_metadata_volume: "mnt/p4meta"
perforce_data_volume: "mnt/p4data"
perforce_common_volume: "{{ perforce_data_volume }}"
perforce_log_volume: "mnt/p4logs"

target_server: "{{ perforce_dnsname if perforce_server_type == 'p4d_edgerep' else commit_dns }}"
# Change User Description Committed
#1 32703 Russell C. Jackson (Rusty) Ubuntu 26.04 compatibility fixes + sudoers refactor + p4-cache-test host.

- ansible.cfg: switch inventory/log paths from a stale absolute path to
  project-relative so the playbook runs from any clone location.

- inventories/p4-sdp-install.yml + host_vars/p4-cache-test.yml: add new
  EC2 test host (ec2-3-135-203-141.us-east-2.compute.amazonaws.com) as a
  p4d_master with install_broker=false, copy_license=false,
  dummy_interface=false, and single-disk volumes on root.

- roles/perforce-sdp-install/tasks/dependencies.yml: write the sysctl
  tuning block to /etc/sysctl.d/99-perforce.conf (create: yes) instead
  of /etc/sysctl.conf -- Ubuntu 26.04 no longer ships sysctl.conf.

- roles/perforce-sdp-install/handlers/main.yml: restart_sysctl now runs
  'sysctl --system' to pick up drop-in files.

- roles/perforce-sdp-install/{tasks/install.yml,tasks/sudo.yml,
  templates/sudoers_perforce_user.j2}: replace the
  '/bin/systemctl * p4*' rule (rejected by modern sudo as a wildcard in
  command args) with a Cmnd_Alias enumerating start/stop/restart/status
  /reload/is-active/is-enabled/show for p4d_<id> and p4broker_<id>.
  Both task locations now use the same template and validate via
  'visudo -cf' before placement.