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 | |
cd /etc/pki/ca-trust/source/anchors/ | |
wget http://bastion.pichuang.local/homecloud-pki/homecloud-chain.pem | |
update-ca-trust |
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 | |
firewall-cmd --list-all | |
firewall-cmd --zone=public --add-port=80/tcp --permanent | |
firewall-cmd --zone=public --add-port=443/tcp --permanent | |
firewall-cmd --reload | |
firewall-cmd --list-all |
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
IMAGE=docker.io/gitlab/gitlab-ce:12.2.0-ce.0 | |
HOSTNAME=gitlab.pichuang.local | |
NAME=gitlab-ce |
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: "config.istio.io/v1alpha2" | |
kind: rule | |
metadata: | |
name: quota | |
namespace: istio-system | |
spec: | |
actions: | |
- handler: handler.memquota | |
instances: | |
- requestcount.quota |
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
<network> | |
<name>br0</name> | |
<forward mode="bridge" /> | |
<bridge name="br0" /> | |
</network> |
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
Usage: s3cmd [options] COMMAND [parameters] | |
S3cmd is a tool for managing objects in Amazon S3 storage. It allows for | |
making and removing "buckets" and uploading, downloading and removing | |
"objects" from these buckets. | |
Options: | |
-h, --help show this help message and exit | |
--configure Invoke interactive (re)configuration tool. Optionally | |
use as '--configure s3://some-bucket' to test access |
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
cat /usr/lib/tuned/ceph-tuned/tuned.conf | |
[main] | |
summary=ceph_perf | |
[cpu] | |
governor=performance | |
energy_perf_bias=performance | |
min_perf_pct=100 | |
force_latency=1 |
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
[defaults] | |
forks = 20 | |
host_key_checking = False | |
roles_path = roles/ | |
gathering = smart | |
fact_caching = jsonfile | |
fact_caching_connection = $HOME/ansible/facts | |
fact_caching_timeout = 600 | |
log_path = ./ansible.log | |
nocows = 1 |
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 | |
# 10 Years ago | |
for i in {1..10}; | |
do | |
ssh ${i}.redhat.taiwan "echo before #10yearchallenge "; | |
done | |
# On-going | |
ansible -i redhat all -m command -a "echo next #20yearchallenge " |
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
[defaults] | |
forks = 20 | |
host_key_checking = False | |
roles_path = roles/ | |
gathering = smart | |
fact_caching = jsonfile | |
fact_caching_connection = /tmp/ansible/facts | |
fact_caching_timeout = 600 | |
log_path = /tmp/ansible.log | |
nocows = 1 |