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
LANG=ja_JP.utf8 | |
CURL_DATA=`curl --connect-timeout 30 -vvvv http://<your.website.url> 2>&1 ` | |
IF_DATA=`echo $CURL_DATA | grep "HTTP/1.1 200 OK"` | |
SENDER=`cat mail_flag` | |
DATE=`date +"%Y/%m/%d %H:%M:%S"` | |
if [ -n "$IF_DATA" ]; then | |
if [ "$SENDER" = "2" ]; then | |
echo -e "$DATE\n$CURL_DATA" | col -b | mailx -s 'Recovery' <send_alart@mail.address> | |
SENDER=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
--- | |
- hosts: ruby | |
name: install ruby require packages for actioning server | |
become: yes | |
vars: | |
RBENV_ROOT: /usr/local/rbenv | |
user: hogehoge | |
group: fugafuga | |
tasks: | |
- name: groupadd docker hogehoge |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
# ↓yes proxy statement / not set using NAT only | |
config.proxy.http = "http://your.proxy.address:port_num" | |
config.proxy.https = "https://your.proxy.address:port_num" | |
# ↓no proxy statement | |
#config.proxy.http = "" |