This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ wget -O ~/test-repo.sh "https://gist.githubusercontent.com/isaldarriaga/b2de4a889784f0505aa2e9a5fb4002bc/raw/95a7f8b65293b11b91abe4dfc18af063f7532345/test-repo.sh" && sh ~/test-repo.sh prod convergence.cloud 192.168.246 | |
--2018-08-23 17:51:54-- https://gist.githubusercontent.com/isaldarriaga/b2de4a889784f0505aa2e9a5fb4002bc/raw/95a7f8b65293b11b91abe4dfc18af063f7532345/test-repo.sh | |
Resolving gist.githubusercontent.com (gist.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ... | |
Connecting to gist.githubusercontent.com (gist.githubusercontent.com)|151.101.0.133|:443... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 3371 (3.3K) [text/plain] | |
Saving to: ‘/home/ivan/test-repo.sh’ | |
/home/ivan/test-repo.sh 100%[==============================================================================>] 3.29K --.-KB/s in 0.003s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TLD=$1 | |
NET=$2 | |
mkdir --parents $HOME/firewall/ | |
echo && echo && \ | |
echo "(1/9) backing-up previous configured FQDN.." && echo && sleep 1s | |
TIMESTAMP=$(date "+%Y-%m-%d_%H-%M-%S") | |
if [ -f "$HOME/firewall/fqdn" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
ENV=$1 | |
TLD=$2 | |
NET=$3 | |
echo && echo && \ | |
echo "(1/1) Getting server's test script.." && echo && \ | |
wget -nv -O /tmp/test-repo-server.sh "https://gist.githubusercontent.com/isaldarriaga/076632c3e727a197bf9cd40d3064e6e1/raw/87f67e5a472c7c07fd04aa0989ea2c43629d456b/test-repo-server.sh" | |
# YUM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
yum update -y && yum install -y wget | |
for FILE in $(find /etc/yum.repos.d/ -type f) | |
do | |
echo && \ | |
echo "==============================================================" && \ | |
echo "REMOTE TEST - FILE: $FILE" && \ | |
echo "==============================================================" && echo | |
for URL in $(cat $FILE | grep -v '\$' | grep http | awk -F '=' '{print $2}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[centos-openshift-origin] | |
name=CentOS OpenShift Origin | |
baseurl=http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin/ | |
enabled=1 | |
gpgcheck=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-PaaS | |
[centos-openshift-origin-testing] | |
name=CentOS OpenShift Origin Testing | |
baseurl=http://buildlogs.centos.org/centos/7/paas/x86_64/openshift-origin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[centos-openshift-origin310] | |
name=CentOS OpenShift Origin | |
baseurl=http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin310/ | |
enabled=1 | |
gpgcheck=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-PaaS | |
[centos-openshift-origin310-testing] | |
name=CentOS OpenShift Origin Testing | |
baseurl=http://buildlogs.centos.org/centos/7/paas/x86_64/openshift-origin310/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[centos-openshift-origin310] | |
name=CentOS OpenShift Origin | |
baseurl=http://mirror.centos.org/centos/7/paas/x86_64/openshift-origin310/ | |
enabled=1 | |
gpgcheck=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-PaaS | |
[centos-openshift-origin310-testing] | |
name=CentOS OpenShift Origin Testing | |
baseurl=http://buildlogs.centos.org/centos/7/paas/x86_64/openshift-origin310/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Note: OpenShift repositories under CentOS may be shipped through the | |
# "centos-release-openshift-origin" package which configures the repository. | |
# This task matches the file names provided by the package so that they are | |
# not installed twice in different files and remains idempotent. | |
- name: Configure origin gpg keys | |
copy: | |
src: "origin/gpg_keys/openshift-ansible-CentOS-SIG-PaaS" | |
dest: "/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-PaaS" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TASK [openshift_control_plane : Report control plane errors] ********************************************************************************************************************************************************************************** | |
task path: /home/ivan/example.com/dev-ops/kube-prod/origin/openshift-ansible-v3.10/roles/openshift_control_plane/tasks/main.yml:252 | |
fatal: [prod-master-01.example.com]: FAILED! => { | |
"changed": false, | |
"msg": "Control plane pods didn't come up" | |
} | |
fatal: [prod-master-02.example.com]: FAILED! => { | |
"changed": false, | |
"msg": "Control plane pods didn't come up" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prod-master-03.example.com | SUCCESS | rc=0 >> | |
DOCKER IMAGES: | |
REPOSITORY TAG IMAGE ID CREATED SIZE | |
docker.io/openshift/origin-node v3.10 9f1821bc44c6 46 hours ago 1.27 GB | |
docker.io/openshift/origin-control-plane v3.10 7454912cb385 46 hours ago 816 MB | |
docker.io/openshift/origin-pod v3.10.0 105d0a0070c3 46 hours ago 223 MB | |
-------------- | |
DOCKER PS: | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
093150d73ded docker.io/openshift/origin-pod:v3.10.0 "/usr/bin/pod" 6 minutes ago Up 6 minutes k8s_POD_master-api-prod-master-03.example.com_kube-system_4dccbd32c9fadb7a7f54553af07d7328_0 |
NewerOlder