If you want to use Vagrant
during this session
please start right away with downloading the
LEAP/jessie
vagrantbox:
Denis (Pixelated), Kwadronaut (LEAP), Varac (Pixelated, LEAP), Zara (Pixelated)
Vagrant | Remote Server |
---|---|
Locally on your laptop, for testing | Out there, for testing or real |
Requires Vagrant >= 1.5 and Virtualbox or other hypervisor | Physical or paravirtualized Server (KVM, Xen, OpenStack, Amazon, but not VirtualBox or OpenVZ) |
These slides: https://leap.se/slides/33c3/
$ sudo apt install git ruby ruby-dev rsync \
openssh-client openssl rake make bzip2
$ brew install ruby-install
$ ruby-install ruby
$ sudo gem install leap_cli
$ leap --version
leap 1.9, ruby 2.3.3
...
Use example.org
for testing, or pick your own domain.
$ mkdir -p ~/leap/example.org
$ cd ~/leap/example.org
Leap Platform Build Status:
If the last build failed, we need to checkout the last stable version of the leap_platform:
git clone https://0xacab.org/leap/platform.git \
../leap_platform
git checkout -b 0.9.0 0.9.0
$ leap new .
The primary domain of the provider: |example.org|
The name of the provider: |Example|
File path of the leap_platform directory: |/home/varac/leap_platform|
Default email address contacts: |root@example.org|
The platform directory "/home/varac/leap/leap_platform" does not exist.
Do you want me to create it by cloning from the
git repository https://leap.se/git/leap_platform.git? y
...
$ leap add-user varac --self
Create SSL certificate authority, to self-sign host certificates:
$ leap cert ca
$ leap cert csr
mkdir -p files/puppet/modules/custom/manifests
git clone https://github.com/pixelated/puppet-pixelated.git \
files/puppet/modules/pixelated
echo 'class custom { include ::pixelated }' > files/puppet/modules/custom/manifests/init.pp
$ leap node add --local wildebeest services:webapp,couchdb,soledad,mx
$ leap local start wildebeest
$ leap local status
$ leap node add wildebeest ip_address:0.1.2.3 \
services:webapp,couchdb,soledad,mx
cloud.json
needed for AWS config and credentials$ leap vm add wildebeest services:webapp,couchdb,soledad,mx
$ leap vm status
$ leap list
$ leap node init wildebeest
$ leap deploy wildebeest
We are using a fake domain here, so we need to override our DNS resolution.
cd ~/leap/example.org
leap compile hosts
You need to edit your hosts
file with admin privileges and add the output of above command to it.
sudo editor /etc/hosts
sudo nano /etc/hosts
see Quick start tutorial/Setup DNS for details.
$ leap test
IRC: #leap@freenode