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
--- | |
# Talk to all hosts just so we can learn about them... | |
- name: Create a sandbox instance | |
hosts: localhost | |
gather_facts: False | |
vars: | |
keypair: my_keypair | |
instance_type: t2.micro | |
image: ami-d1315fb1 | |
region: us-west-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
install | |
cdrom | |
lang en_US.UTF-8 | |
keyboard us | |
network --onboot yes --device eth2 --bootproto dhcp --hostname myhost | |
rootpw password | |
firewall --service=ssh | |
text | |
authconfig --enableshadow --passalgo=sha512 | |
selinux --enforcing |
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
default vesamenu.c32 | |
serial 0 115200 | |
menu title Welcome to CentOS 6.5! | |
label linux | |
menu label ^Install or Upgrade system | |
menu default | |
kernel vmlinuz console=tty0 console=ttyS0,115200n8 | |
append initrd=initrd.img ks=cdrom:/ks.cfg serial | |
label vesa |
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
cd /home/iso | |
ISOFILE=$PWD.iso | |
PACKAGER="Chandan" | |
ISONAME="CentOS 6.5" | |
ISODATE="`date -I`" | |
sudo mkisofs -r -R -J -T -v -no-emul-boot \ | |
-boot-load-size 4 \ | |
-boot-info-table \ | |
-V "$ISONAME" \ |
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
<data type="group"> | |
<checksum type="sha256">34bae2d3c9c78e04ed2429923bc095005af1b166d1a354422c4c04274bae0f59</checksum> | |
<location href="repodata/34bae2d3c9c78e04ed2429923bc095005af1b166d1a354422c4c04274bae0f59-c6-minimal-x86_64.xml"/> | |
<timestamp>1385727295.83</timestamp> | |
<size>11862</size> | |
</data> | |
Update the repo | |
cd min_iso/ |
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
mkdir cmin_iso | |
mount -o loop CentOS.iso cmin_iso/ |
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
mount -o loop CentOS-DVD1.iso dvd1/ |
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
mkdir min_iso | |
cp -r cmin_iso/* min_iso/ | |
cp cmin_iso/.discinfo min_iso/ |
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
git clone https://github.com/becloudready/prometheus_monitoring.git | |
cd prometheus_monitoring | |
vagrant up |
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
global: | |
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. | |
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. | |
# Alertmanager configuration | |
alerting: | |
alertmanagers: | |
- static_configs: | |
- targets: | |
- localhost:9093 |
OlderNewer