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
{ | |
"clusters": [ | |
{ | |
"nodes": [ | |
{ | |
"node": { | |
"hostnames": { | |
"manage": [ | |
"node1" | |
], |
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
# Stop all services | |
for i in etcd tendrl-monitoring-integration tendrl-api tendrl-notifier carbon-cache grafana-server tendrl-node-agent httpd ; \ | |
do \ | |
systemctl stop $i;\ | |
done | |
# Cleanup | |
rm -rf /var/lib/etcd/* | |
rm -rf /var/lib/carbon/whisper/* | |
rm -rf /var/lib/grafana/grafana.db |
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
2018-09-02 17:44:03,983 p=27009 u=root | ansible-playbook 2.4.6.0 | |
config file = /etc/ansible/ansible.cfg | |
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] | |
ansible python module location = /usr/lib/python2.7/site-packages/ansible | |
executable location = /usr/bin/ansible-playbook | |
python version = 2.7.5 (default, May 31 2018, 09:41:32) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] | |
2018-09-02 17:44:03,983 p=27009 u=root | Using /etc/ansible/ansible.cfg as config file | |
2018-09-02 17:44:04,029 p=27009 u=root | Parsed /etc/ansible/hosts inventory source with ini plugin | |
2018-09-02 17:44:08,987 p=27009 u=root | statically imported: /usr/share/ansible/openshift-ansible/roles/rhel_subscribe/tasks/satellite.yml | |
2018-09-02 17:44:09,316 p=27009 u=root | statically imported: /usr/share/ansible/openshift-ansible/roles/openshift_storage_glusterfs/tasks/mktemp.yml |
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
--- | |
# This has been tested with ansible 1.3 with these commands: | |
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=false" | |
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=true" | |
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts" | |
# NB: The type of the variable is crucial! | |
- name: Ansible Conditionals Examples | |
hosts: $hosts | |
vars_files: |
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
- apiGroups: [""] | |
resources: ["endpoints"] | |
verbs: ["get", "list", "watch", "create", "update", "patch"] | |
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
FROM registry.fedoraproject.org/fedora:latest | |
ENV NAME="kernel-test-fedora" \ | |
DESC="Kernel untar test on Fedora" \ | |
VERSION=0 \ | |
RELEASE=1 \ | |
ARCH=x86_64 \ | |
REPO="$FGC" \ | |
container=docker |
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
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
annotations: | |
pv.kubernetes.io/bound-by-controller: "yes" | |
creationTimestamp: null | |
finalizers: | |
- kubernetes.io/pv-protection | |
name: pv00099 | |
selfLink: /api/v1/persistentvolumes/pv00099 |
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
oc get pods -A -o jsonpath="{..image}" | tr -s '[[:space:]]' '\n' | sort | uniq |
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
oc completion bash >>/etc/bash_completion.d/oc_completion |
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
oc get <> | |
alertmanagerconfigs.monitoring.coreos.com kubeletconfigs.machineconfiguration.openshift.io | |
alertmanagers.monitoring.coreos.com kubeschedulers.operator.openshift.io | |
apirequestcounts.apiserver.openshift.io kubestorageversionmigrators.operator.openshift.io | |
apiservers.config.openshift.io leases.coordination.k8s.io | |
apiservices.apiregistration.k8s.io limitranges | |
appliedclusterresourcequotas.quota.openshift.io machineautoscalers.autoscaling.openshift.io | |
authentications.config.openshift.io machineconfigpools.machineconfiguration.openshift.io | |
authentications.operator.openshift.io machineconfigs.machineconfiguration.openshift.io |
OlderNewer