Conventions
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "For the sake of simplicity, we will simply run the sleep
command."
A block of code is set as follows:
{ "args": [ "--zk=zk://Zookeeper.service.consul:2181/Mesos" ], "container": { "type": "DOCKER", "Docker": { "network": "BRIDGE", "image": "{{ Mesos_consul_image }}:{{ Mesos_consul_image_tag }}" } }, "id": "Mesos-consul", "instances": 1, "cpus": 0.1, "mem": 256 }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
# Tasks for Master, Slave, and ZooKeeper nodes
- name: Install mesos package
apt: pkg={{item}} state=present update_cache=yes
with_items:
- mesos={{ mesos_pkg_version }}
sudo: yes
Any command-line input or output is written as follows:
# Update the packages. $ sudo apt-get update # Install the latest OpenJDK. $ sudo apt-get install -y openjdk-7-jdk # Install autotools (Only necessary if building from git repository). $ sudo apt-get install -y autoconf libtool # Install other Mesos dependencies. $ sudo apt-get -y install build-essential python-dev python-boto libcurl4-nss-dev libsasl2-dev maven libapr1-dev libsvn-dev
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Now press the ADD button to add a specific port."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.