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
ssh-dss AAAAB3NzaC1kc3MAAACBAPYLNALm5eLirMSlwR6RKYgn4K71IShRBzQLXFvVpTGrmRyQcbVh9zGnjs76UUCfFZY47FZq0cFoMjk0+naFE4v0wOylAs+eH6BCa/sAAg4eD71N4nywwVig8WjdJAFqHtk7R5XsvvbFl6Njv1keUWZxTU9rer5Rz17gOuy2mgmPAAAAFQCz9eGcqsC2NLDHKt8iEX5j4ePSnQAAAIAilz2V13kWSmWEDq1LaeTIn7MBX4wmBPVNaVeVY0xkRu+48LM46KFW2VVBnrzbm7aXKDYcL77OzbqKVcnqep+h8TPWBqadNWeVRG3o22FVl1/ifYuDtkjUZvRs/7S1UgSYrhcClMYvStCKshuRilr/mfh3aoWkhjfYkVamP7DFTwAAAIB153pMxSx/SZ5DiveJixC6FeHH/Ogq35DQLFyD+p6/Aoz7aHZcxgB7qdgImhTMcV5xPA8FD1TPerAX8qedXjA1jJNUOd9AfLkSDCtHHZYdN+K7AU217HaAC6lO0x4fVpMHgAlxEx6t7QFh6LP0L8h0VWw0raD90DPNTNSuAToMIw== mrz@myhost |
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
mrz@mail [~/] 42> cat bin/getscreen | |
#!/bin/sh | |
SESSION=$1 | |
env | grep SSH | sed -e 's/=/ "/' | sed -e 's/$/"/'| awk '{print "setenv " $0}' > ~/.screen-ssh.$SESSION | |
echo -ne "\033]0;$SESSION\007" |
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
--- | |
# This playbook restarts nginx across ha nodes | |
# | |
# Examples: | |
# | |
# ansible-playbook -i ec2.py -l tag_cluster_mon tasks/restart-nginx.yml | |
# ansible-playbook -i ec2.py -l tag_cluster_mon tasks/restart-nginx.yml --extra-vars="jira=OPS-22" | |
# rolling restarts (serial: 1) | |
- hosts: tag_role_ha |
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
--- | |
# | |
# ansible-playbook -i ec2.py -l tag_cluster_elgon fdb.yml -C --extra-vars="mirror=secondary, serialPercent=100%" | |
# | |
# Variables of note: | |
# - serialPercent: percent of the inventory should this run on | |
# - slackChannel: override default Slack output channel | |
# - mirror: specifies which mirror to operate on (both, primary, secondary); defaults to NULL | |
- hosts: tag_role_db |
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
--- | |
# | |
# ansible-playbook -i ec2.py -l tag_cluster_elgon db.yml | |
# ansible-playbook -i ec2.py -l tag_cluster_elgon db.yml --extra-vars="version=43.0.6" | |
# ansible-playbook -i ec2.py -l tag_cluster_elgon db.yml -C --extra-vars="mirror=secondary serialPercent=100%" | |
# | |
# Variables of note: | |
# - serialPercent: percent of the inventory should this run on | |
# - slackChannel: override default Slack output channel | |
# - mirror: specifies which mirror to operate on (both, primary, secondary); defaults to $MIRROR |
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: "{{ hostgroup }}" | |
gather_facts: yes | |
vars: | |
- hostgroup: "{{ lookup('env','HOSTGROUP') }}" | |
- mirror: "{{ lookup('env','MIRROR') }}" | |
tasks: | |
- name: test connection (ping) |
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
{ | |
"_comment": "Usage: packer build -var-file=vars/db-8xlarge-8T.json fdb-r3.8xlarge.json", | |
"variables" : { | |
"var_subnet_id": "subnet-ffccffd4", | |
"var_vpc_id": "vpc-65ff6bff", | |
"var_instance_type": "r3.8xlarge", | |
"app_version": "4.0.101" | |
}, | |
"builders": [ | |
{ |
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
{ | |
"_comment": "Usage: packer build -var-file=vars/zdb-xlarge-Z500G.json zfdb-r3.xlarge.json", | |
"variables" : { | |
"var_subnet_id": "subnet-a3cc7fd4", | |
"var_vpc_id": "vpc-65ee6b00", | |
"var_security_group": "sg-ee0ccf8a", | |
"var_instance_type": "r3.xlarge", | |
"var_snapshot_id": "snap-0a89589a653e940da", | |
"loghead_version": "42.0.3", | |
"buffercopy_version": "43.0.21", |
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
root@awx-2a-app1:/etc/nginx/conf.d# docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
895bd2dde6f6 ansible/awx_web:latest "/tini -- /bin/sh ..." About an hour ago Up About an hour 0.0.0.0:82->8052/tcp awx_web | |
96cd0c8e0a14 ansible/awx_task:latest "/tini -- /bin/sh ..." About an hour ago Up About an hour 8052/tcp awx_task | |
4e34c06254a4 memcached:alpine "docker-entrypoint..." About an hour ago Up About an hour 11211/tcp memcached | |
1b9bcf2d015c rabbitmq:3 "docker-entrypoint..." About an hour ago Up About an hour 4369/tcp, 5671-5672/tcp, 25672/tcp rabbitmq |
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
root@awx-2a-app1:~/awx-repo/installer# docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
895bd2dde6f6 ansible/awx_web:latest "/tini -- /bin/sh ..." 4 hours ago Up 4 hours 0.0.0.0:82->8052/tcp awx_web | |
96cd0c8e0a14 ansible/awx_task:latest "/tini -- /bin/sh ..." 5 hours ago Up 5 hours 8052/tcp awx_task | |
4e34c06254a4 memcached:alpine "docker-entrypoint..." 5 hours ago Up 5 hours 11211/tcp memcached | |
1b9bcf2d015c rabbitmq:3 "docker-entrypoint..." 5 hours ago Up 5 hours 4369/tcp, 5671-5672/tcp, 25672/tcp rabbitmq | |
root@awx-2a-app1:~/awx-repo/installer# docker ps -a | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS |
OlderNewer