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
| # ref: https://docs.openstack.org/diskimage-builder/latest/user_guide/building_an_image.html | |
| - local_loop: | |
| name: image0 | |
| size: 64GiB | |
| - partitioning: | |
| base: image0 | |
| label: mbr | |
| partitions: | |
| - name: root |
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
| #cloud-config | |
| users: | |
| - default | |
| - name: root | |
| network: | |
| version: 2 | |
| ethernets: | |
| eth0: | |
| dhcp6: true |
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 kubernetes import client, config | |
| from kubernetes.client.rest import ApiException | |
| pod_binarys = [] | |
| pods = {} | |
| nodes = ['tscontrol1', 'tscontrol2', 'tscontrol3'] | |
| # Configs can be set in Configuration class directly or using helper utility | |
| config.load_kube_config() |
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
| bootstrap_os: centos | |
| etcd_data_dir: /var/lib/etcd | |
| bin_dir: /usr/local/bin | |
| cloud_provider: openstack | |
| openstack_lbaas_enabled: True | |
| openstack_lbaas_subnet_id: "398c0136-af16-45e9-95be-d276eb8bcbd0" | |
| openstack_lbaas_floating_network_id: "70f4cb52-7305-484d-9f71-e4d51f689e14" | |
| openstack_lbaas_use_octavia: False | |
| openstack_lbaas_method: "ROUND_ROBIN" | |
| openstack_lbaas_provider: "haproxy" |
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 | |
| for i in base updates extras centos-openstack-ocata centos-qemu-ev; do | |
| echo "[$i] | |
| name=$i | |
| baseurl=http://192.168.123.137:8080/repo/$i | |
| enabled=1 | |
| gpgcheck=0 | |
| " | |
| done |
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
| [masters] | |
| openshift-master0[1:3].test.example.com | |
| [etcd] | |
| openshift-master0[1:3].test.example.com | |
| [nodes] | |
| openshift-master0[1:3].test.example.com openshift_node_group_name="node-config-master" | |
| openshift-infra0[1:2].test.example.com openshift_node_group_name="node-config-infra" | |
| openshift-node0[1:2].test.example.com openshift_node_group_name="node-config-compute" | |
| [nfs] | |
| openshift-master01.test.example.com |
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
| - name: turn off selinux | |
| selinux: | |
| policy: targeted | |
| state: permissive | |
| register: selinux_result | |
| - name: check kernel cmdline | |
| lineinfile: | |
| dest: /proc/cmdline | |
| line: "user_namespace.enable=1" |
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/env bash | |
| set -x | |
| # debug mode | |
| debug=${1:-false} | |
| download=${2:-false} | |
| # today' date | |
| snapshot_date=$(date +%y%m%d) |
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/env python2 | |
| import simplejson as json | |
| import csv | |
| with open('hlm_180903.log', 'r') as fn: | |
| array = [] | |
| for stat_str in fn: | |
| array.append(stat_str) | |
| with open('tango-hypervisor-stat.csv', mode='w') as stat_file: |
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
| --- | |
| product: | |
| version: 2 | |
| control-planes: | |
| - name: control-plane-1 | |
| control-plane-prefix: cp1 | |
| region-name: region1 | |
| failure-zones: | |
| - AZ1 |
NewerOlder