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
MYENVVAR="world" salt-call state.template test.sls |
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
<?php | |
print "\n"; | |
$rsa = file_get_contents('rsa.pub'); | |
$ssh = file_get_contents('ssh.pub'); | |
// For reference | |
print $rsa . "\n\n"; | |
print $ssh . "\n\n"; |
Configure local wildcard DNS server
- Install Dnsmasq:
sudo apt-get install dnsmasq
- Since Ubuntu's NetworkManager uses dnsmasq, and since that messes things up a little for us, open up
/etc/NetworkManager/NetworkManager.conf
and comment out (#
) the line that readsdns=dnsmasq
. Restart NetworkManager afterwards:sudo restart network-manager
. - Make sure Dnsmasq listens to local DNS queries by editing
/etc/dnsmasq.conf
, and adding the linelisten-address=127.0.0.1
. - Create a new file in
/etc/dnsmasq.d
(eg./etc/dnsmasq.d/dev
), and add the lineaddress=/dev/127.0.0.1
to have dnsmasq resolve requests for *.dev domains. Restart Dnsmasq:sudo /etc/init.d/dnsmasq restart
.
source: http://brunodbo.be/blog/2013/04/setting-up-wildcard-apache-virtual-host-wildcard-dns
sudo su
apt-get update && apt-get install -y libvirt-dev ruby-all-dev apparmor-utils
curl -O -L https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.5_x86_64.deb
dpkg -i vagrant_1.6.5_x86_64.deb
aa-complain /usr/lib/libvirt/virt-aa-helper # workaround
exit
- 2015-02-20: OX 10.10.5 on Apple hardware can successfully build
- NOTE: Credit and thanks to Amit Singh
- Reference:
Changes with .dev
domains in
mind.
Create /etc/pf.anchors/dev
, containing:
rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
rdr pass inet proto tcp from any to any port 443 -> 127.0.0.1 port 8443