-
Ensure your local 'devel' branch is up to date
git checkout devel; git pull --rebase
-
Prepare your local branch
git checkout -b working_branch origin/devel
-
Prepare your commit
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
#!/bin/bash | |
curl -o minimal.qcow2 http://mirror.csclub.uwaterloo.ca/fedora/linux/releases/31/Cloud/x86_64/images/Fedora-Cloud-Base-31-1.9.x86_64.qcow2 | |
virt-sysprep --network --install open-vm-tools --uninstall cloud-init --root-password password:root --selinux-relabel -a minimal.qcow2 | |
qemu-img convert -p -f qcow2 -O vmdk -o compat6=on -o adapter_type=lsilogic minimal.qcow2 minimal.vmdk | |
scp minimal.vmdk [email protected]:/srv/share/vms/minimal.vmdk | |
ssh [email protected] 'rm -r /vmfs/volumes/rw_datastore/vm_sample1' | |
ssh [email protected] mkdir /vmfs/volumes/rw_datastore/vm_sample1 | |
ssh [email protected] vmkfstools -i /vmfs/volumes/rw_datastore/minimal.vmdk -d thin /vmfs/volumes/rw_datastore/vm_sample1/vm_sample1.vmdk |
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
sudo mkfs.xfs -L nvme_cache -f /dev/nvme0n1 | |
sudo mkdir -p /srv/nvme | |
sudo bash -c 'echo /dev/disk/by-label/nvme_cache /srv/nvme xfs defaults 0 0 >> /etc/fstab' | |
sudo mount /srv/nvme | |
echo " | |
[[local|localrc]] | |
ADMIN_PASSWORD=secret | |
DATABASE_PASSWORD=$ADMIN_PASSWORD | |
RABBIT_PASSWORD=$ADMIN_PASSWORD |
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
- hosts: localhost | |
vars: | |
split_in: 4 | |
do_number: 1 # 1 to 4 | |
tasks: | |
- command: 'ansible-test integration --python 3.7 -vvv --list-targets zuul/vmware/vcenter_1esxi/' | |
register: ansible_test_targets | |
- set_fact: |
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
firewall-cmd --zone=libvirt --add-service=http --permanent | |
firewall-cmd --reload |
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
ip l set up br-ex | |
ip a add 172.24.4.1/24 dev br-ex | |
losetup -f /opt/stack/data/stack-volumes-lvmdriver-1-backing-file | |
losetup -f /opt/stack/data/stack-volumes-default-backing-file | |
iptables-restore save |
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
#!/bin/bash | |
set -eux | |
systemctl stop multi-user.target | |
systemctl stop applmgmt | |
systemctl stop [email protected] | |
systemctl stop [email protected] | |
systemctl stop vami-lighttp | |
systemctl stop dnsmasq | |
systemctl stop vmafdd |
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
#!/bin/bash | |
echo VMware module. Number per type: | |
echo -n ' pyvmomi: ' | |
ag -H -l PyVmomi lib/ansible/modules/cloud/vmware/v*|wc -l | |
echo -n ' VMware vSAN Python SDK: ' | |
ag -H -il HAS_VSANPYTHONSDK lib/ansible/modules/cloud/vmware/v*|wc -l |
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
#!/bin/bash | |
set -eux | |
for i in $(seq 9); do | |
gsettings set org.gnome.shell.keybindings switch-to-application-$i '[]' | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-$i "['<Super>$i']" | |
done | |
gsettings set org.gnome.desktop.wm.keybindings toggle-fullscreen "['<Super>f']" | |
#gsettings set org.gnome.desktop.wm.keybindings toggle-maximized "['<Super>f']" | |
gsettings set org.gnome.desktop.interface enable-animations false |
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
#!/bin/bash | |
function test_venv() { | |
cmd=$1 | |
venv_dir=$(mktemp -d) | |
tmp_dir=$(mktemp -d) | |
if ! $cmd ${venv_dir} > /dev/null 2>&1; then | |
return |