Skip to content

Commit 3c2f11f

Browse files
committed
Merge pull request #2532 from mboersma/docs-install-inlines
Move "generate SSH key" and "make discovery-url" sections inline to docs
2 parents a3fbb92 + 5671bf7 commit 3c2f11f

9 files changed

Lines changed: 40 additions & 41 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
A discovery URL links `etcd`_ instances together by storing their peer
2+
addresses and metadata under a unique identifier. Run this command from the root
3+
of the repository to generate a ``contrib/coreos/user-data`` file with a new
4+
discovery URL:
5+
6+
.. code-block:: console
7+
8+
$ make discovery-url
9+
10+
Required scripts are supplied in this ``user-data`` file, so do not provision a
11+
Deis cluster without running ``make discovery-url``.
12+
13+
.. _`etcd`: https://github.com/coreos/etcd
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
The ``deisctl`` utility communicates with remote machines over an SSH tunnel.
2+
If you don't already have an SSH key, the following command will generate
3+
a new keypair named "deis":
4+
5+
.. code-block:: console
6+
7+
$ ssh-keygen -q -t rsa -f ~/.ssh/deis -N '' -C deis

docs/_includes/_get-the-source.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
Get the Source
2-
--------------
3-
41
The `source code`_ for Deis must be on your workstation to run the commands in
52
this documentation. Download an archive file from the `releases page`_, or use
63
``git`` to clone the repository:

docs/installing_deis/aws.rst

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,7 @@ Deis clusters of less than 3 nodes are unsupported.
7171
Generate a New Discovery URL
7272
----------------------------
7373

74-
To get started with provisioning Deis, we will need to generate a new Discovery URL. Discovery URLs
75-
help connect `etcd`_ instances together by storing a list of peer addresses and metadata under a
76-
unique address. You can generate a new discovery URL for use in your platform by
77-
running the following from the root of the repository:
78-
79-
.. code-block:: console
80-
81-
$ make discovery-url
82-
83-
This will write a new discovery URL to the user-data file. Some convenience scripts are supplied in
84-
this user-data file, so it is mandatory for provisioning Deis.
74+
.. include:: ../_includes/_generate-discovery-url.rst
8575

8676

8777
Customize cloudformation.json

docs/installing_deis/baremetal.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ Check System Requirements
2525
Please refer to :ref:`system-requirements` for resource considerations when choosing a
2626
machine size to run Deis.
2727

28+
2829
Generate SSH Key
2930
----------------
3031

31-
Please refer to :ref:`generate_ssh_key` for generating a new SSH key.
32+
.. include:: ../_includes/_generate-ssh-key.rst
3233

3334

3435
Customize user-data
@@ -38,7 +39,7 @@ Customize user-data
3839
Generate a New Discovery URL
3940
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4041

41-
Please refer to :ref:`generate_discovery_url` for generating a new Discovery URL.
42+
.. include:: ../_includes/_generate-discovery-url.rst
4243

4344

4445
SSH Key

docs/installing_deis/digitalocean.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,18 @@ Check System Requirements
3131
Please refer to :ref:`system-requirements` for resource considerations when choosing a droplet
3232
size to run Deis.
3333

34+
3435
Generate SSH Key
3536
----------------
3637

37-
Please refer to :ref:`generate_ssh_key` for generating a new SSH key.
38+
.. include:: ../_includes/_generate-ssh-key.rst
39+
3840

3941
Generate a New Discovery URL
4042
----------------------------
4143

42-
Please refer to :ref:`generate_discovery_url` for generating a new Discovery URL.
44+
.. include:: ../_includes/_generate-discovery-url.rst
45+
4346

4447
Create CoreOS Droplets
4548
----------------------

docs/installing_deis/quick-start.rst

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,38 +9,27 @@ These steps will help you provision a Deis cluster.
99

1010
.. _get_the_source:
1111

12+
Get the Source
13+
--------------
14+
1215
.. include:: ../_includes/_get-the-source.rst
1316

1417

1518
.. _generate_ssh_key:
1619

17-
Generate an SSH key
18-
-------------------
19-
20-
The ``deisctl`` utility communicates with remote machines over an SSH tunnel.
21-
If you don't already have an SSH key, the following command will generate
22-
a new keypair named "deis":
23-
24-
.. code-block:: console
20+
Generate SSH Key
21+
----------------
2522

26-
$ ssh-keygen -q -t rsa -f ~/.ssh/deis -N '' -C deis
23+
.. include:: ../_includes/_generate-ssh-key.rst
2724

2825

2926
.. _generate_discovery_url:
3027

3128
Generate a New Discovery URL
3229
----------------------------
3330

34-
Discovery URLs help connect `etcd`_ instances together by storing a list of peer addresses and metadata under a
35-
unique address. You can generate a new discovery URL for use in your platform by
36-
running the following from the root of the repository:
37-
38-
.. code-block:: console
39-
40-
$ make discovery-url
31+
.. include:: ../_includes/_generate-discovery-url.rst
4132

42-
This will write a new discovery URL to the user-data file. Some essential scripts are supplied in
43-
this user-data file, so it is mandatory for provisioning Deis.
4433

4534
Check System Requirements
4635
-------------------------
@@ -76,4 +65,3 @@ please refer to :ref:`install_deisctl` and :ref:`install_deis_platform`.
7665

7766

7867
.. _`CoreOS`: https://coreos.com/
79-
.. _`etcd`: https://github.com/coreos/etcd

docs/installing_deis/rackspace.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ API key can be found on the Account Settings page.
4545
Generate SSH Key
4646
----------------
4747

48-
Please refer to :ref:`generate_ssh_key` for generating a new SSH key.
48+
.. include:: ../_includes/_generate-ssh-key.rst
4949

5050

5151
Set up your keys
@@ -61,7 +61,7 @@ Tell supernova about the key pair and give it an identifiable name:
6161
Generate a New Discovery URL
6262
----------------------------
6363

64-
Please refer to :ref:`generate_discovery_url` for generating a new Discovery URL.
64+
.. include:: ../_includes/_generate-discovery-url.rst
6565

6666

6767
Choose number of instances

docs/installing_deis/vagrant.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ Please install `Vagrant`_ v1.6.5+ and `VirtualBox`_.
2828
Generate SSH Key
2929
----------------
3030

31-
Please refer to :ref:`generate_ssh_key` for generating a new SSH key.
31+
.. include:: ../_includes/_generate-ssh-key.rst
3232

3333

3434
Generate a New Discovery URL
3535
----------------------------
3636

37-
Please refer to :ref:`generate_discovery_url` for generating a new Discovery URL.
37+
.. include:: ../_includes/_generate-discovery-url.rst
3838

3939

4040
Boot CoreOS

0 commit comments

Comments
 (0)