mkdir ansible-init && cd ansible-init
pip3 install virtualenv
virtualenv -p /usr/bin/python3 venv
source venv/bin/activate
pip3 install ansible
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
| /** | |
| * Created by Seal.Wu on 2020/7/11 | |
| * Description: Set up mirrors for Gradle Globally | |
| */ | |
| val MAVEN_REPOSITORY_URL = "https://maven.aliyun.com/repository/central" | |
| val JCENTER_REPOSITORY_URL = "https://maven.aliyun.com/repository/jcenter" | |
| val GOOGLE_REPOSITORY_URL = "https://maven.aliyun.com/repository/google" | |
| val GRADLE_PLUGIN_REPOSITORY_URL = "https://maven.aliyun.com/repository/gradle-plugin" | |
| gradle.settingsEvaluated { |
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
| # Configure the settings to use to setup this Jenkins Executor | |
| $Port = 80 | |
| $IPAddress = '192.168.1.96' | |
| $SubnetPrefixLength = 24 | |
| $DNSServers = @('192.168.1.1') | |
| $DefaultGateway = '192.168.1.1' | |
| # Install .NET Framework 3.5 | |
| Install-WindowsFeature -Name NET-Framework-Core |
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 | |
| # /ect/profile.d/history.sh | |
| USER_IP=`who -u am i 2>/dev/null| awk '{print $NF}'|sed -e 's/[()]//g'` | |
| if [ "$USER_IP" = "" ]; then | |
| USER_IP=`hostname` | |
| fi | |
| export HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S " | |
| shopt -s histappend | |
| export PROMPT_COMMAND="history -n;history -a" |
yum install -y cobbler cobbler-web xinetd syslinux pykickstart dhcp dnsmasq debmirror fence-agents
systemctl enable cobblerd httpd xinetd rsyncd dhcpd
systemctl start cobblerd httpd xinetd rsyncd dhcpd
systemctl status httpd
systemctl status cobblerd
systemctl status xinetd
systemctl status dhcpdNewerOlder