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 following variables will be set by the runner of this playbook: | |
# src: /tmp/some/path/private_data_dir | |
# dest: /tmp/some/path/ | |
# proot_temp_dir: /tmp/some/path | |
- name: Prepare data, dispatch job in isolated environment. | |
hosts: all | |
gather_facts: false |
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_ssh_port: 2222 | |
ansible_host: localhost |
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
oc new-project image-uploader --display-name='Image Uploader Project' | |
oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-ex.git | |
oc new-app --image-stream=php --code=https://github.com/OpenShiftInAction/image-uploader.git --name=app-cli | |
oc describe svc/app-cli | |
oc expose svc/app-cli | |
oc describe route/app-cli | |
oc scale dc/app-cli --replicas=2 | |
oc scale dc/app-cli --replicas=1 | |
oc get pods --show-all=false | |
oc exec app-cli-1-9hsz1 hostname |
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
RH Docs: | |
======== | |
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/high_availability_add-on_reference/ | |
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/high_availability_add-on_overview/ | |
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/high_availability_add-on_administration/ | |
VMWARE FENCING | |
============== | |
https://access.redhat.com/solutions/82333 | |
https://access.redhat.com/solutions/917813 |
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
pcs cluster start | |
pcs cluster stop clu01.local.net | |
pcs cluster stop --all | |
pcs cluster start --all | |
pcs cluster enable | |
pcs cluster disable clu01.local.net | |
pcs cluster disable --all | |
pcs cluster node remove clu03.local.net | |
pcs stonith delete clu03.local.net |
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
pcs stonith list | |
pcs stonith describe fence_rhevm | |
ls /usr/sbin/fence* | |
pcs stonith create name fencing_agent parameters | |
pcs stonith create rhev-fence fence_rhevm ipaddr=engine.local.net ipport=443 ssl_insecure=1 ssl=1 inet4_only=1 login=admin@internal passwd=PASSWD pcmk_host_map="clu01:clu01.local.net;clu02:clu02.local.net;clu03:clu03.local.net" pcmk_host_check=static-list pcmk_host_list="clu01.local.net,clu02.local.net,clu03.local.net" power_wait=3 op monitor interval=90s | |
pcs stonith update rhev-fence fence_rhevm api_path=/ovirt-engine/api disable_http_filter=1 ipaddr=engine.local.net ipport=443 ssl_insecure=1 ssl=1 inet4_only=1 login=admin@internal passwd=PASSWORD pcmk_host_map="clu01.local.net:clu01.local.net;clu02.local.net:clu02.local.net;clu03.local.net:clu03.local.net" pcmk_host_check=static-list pcmk_host_list="clu01.local.net,clu02.local.net,clu03.local.net" power_wait=3 op monitor interval=90s | |
fence_rhevm -o status -a engine.local.net --username=admin@internal --password=PASSWORD --ipport=443 -n clu |
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
pcs resource | |
pcs resource --help | |
pcs resource list | |
pcs resource describe Filesystem | |
pcs resource create myfs Filesystem device=/dev/vg_cluster/lv_cluster_data01 directory=/data fstype=xfs options=ro --group mygroup | |
pcs resource show | |
pcs resource show myfs | |
pcs resource update myfs directory=/data | |
pcs resource delete myfs |
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
pcs status | |
pcs resource failcount show firstwebserver | |
pcs resource show --full | |
pcs resource debug-start firstwebserver --full | |
pcs resource show firstwebserver | |
pcs resource update firstwebserver configfile=/etc/httpd/conf/httpd.conf | |
pcs resource failcount show firstwebserver | |
pcs resource failcount reset firstwebserver | |
firewall-cmd --list-all |
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
pcs constraint location firstweb prefers clu03.local.net=200 | |
pcs resource defaults resource-stickiness=500 | |
pcs constraint location firstweb prefers clu02.local.net=499 | |
pcs constraint location firstweb avoids clu01.local.net=499 | |
pcs cluster standby clu02.local.net | |
pcs cluster unstandby clu02.local.net | |
pcs constraint --full | |
pcs constraint |
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
$ git clone https://github.com/shudarshon/ansible_role.git | |
$ cd ansible_role/roles/tomcat | |
$ virtualenv --python=/usr/bin/python .venv | |
$ source .venv/bin/activate | |
$ pip install ansible | |
$ pip install molecule | |
$ pip install docker |
OlderNewer