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 : | |
require 'yaml' | |
ansible_vars = YAML.load_file('provisioning/vars.yml') | |
app_name = ansible_vars["nodejs_app_name"] | |
app_directory = ansible_vars["nodejs_app_install_dir"] |
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 : | |
require 'yaml' | |
ansible_vars = YAML.load_file('provisioning/vars.yml') | |
app_name = ansible_vars["nodejs_app_name"] | |
app_directory = ansible_vars["nodejs_app_install_dir"] |
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: localhost | |
user: root | |
tasks: | |
- name: Install nginx | |
dnf: | |
name: nginx | |
state: latest |
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
# The build process will fail if an empty 'universal' directory exists | |
$strFolderName="c:\vagrant\node_modules" | |
If (Test-Path $strFolderName){ | |
Remove-Item -Recurse -Force -ErrorAction 0 $strFolderName | |
} | |
# Use ASCII characters for the npm tree drawing | |
$env:npm_config_unicode = "false" | |
# Build GPII |
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: localhost | |
user: root | |
vars_files: | |
- vars.yml | |
pre_tasks: | |
- include_vars: secrets.yml | |
ignore_errors: yes |
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
# Jumbo frames are enabled on the compute nodes and switches in the cluster | |
# so we are able to utilize more bandwidth at the VM level by increasing | |
# the ethernet frame payload size to 9000 bytes | |
ifconfig eth0 mtu 9000 | |
# Increase the transmit queue length | |
ifconfig eth0 txqueuelen 10000 | |
# Increase the receive and send buffers to 16MB | |
net.core.rmem_max=16777216 |
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
upstream couchdb_servers { | |
server couchdb1:5984 max_fails=0 fail_timeout=10s; | |
server couchdb2:5984 max_fails=0 fail_timeout=10s; | |
} | |
location / { | |
proxy_pass http://couchdb_servers:5984; | |
proxy_redirect off; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
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
curl \ | |
-H "Content-Type: application/json" \ | |
-X POST http://admin:password@localhost:5984/_replicate \ | |
-d '{"source":"http://couchdb-rw1:5984/user", "target":"http://admin:password@127.0.0.1:5984/user", "create_target": true, "continuous":true}' |
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
[ | |
{ | |
"sha": "718b599668e2350966a7a002ba776fe6c798ac2a", | |
"commit": { | |
"author": { | |
"name": "Kasper Markus", | |
"email": "kasper2@markus.dk", | |
"date": "2016-03-30T12:34:49Z" | |
}, | |
"committer": { |
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 : | |
require 'yaml' | |
ansible_vars = YAML.load_file('provisioning/vars.yml') | |
app_name = "couchdb" | |
app_directory = "/home/vagrant/sync" |