Przeglądaj źródła

phantom, portal, teleport notes

Brad Poulton 4 lat temu
rodzic
commit
0b70a7efb0
3 zmienionych plików z 42 dodań i 10 usunięć
  1. 27 4
      Phantom Upgrade Notes.md
  2. 14 6
      Portal Notes.md
  3. 1 0
      Teleport Notes.md

+ 27 - 4
Phantom Upgrade Notes.md

@@ -1,6 +1,6 @@
 # Phantom Upgrade Notes
 
-IMPORTANT NOTE: During the mgiration to GovCloud, we had to use the limited offline rpms. This changes the upgrade process. The notes below may be outdated. Reference https://docs.splunk.com/Documentation/Phantom/4.9/Install/UpgradeOffline
+IMPORTANT NOTE: During the migiration to GovCloud, we had to use the limited offline rpms. This changes the upgrade process. The notes below may be outdated. Reference https://docs.splunk.com/Documentation/Phantom/4.9/Install/UpgradeOffline
 
 Recommend you see the installation notes in `Phantom Notes.md`
 
@@ -13,6 +13,15 @@ BE SURE TO HAVE AT MOST 55% FREE space  ( 45% used space)
 backup docs
 https://docs.splunk.com/Documentation/Phantom/4.10.2/Admin/Restorefromabackup
 
+# 4.10
+05/2021
+
+Follow Splunk Docs! 
+Switched XDR from offline RPM install to Phantom repo install 
+I had to upgrade to latest version in 4.9 before upgrading to 4.10
+Use tmux to avoid SSH timeout during upgrade
+
+
 # 4.9
 08/2020
 
@@ -27,9 +36,12 @@ Stop Phantom
 Clean yum 
 `yum clean all`
 
-Take an AWS snapshot in addition to the automatic snapshots!
+Take an AWS snapshot in addition to the automatic snapshots! should be for a 60 GB volume
 Naming Scheme: phantom-pre-upgrade-backup-<current-version>
 
+Run a backup!
+`sudo phenv python ibackup.pyc --backup`
+
 Update OS & reboot (only if kernel updated)
 `yum update --exclude=nginx`
 
@@ -42,13 +54,22 @@ Disable WAL
 restart postgres
 ```
 # 2021-04-12: While troubleshooting a problem, noticed we're on postgres11 now.
-#/opt/phantom/bin/phsvc restart postgresql-9.4
 /opt/phantom/bin/phsvc restart postgresql-11
 ```
 
 Install new repo and keys
 `rpm -Uvh https://repo.phantom.us/phantom/4.9/base/7Server/x86_64/phantom_repo-4.9.35731-1.x86_64.rpm`
 
+Centos7 (Caasp)
+`rpm -Uvh https://repo.phantom.us/phantom/4.10/base/7/x86_64/phantom_repo-4.10.3.51237-1.x86_64.rpm`
+
+Troubleshooting
+Error: Error - Phantom requires that the user 'phantom' has access to cron.
+Solution: `vim /etc/cron.allow`   and add phantom
+
+Error!  It looks like you don't have enough space in your /tmp directory
+Your /tmp directory must have a capacity of at least 5GB
+If you would like to ignore this check, please re-run with the option --no-space-check
 ## Upgrade
 
 Upgrade script
@@ -57,6 +78,7 @@ Upgrade script
 Post Upgrade (Run IF the upgrade script produces the message!)
 `su - postgres -c '/usr/pgsql-11/bin/vacuumdb -h /tmp --all --analyze-in-stages'`
 
+Run this to re-setup or backups
 `phenv python3 /opt/phantom/bin/ibackup.pyc --setup`
 
 Verify postgres version 
@@ -64,7 +86,8 @@ Verify postgres version
 
 Login into web to accept EULA
 
-After the upgrade is complete, from Main Menu > Administration > Administration Settings > Search Settings, select Playbooks from the drop-down menu, then click the Reindex Search Data button.
+Administration > Product Settings > Telemetry > OFF
+
 
 Post Upgrade Steps
 1. Review System Health

+ 14 - 6
Portal Notes.md

@@ -20,14 +20,11 @@ salt 'customer-portal*' cmd.run
 salt 'customer-portal*' test.ping
 salt 'customer-portal*' cmd.run 'docker images'
 salt 'customer-portal*' cmd.run 'docker container ls'
-salt 'customer-portal*' cmd.run 'docker stop portal'
-salt 'customer-portal*' cmd.run 'docker stop nginx'
-salt 'customer-portal*' cmd.run 'docker rm portal'
-salt 'customer-portal*' cmd.run 'docker rm nginx'
+salt 'customer-portal*' cmd.run 'docker stop portal nginx'
+salt 'customer-portal*' cmd.run 'docker rm portal nginx'
 salt 'customer-portal*' cmd.run 'docker images'
 salt 'customer-portal*' cmd.run 'docker images --digests'
-salt 'customer-portal*' cmd.run 'docker rmi <image-id>'
-salt 'customer-portal*' state.sls docker
+salt 'customer-portal*' cmd.run 'docker rmi <image-ids>'
 salt 'customer-portal*' state.sls docker.portal --output-diff
 ```
 
@@ -44,6 +41,17 @@ salt -G 'ec2_tags:Name:customer-portal' state.sls docker
 salt -G 'ec2_tags:Name:customer-portal' state.sls docker.portal
 ```
 
+### Deploy specific tag to nginx and/or portal
+
+```
+# login to ECR using the docker salt state
+salt 'customer-portal*' state.sls docker.portal test=true --output-diff
+# create a new branch and modify the file to the needed tags then push it up.  
+salt 'customer-portal*' state.sls docker.portal-revert saltenv=feature/bp_na_salt_portal_tag
+# once you are done delete the branch
+```
+
+
 ## Command line access
 docker exec -ti nginx bash
 docker exec -ti portal bash

+ 1 - 0
Teleport Notes.md

@@ -12,6 +12,7 @@ FOR MORE INFORMATION SEE HERE: https://github.xdr.accenturefederalcyber.com/mdr-
 tsh --proxy=teleport.xdr.accenturefederalcyber.com login
 tsh ls
 tsh --proxy=teleport.xdr.accenturefederalcyber.com ls
+tsh --proxy=teleport.xdrtest.accenturefederalcyber.com ssh caasp-phantom
 ```