p4ms_ts_setup.sh #2

  • //
  • p4ms/
  • dev/
  • p4/
  • common/
  • site/
  • hms/
  • setup/
  • p4ms_ts_setup.sh
  • Commits
# Change User Description Committed
#2 31801 C. Thomas Tyler Refactorig hms->p4ms.
#1 31797 C. Thomas Tyler p4 merge -b HMS_to_P4MS; p4 resolve -as; p4 submit
//guest/perforce_software/hms/dev/p4/common/site/hms/setup/hms_ts_setup.sh
#8 30242 C. Thomas Tyler Updated package reference in LICENSE to refer to HMS rather than SDP license.
#7 30162 C. Thomas Tyler Hack 5G disk space safety limits down to 20M for demo environments.
#6 30124 C. Thomas Tyler hms_ts_setup.sh v3.0.0:
* Now works with now-preferred model of a stand-alone dedicated p4hms server machine.
* Adapted to SDP 2023.2.
#5 29190 C. Thomas Tyler Minor revisions; functional version.
#4 29189 C. Thomas Tyler Tweaked order of ops.
#3 29188 C. Thomas Tyler Enhanced environment isolation.
#2 29185 C. Thomas Tyler Added ParentView field to generated stream specs if P4D_VERSION is 2020.2+.

Fixed bugs in logic to cleanup *.p4s (p4 spec) files before regenerationg
from *.p4t (p4 spec template) files.
#1 29182 C. Thomas Tyler Moved HMS files from /p4/common/bin -> /p4/common/site/bin.
Moved HMS files from /p4/common/lib -> /p4/common/site/lib.
Removed dependency on SDP libs so that HMS can be deployed
with a wider variety of SDP versions.
//guest/perforce_software/hms/dev/p4/common/hms/setup/hms_ts_setup.sh
#11 27694 C. Thomas Tyler Copyright Update; non-functional change.
#10 27693 C. Thomas Tyler Fixed issue in generation of P4CONFIG file for SDP Management workspace.
#9 27692 C. Thomas Tyler Honor /p4/.p4ignore file when versioning files under /p4/common, /p4/N/bin.
#8 26857 C. Thomas Tyler Fixed typo in password file.
#7 25948 C. Thomas Tyler hms_ts_setup.sh v2.4.0:
* Adjusted so lack of any active SDP instances is no longer an error
condition, and results in an info message (not even a warning).
Previously, the typical scenario was to run this after installing a
live data p4d instance on the same host.  Now it is becoming more
common to install HMS right after running the Helix Installer, with
no live data instances, on a Linux bastion host where the p4_hms
instance is the only one intended to be on the machine.
* Minor style consistency changes with usage of quotes.
#6 25877 C. Thomas Tyler Correct substituion issue.
#5 25875 C. Thomas Tyler Added logic to generate and load branch spec file for the HMS_to_SDP
branch spec.
#4 25873 C. Thomas Tyler Added new phase to generate SDP management workspace on //sdp/main
stream.
#3 25712 C. Thomas Tyler Made hms_ts_setup.sh shellcheck compliant.

