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
| - prepare work | |
| a. make cm node can ssh to all nodes without password | |
| ssh-genkey, ssh-copy-id | |
| b. hostname mapping | |
| c. mysql server | |
| d. postgresql | |
| e. ntp | |
| systemctl disable chrony | |
| centos7 default enable chrony server, even enable ntpd, cuase chrony started, ntpd will not started | |
| this will cause CDH ntp error, so need to disable chrony. |
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/groovy | |
| timestamps { | |
| podTemplate( | |
| label: 'jenkins-pipeline', | |
| inheritFrom: 'default', | |
| containers: [ | |
| containerTemplate(name: 'chrome', image: 'garunski/alpine-chrome:latest', command: 'cat', ttyEnabled: 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
| #!/bin/bash | |
| # ============================================================================= | |
| # Author: Chu-Siang Lai / chusiang (at) drx.tw | |
| # Filename: teams-chat-post-for-workflows.sh | |
| # Modified: 2024-07-22 11:44 (UTC+08:00) | |
| # Description: Post a message to Microsoft Teams via "Post to a chat when a webhook request is received" workflows. | |
| # Reference: | |
| # | |
| # - https://gist.github.com/chusiang/895f6406fbf9285c58ad0a3ace13d025 | |
| # - https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/ |
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
| yum update -y nss | |
| yum install -y https://centos6.iuscommunity.org/ius-release.rpm | |
| perl -pi -e "s/enabled\s+=\s+1/enabled = 0/gi" /etc/yum.repos.d/ius.repo | |
| yum install -y --enablerepo=ius python36u python36u-libs python36u-pip | |
| ln -s /usr/bin/python3.6 /usr/bin/python3 | |
| ln -s /usr/bin/pip3.6 /usr/bin/pip3 | |
| pip3 install awscli --upgrade --user | |
| echo "# PATH for AWS CLI" >> ~/.bashrc | |
| echo "export PATH=~/.local/bin:$PATH" >> ~/.bashrc | |
| source ~/.bashrc |