hms_ts_setup.sh #17

  • //
  • guest/
  • perforce_software/
  • sdp/
  • dev/
  • Server/
  • Unix/
  • setup/
  • hms/
  • hms_ts_setup.sh
  • Commits
# Change User Description Committed
#17 25550 C. Thomas Tyler Split HMS from SDP, such that HMS will live on as a separate product,
layered on the SDP.

See: https://swarm.workshop.perforce.com/jobs/SDP-356

Many of the files deleted here have already been copied to HMS.  See
these HMS changes:

https://swarm.workshop.perforce.com/changes/25531

https://swarm.workshop.perforce.com/changes/25533

And this branch spec: SDP_Split_2019.2_HMS

In mkrep.sh, HMS-awareness is removed from mkrep.sh, a core SDP script, and
the '-f' (Full Setup) flag has been temporarily removed.  This useful
functionality will be restored in an HMS script.  This is a big change,
so shellcheck v0.6.0 was implemented to support it.
#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