Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

# Taps
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tag "derailed/k9s"
# Brew apps
brew "wget"
brew "xz"
brew "readline"
@mzeier
mzeier / red-term
Created November 12, 2018 03:10
Stop and terminate old instances
mrz-masaba:anisble mrz$ ansible-playbook fdb-excludes.yml \
> -l tag_cluster_red:\&tag_mirror_primary \
> -t cleanup \
> -e cluster=red \
> -e mode=ssd \
> -e mirror=primary
PLAY [tag_index_1:&tag_role_db:!tag_planned_removal_true] ***************************************************************************
TASK [Gathering Facts] **************************************************************************************************************
@mzeier
mzeier / red-excludes
Created November 12, 2018 03:09
Exclude old instances
mrz-masaba:anisble mrz$ ansible-playbook fdb-excludes.yml \
> -l tag_cluster_red:\&tag_mirror_primary \
> -t "ssd-exclude" \
> -e "cluster=red" \
> -e "mode=ssd" \
> -e mirror=primary
PLAY [tag_index_1:&tag_role_db:!tag_planned_removal_true] ***************************************************************************
TASK [Gathering Facts] **************************************************************************************************************
@mzeier
mzeier / red-startfdb
Created November 12, 2018 03:08
Start Fdb
ubuntu@red-2b-db3-i-0a5cc0af209a1e928:~$ fdbcli --exec status | grep Machines
Machines - 3
mrz-masaba:anisble mrz$ ansible-playbook fdb.yml -l tag_cluster_red:\&tag_mirror_primary:\!tag_planned_removal_true -t startfdb
PLAY [tag_role_db] ******************************************************************************************************************
TASK [Gathering Facts] **************************************************************************************************************
ok: [red_2b_db1_i_09f86e2d21867e32e]
@mzeier
mzeier / red-tagging
Created November 12, 2018 03:08
Tag instances to exclude
mrz-masaba:anisble mrz$ ansible-playbook fdb-excludes.yml \
> -l tag_cluster_red:\&tag_mirror_primary \
> -t "mark" -e "cluster=red" \
> -e mode=ssd \
> -e mirror=primary
PLAY [tag_index_1:&tag_role_db:!tag_planned_removal_true] ***************************************************************************
TASK [Gathering Facts] **************************************************************************************************************
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDNhJ7TABcYqq4fYQYPnpNKmSrDpAlgkGOXUz7kIrDVvjto4nyiYT5QFUmhPr5fAqw8dKqChlaa2D1v1FALcNoYvfx5wB5RzVnkrVF33XG4ZSBGv2ml5P24EucXQlQfCsUvLZvPRmyeniK/qh+9sqXLfC/T8wzkTUB9j1Z6VDxwb+hmuPy4+gT4yTIqHVbBO1W1LX2CEd3Q8EbkJvDm0pZtGQEt0/e9PSS4l8FrF6sg8/+LBnrxFsRL8naX7TnEnrJasWWGUk3tNKyf8upt4AbfffbIua7g8a92Dj170jmvtmCZxEbOeQ0a1YpbvpNS6FhqIiYvnVS3RxL+enASKGmR mrz@wavefront
[2018-04-30 10:43:14,772: DEBUG/Worker-3] Start from server, version: 0.9, properties: {u'information': u'Licensed under the MPL. See http://www.rabbitmq.com/', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2018 Pivotal Software, Inc.', u'capabilities': {u'exchange_exchange_bindings': True, u'connection.blocked': True, u'authentication_failure_close': True, u'direct_reply_to': True, u'basic.nack': True, u'per_consumer_qos': True, u'consumer_priorities': True, u'consumer_cancel_notify': True, u'publisher_confirms': True}, u'cluster_name': u'rabbit@a0d2023c56a4', u'platform': u'Erlang/OTP 20.1.7', u'version': u'3.7.4'}, mechanisms: [u'AMQPLAIN', u'PLAIN'], locales: [u'en_US']
[2018-04-30 10:43:14,775: DEBUG/Worker-3] Open OK!
[2018-04-30 10:43:14,775: DEBUG/Worker-3] using channel_id: 1
[2018-04-30 10:43:14,777: DEBUG/Worker-3] Channel open
[2018-04-30 10:43:14,783: DEBUG/MainProcess] pidbox received method active_queues() [reply_to:{u'routing_key': u'69400b2a-bfb0-32ad-b226-6843e3f5da78', u'exch
[
"ou=Users,o=blah,dc=jumpcloud,dc=com",
"SCOPE_SUBTREE",
"(uid=%(user)s)"
]
[
"ou=Users,o=blah,dc=jumpcloud,dc=com",
"SCOPE_SUBTREE",
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
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