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
cd /var/lib/docker/execdriver/native/${CONTAINER_ID}/ | |
nsinit exec /bin/bash |
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
--- | |
- name: install python-software-properties | |
apt: name=python-software-properties | |
- name: add juju repository | |
apt_repository: repo='ppa:juju/stable' | |
- name: install juju | |
apt: update_cache=yes name=juju-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
--- | |
- name: add jenkins apt key | |
apt_key: url=http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | |
- name: add jenkins repo | |
apt_repository: repo='deb http://pkg.jenkins-ci.org/debian binary/' | |
- name: install jenkins | |
apt: update_cache=yes name=jenkins |
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
--- | |
- name: install python-software-properties | |
apt: name=python-software-properties | |
- name: add java repository | |
apt_repository: repo='ppa:webupd8team/java' | |
- name: set debconf selection | |
debconf: name='oracle-java7-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select' |
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
--- | |
- lineinfile: dest=/etc/hosts regexp='.*{{item}}$' line='{{hostvars[item]['ansible_default_ipv4']['address']}} {{item}}' state=present | |
with_items: '{{groups.all}}' |
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
salt-minion-001 ansible_ssh_host=192.168.0.200 ansible_ssh_user=ubuntu ansible_ssh_private_key_file=/home/ubuntu/.ssh/id_rsa | |
salt-minion-002 ansible_ssh_host=192.168.0.201 ansible_ssh_user=ubuntu ansible_ssh_private_key_file=/home/ubuntu/.ssh/id_rsa | |
salt ansible_ssh_host=192.168.0.100 ansible_ssh_user=ubuntu ansible_ssh_private_key_file=/home/ubuntu/.ssh/id_rsa | |
[salt-minion] | |
salt-minion-[001:002] | |
[salt-master] | |
salt |
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
salt-minion-001 ansible_ssh_host=192.168.0.200 ansible_ssh_user=ubuntu ansible_ssh_private_key_file=/home/ubuntu/.ssh/id_rsa | |
salt-minion-002 ansible_ssh_host=192.168.0.201 ansible_ssh_user=ubuntu ansible_ssh_private_key_file=/home/ubuntu/.ssh/id_rsa | |
salt ansible_ssh_host=192.168.0.100 ansible_ssh_user=ubuntu ansible_ssh_private_key_file=/home/ubuntu/.ssh/id_rsa | |
[salt-minion] | |
salt-minion-[001:002] | |
[salt-master] | |
salt |
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
sh.addShard('localhost:30000') | |
sh.addShard('localhost:30001') | |
sh.addShard('localhost:30002') | |
sh.status() | |
sh.enableSharding("logdb") | |
sh.shardCollection("logdb.logs" , { uid : 1 }) |
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
cfg = { | |
_id : "rs0", | |
members : [ | |
{ _id : 0, host : "localhost:30000" }, | |
{ _id : 1, host : "localhost:30001" }, | |
{ _id : 2, host : "localhost:30002" } ] } | |
rs.initiate(cfg) | |
db.getMongo().setSlaveOk() |