This file contains hidden or 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: template.openshift.io/v1 | |
| kind: Template | |
| metadata: | |
| annotations: | |
| description: This template installes Apache Zookeeper and Apache Kafka clusters. | |
| For more information about using this template see https://github.com/EnMasseProject/barnabas | |
| iconClass: fa pficon-topology | |
| openshift.io/display-name: Apache Kafka (Persistent storage) | |
| tags: messaging,datastore | |
| template.openshift.io/documentation-url: https://github.com/EnMasseProject/barnabas |
This file contains hidden or 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 blog post: https://vadosware.io/post/yet-another-cluster-reinstall-back-to-container-linux/ | |
| # This config is meant to be consumed by the config transpiler, which will | |
| # generate the corresponding Ignition config. Do not pass this config directly | |
| # to instances of Container Linux. | |
| # NOTE: This configuration is meant to work with Config Transpiler v0.8.0 | |
| # The spec is available at (https://github.com/coreos/container-linux-config-transpiler/blob/v0.8.0/doc/configuration.md) | |
| passwd: | |
| users: |
This file contains hidden or 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
| {{/* | |
| haproxy-config.cfg: contains the main config with helper backends that are used to terminate | |
| encryption before finally sending to a host_be which is the backend that is the final | |
| backend for a route and contains all the endpoints for the service | |
| */}} | |
| {{- define "/var/lib/haproxy/conf/haproxy.config" }} | |
| {{- $workingDir := .WorkingDir }} | |
| {{- $defaultDestinationCA := .DefaultDestinationCA }} | |
| {{- $router_ip_v4_v6_mode := env "ROUTER_IP_V4_V6_MODE" "v4" }} |
This file contains hidden or 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
| [root@ocp-master1 ~]# oc get logs hawkular-cassandra-1-wlmsf | |
| the server doesn't have a resource type "logs" | |
| [root@ocp-master1 ~]# oc logs hawkular-cassandra-1-wlmsf | |
| The MAX_HEAP_SIZE envar is not set. Basing the MAX_HEAP_SIZE on the available memory limit for the pod (2000000000). | |
| The memory limit is less than 2GB. Using 1/2 of available memory for the max_heap_size. | |
| The MAX_HEAP_SIZE has been set to 953M | |
| The HEAP_NEWSIZE envar is not set. Setting the HEAP_NEWSIZE to one third the MAX_HEAP_SIZE: 317M | |
| About to generate seeds | |
| Trying to access the Seed list [try #1] | |
| Setting seeds to be ;; connection timed out; no servers could be reached |
This file contains hidden or 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: List | |
| metadata: {} | |
| items: | |
| - apiVersion: v1 | |
| kind: Role | |
| metadata: | |
| creationTimestamp: null | |
| name: pod-reader | |
| rules: |
This file contains hidden or 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
| - hosts: localhost | |
| gather_facts: no | |
| vars: | |
| # structure from https://docs.ansible.com/ansible/2.5/plugins/inventory/yaml.html | |
| inventory: | |
| all: # keys must be unique, i.e. only one 'hosts' per group | |
| hosts: | |
| test1: | |
| test2: | |
| var1: value1 |
This file contains hidden or 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 | |
| BACKUP_DIR="/root/openshift_backup" | |
| BACKUP_DIR_WITH_DATE=${BACKUP_DIR}_$(date +%Y%m%d%H%M) | |
| ### Setup | |
| mkdir -p $BACKUP_DIR_WITH_DATE | |
| echo -n "Backing cluster conf" | |
| mkdir -p $BACKUP_DIR_WITH_DATE/cluster |
This file contains hidden or 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/python | |
| ## API ref EAP 6 https://docs.jboss.org/author/display/WFLY8/Management+API+reference | |
| ## API ref EAP 7 https://docs.jboss.org/author/display/WFLY10/Management+API+reference | |
| import sys | |
| import argparse | |
| import requests | |
| from requests.auth import HTTPDigestAuth | |
| import pprint |
This file contains hidden or 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
| - hosts: localhost | |
| vars: | |
| my_variable_collection: | |
| colore: rosso | |
| occhi: azzurri | |
| segno: ariete | |
| tasks: |
This file contains hidden or 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
| - hosts: localhost | |
| vars: | |
| colore: rosso | |
| tasks: | |
| - name: setto il colore rosso | |
| set_fact: colore_preferito="{{colore}}" | |
| - hosts: localhost |