Skip to content

Instantly share code, notes, and snippets.

View abradshaw's full-sized avatar
💭
Moved to GitLab

ab abradshaw

💭
Moved to GitLab
View GitHub Profile
#!/bin/bash
# Stop on error
set -e
# Stop on unitialized variables
set -u
# Stop on failed pipes
set -o pipefail
IP_ADDR=$(ip a s ens3| grep "inet "| awk '{ print $2}'| cut -d "/" -f1)
@abradshaw
abradshaw / setup-taiga-el7-scl.sh
Last active March 20, 2020 15:56
This script sets up Taiga, on a Centos7 server, using software collections.
#!/bin/bash
IP_ADDR="10.10.10.120"
#take care of selinx and the firewall
setsebool -P httpd_read_user_content 1
yum install -y policycoreutils-python
semanage port -m -t http_port_t -p tcp 8000
@abradshaw
abradshaw / setup-taiga-centos.sh
Created January 30, 2018 15:02 — forked from sink66/setup-taiga-centos.sh
Taiga.io minimum install & run commands / CentOS7.2
#!/bin/bash
# How to use
# 1. Replace the "YOURIP" to yourIP
#sed -i -e 's/YOURIP/192.168.x.x/g' setup-taiga-centos.sh
# 2. Run at the root
#source setup-taiga-centos.sh

Keybase proof

I hereby claim:

  • I am abradshaw on github.
  • I am abradshaw (https://keybase.io/abradshaw) on keybase.
  • I have a public key whose fingerprint is ED4F CF54 79E0 EBBF A1FC B237 708F 9A41 10F7 B139

To claim this, I am signing this object:

OAUTH_SECRET=$(grep oauth_secret /etc/pulp/server.conf | grep -v "#" | awk '{print $2}')
FORWARDERS=$(for i in $(cat /etc/resolv.conf |grep nameserver|awk '{print $2}'); do echo --capsule-dns-forwarders $i; done)
FOREMAN_OAUTH_SECRET=$(grep oauth_consumer_secret /etc/foreman/settings.yaml | grep -v "#" | awk '{print $2}')
katello-installer -v \
--capsule-parent-fqdn $(hostname) \
--capsule-dns true \