Reposerver Notes.md 1.3 KB

Reposerver Notes.md

How to add a new package to the reposerver (which we want to move to S3)

msoc-repo

drop it in /var/www/html/redhat/msoc/Packages make sure it's own by apache sudo -u apache /bin/bash cd /var/www/html/redhat && createrepo msoc exit restorecon -R /var/www/html/redhat/

#oneliner
chown -R apache:apache /var/www/html/redhat/msoc/Packages/ && cd /var/www/html/redhat/ && sudo -u apache createrepo msoc && restorecon -R /var/www/html/redhat/

#clean out the cache on the target server
yum clean all

#view the available packages
yum --disablerepo="*" --enablerepo="msoc-repo" list available

yum install savinstpkg

splunk repo

05/06/2020

Defined in salt/fileroots/splunk/new_install.sls /etc/yum.repos.d/splunk.repo http://reposerver.msoc.defpoint.local/splunk

New Splunk Version Splunk 7.2 needs to be created for PROD moose

cd /var/www/html/splunk
mkdir 7.2
chown -R apache: .
cd 7.2
createrepo `pwd`
wget -O splunk-7.2.5.1-962d9a8e1586-linux-2.6-x86_64.rpm 'https://www.splunk.com/page/download_track?file=7.2.5.1/linux/splunk-7.2.5.1-962d9a8e1586-linux-2.6-x86_64.rpm&ac=&wget=true&name=wget&platform=Linux&architecture=x86_64&version=7.2.5.1&product=splunk&typed=release'
chown -R apache: .
cd /var/www/html/splunk/7.2
createrepo `pwd`
restorecon -R /var/www/html/splunk