Skip to content

Instantly share code, notes, and snippets.

build/local-test-repo/
└── org
└── elasticsearch
└── distribution
└── zip
└── elasticsearch-oss
├── 6.7.1
│ ├── elasticsearch-oss-6.7.1.pom
│ ├── elasticsearch-oss-6.7.1.pom.md5
│ ├── elasticsearch-oss-6.7.1.pom.sha1
+ pushd /home/fedora/go/src/github.com/openshift/cluster-logging-operator
+ make image
/home/fedora/go/bin/imagebuilder
++ dirname hack/build-image.sh
...
+ repodir=/home/fedora/openshift-clusters/cluster.1570643004/repos
+ mountarg='-mount /home/fedora/openshift-clusters/cluster.1570643004/repos:/etc/yum.repos.d/'
+ echo building image quay.io/openshift/origin-cluster-logging-operator:latest - this may take a few minutes until you see any output . . .
building image quay.io/openshift/origin-cluster-logging-operator:latest - this may take a few minutes until you see any output . . .
+ imagebuilder -mount /home/fedora/openshift-clusters/cluster.1570643004/repos:/etc/yum.repos.d/ -t quay.io/openshift/origin-cluster-logging-operator:latest .
#!/bin/bash
set -euxo pipefail
if ! type -p hub > /dev/null 2>&1 ; then
echo ERROR: you must use the \"hub\" command line tool
echo for interacting with github
echo see https://github.com/github/hub
echo e.g. on Fedora - dnf -y install hub
exit 1
---
- name: set parameters for test
hosts: localhost
tasks:
- set_fact:
emptydict: {}
- set_fact:
junkdict: {'foo':'bar'}
example1:
old:
kernel_settings_parameters:
sysctl:
vm.swappiness: 40
kernel_settings_operations:
sysctl:
- {"del": "vm.swappiness"}
new:
kernel_settings_parameters:
{% if rsyslog_flows | length > 0 %}
{% for flow in rsyslog_flows %}
{% for input_name in flow.inputs %}
{% if rsyslog_input_basics.0.name == input_name %}
{% if __basics_first_time == true %}
if $inputname == "imjournal" then {
{% endif %}
{% for flow_output in flow.outputs %}
---
- hosts: node.example.com
become: true
tasks:
- name: Copy client key for 802.1x authentication
copy:
src: "/srv/data/client.key"
dest: "/etc/pki/tls/private/client.key"
mode: 0600
./examples/bond_simple.yml.lsrout
./examples/wireless_wpa_psk.yml.lsrout
./examples/eth_with_802_1x.yml.lsrout
--- ./examples/macvlan.yml 2020-09-03 18:14:44.302820045 -0600
+++ ./examples/macvlan.yml.lsrout 2020-09-09 17:48:30.434693683 -0600
@@ -18,10 +18,10 @@
state: up
parent: eth0
macvlan:
mode: bridge
--- ./examples/macvlan.yml 2020-09-03 18:14:44.302820045 -0600
+++ ./examples/macvlan.yml.lsrout 2020-09-09 17:48:30.434693683 -0600
@@ -18,10 +18,10 @@
state: up
parent: eth0
macvlan:
mode: bridge
- promiscuous: True
- tap: False
+ promiscuous: true
--- ./tests/tests_change_fs.yml 2020-09-03 18:14:46.369832510 -0600
+++ ./tests/tests_change_fs.yml.lsrout 2020-09-09 17:48:40.217752539 -0600
@@ -4,9 +4,10 @@
vars:
storage_safe_mode: false
mount_location: '/opt/test1'
volume_size: '5g'
- fs_after: "{{ (ansible_distribution == 'RedHat' and ansible_distribution_major_version == '6') | ternary('ext4', 'xfs') }}"
+ fs_after: "{{ (ansible_distribution == 'RedHat' and ansible_distribution_major_version\
+ \ == '6') | ternary('ext4', 'xfs') }}"