Removed custom hacks for Battle School demo from hms_ts_setup.sh.
Added generic mechanism for calling custom scripts by defining
environment variables referencing them (undoc'd) to both
hms_ts_setup.sh and reset_hms.sh.
#2 25653 C. Thomas Tyler Updated the HMS "Tight Ship" setup to work with HMS now being a
stand-lone product, layered on the SDP but separate from it.

This version has a few 'HACK' comments needed to do a demo;
these will be removed in a subsequent version.
#1 25533 C. Thomas Tyler Copied updated and new files from SDP into the new HMS "overlay" structure.

A 'p4 copy' was done in all cases, so files in this change match what they did in
the SDP.  Corresponding files in the SDP are to be deleted.  Some files will need
modification to adapt to the new HMS structure, e.g. the 'setup' tree.
//guest/perforce_software/sdp/dev/Server/Unix/setup/hms/hms_ts_setup.sh
#16 25501 C. Thomas Tyler Hardening fix for hms_ts_setup.sh
#15 25478 C. Thomas Tyler Adapted HMS setup to new SDP structure.

Bypassing pre-commit review for obvious fixes and to enable
testing.

#review-25479
#14 25114 C. Thomas Tyler Fixed bug where an extra user named REPL_OSER was created on the 'hms'
server, and the 'perforce' user was created wrongly.
#13 24474 C. Thomas Tyler In hms_ts_setup.sh, removed assumption that /p4/N is a symlink.
This account for new standard structure where /p4/N is a regular
directory on the root '/' volume containing symlinks, but is not
itself a symlink.
#12 24219 C. Thomas Tyler Changed hms remote spec for the Public Depot to be the default
'origin'.

This simplifies the update even further, so the fetch can be done
using simply 'p4 fetch' without requiring the '-r' flag to specify
a remote spec name.
#11 23455 cgeen Updates to allow an alternate P4USER and not OSUSER.
 This is because in a hardened setup OSUSER should have no permissions into perforce
#10 22401 C. Thomas Tyler hms_ts_setup.sh v1.1.1:

* Adjusted to not require 'sudo' by default, and to only check for
sudo access if '-s' flag is provided. Since the 'mkdirs.sh' script
(SDP directory structure initialization script) must have already
been run once, we can assume we don't need to run it with root when
this script runs it a second time.  The '-s' flag is there to
verify that sudo access is setup correctly if desired, as having
sudo access is preferred for HMS, since it is necessary to manage
Swarm.

* Adjusted to preferred HMS ports, 7467 for broker (PHMS on a phone
keypad, for Perforce Helix Management System), and 7468 for p4d.
#9 22268 C. Thomas Tyler Updated HMS tight ship setup script to adapt to changes in
mkdirs.sh and introduction of mkidrs.cfg.

Also fixed minor bugs in output indicating certain assumptions
were verifed after an error messsage indicated they weren't.
#8 22015 C. Thomas Tyler Corrected format of sudo file for perforce in HMS docs.

Doc correction only; no functional change.
#7 21526 C. Thomas Tyler Updated hms_ts_setup.sh:
* Adapted to recent changes in SDP structure.

* Fixed issue with doing a shallow clone with '-m1'; it must
now do a full clone to avoid a funky error.

* Updated so that failure to unset filesys.checklinks configurable
is merely a warning, not a hard error.
#6 21404 C. Thomas Tyler Added settings for P4TICKETS and P4TRUST to generated SDP
P4CONFIG file, /p4/.p4config.SDP.
#5 21403 C. Thomas Tyler Added support for SSL.

Fixed issue with '-n' mode always failing environment
safety check.

Fixed issue with confirmation to proceed (Yes was Yes,
No was No, but random text was treated as a Yes.  Now it's just
treated as random text).

Corrected log file name.
#4 21398 C. Thomas Tyler Added missing .p4ignore file to virtural stream spec
used for SDP host management workspaces.

Unset filesys.checklinks configurable.  This is set in
configure_new_server.sh.  It's a reasonable configurable
for most environments, but doesn't work well for versioning
the SDP, since it's all about versioning a structure with
symlinks in directory paths.
#3 21298 C. Thomas Tyler Updated to new default /hxdepots structure.

Completed basic implementation; now does live checkpoint.

Bypassing pre-commit review; update to new/unreleased feature.
#2 21294 C. Thomas Tyler Merged down hms dev work.
#1 21103 C. Thomas Tyler Merge down to dev from main.
//guest/perforce_software/sdp/main/Server/Unix/setup/hms/hms_ts_setup.sh
#2 21091 C. Thomas Tyler Enhancements to hms_ts_setup.sh and auxiliary files.

Enahnced preflight checks to include sudo access check,
etc.  Enhanced cosmetics.

Enhanced doc, adding Additional Setup section.

This is still a doc-only verison.

Bypassing pre-commit review.

#review-21092
#1 21081 C. Thomas Tyler Added preliminary files in support of automation of the HMS
Tight Ship installation.

The key file here hs hms_ts_setup.sh, which is currently a 'doc only'
script that documents what it is intended to do, although it doesn't
currently do anything that affects data.  The '-h' and '-man' flags
work to convey their intent.

This also contains various spec files to be used in the actual
implementation.

Bypassing pre-commit review since this is only adding new 'doc only'
code, not active software.

#review-21082