# install dependencies
sudo dnf install -y libxslt-devel libxml2-devel libvirt-devel libguestfs-tools-c
# install vagrant plugin
vagrant plugin install vagrant-libvirt
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
| # list all attached usb devices | |
| lsblk --nodeps --noheadings --list --scsi --paths --output name,vendor,model,tran | grep ' usb' | |
| # restart a fuckload of services at once | |
| services=('api backup scheduler volume'); for service in $services; do systemctl restart openstack-cinder-$service; done | |
| # display concise ip / network interface info | |
| ip addr show | sed -nE "s/inet\s(.*)\/[0-9]+.*\s(\w+)/\2 \1/p" | column -to ' => ' | |
| # lo => 127.0.0.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
| alias tr='tree -C -L 3' | |
| alias ydl='youtube-dl --rate-limit=1M --external-downloader=aria2c' |
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
| # not sure how to structure this for now, but may as well start listing core packages | |
| brew_packages=( | |
| ansible | |
| aria2 | |
| chrome-cli | |
| gdbm # ? | |
| gettext # ? | |
| gist | |
| glib # ? | |
| gmp # ? |
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 | |
| CONTROLLER_IP='10.107.1.210' | |
| COMPUTE_HOSTS='10.107.1.101,10.107.1.96' | |
| # handle yum's bullshit | |
| yum update -y | |
| # install packstack | |
| yum install -y https://www.rdoproject.org/repos/rdo-release.rpm |
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
| # installation settings | |
| install | |
| cdrom | |
| lang en_US.UTF-8 | |
| keyboard us | |
| timezone UTC | |
| text | |
| skipx | |
| firstboot --disabled | |
| selinux --permissive |
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
| # installation settings | |
| install | |
| cdrom | |
| lang en_US.UTF-8 | |
| keyboard us | |
| timezone UTC | |
| text | |
| skipx | |
| firstboot --disabled | |
| selinux --permissive |
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
| # | |
| # configure installation settings | |
| install | |
| cdrom | |
| lang en_US.UTF-8 | |
| keyboard us | |
| timezone UTC | |
| unsupported_hardware | |
| text |
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
| # compare two files diff ala `git diff` | |
| diff -Nau /root/answers.txt{.orig,} |
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
| # | |
| all: up provision | |
| up: | |
| @vagrant up --no-provision | |
| provision: | |
| @vagrant provision controller |