Skip to content

Commit a5fe635

Browse files
Suzie Baunsgardnpwalker
authored andcommitted
Formatting: headers, capitalization, bolded UI items, repository changed to repo (mostly) (#1)
1 parent 7454167 commit a5fe635

File tree

1 file changed

+74
-74
lines changed

1 file changed

+74
-74
lines changed

README.md

Lines changed: 74 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,134 +1,134 @@
1-
Table of Contents
1+
Table of contents
22
=================
33

4-
* [Join The \#ramp\-up Channel on Puppet Community Slack](#join-the-ramp-up-channel-on-puppet-community-slack)
5-
* [Before Starting](#before-starting)
6-
* [What You Get From This control\-repo](#what-you-get-from-this-control-repo)
7-
* [How To Set It All Up](#how-to-set-it-all-up)
8-
* [Copy This Repo Into Your Own Git Server](#copy-this-repo-into-your-own-git-server)
9-
* [Gitlab](#gitlab)
4+
* [Join the \#ramp\-up channel on Puppet Community Slack](#join-the-ramp-up-channel-on-puppet-community-slack)
5+
* [Before starting](#before-starting)
6+
* [What you get from this control\-repo](#what-you-get-from-this-control-repo)
7+
* [How to set it all up](#how-to-set-it-all-up)
8+
* [Copy this repo into your own Git server](#copy-this-repo-into-your-own-git-server)
9+
* [GitLab](#gitlab)
1010
* [Stash](#stash)
11-
* [Github](#github)
12-
* [Configure PE to Use the Control\-Repo](#configure-pe-to-use-the-control-repo)
11+
* [GitHub](#github)
12+
* [Configure PE to use the control\-repo](#configure-pe-to-use-the-control-repo)
1313
* [Install PE](#install-pe)
14-
* [Get the Control\-Repo Deployed On Your Master](#get-the-control-repo-deployed-on-your-master)
15-
* [Setup a Webhook In Your Git Server](#setup-a-webhook-in-your-git-server)
14+
* [Get the control\-repo deployed on your master](#get-the-control-repo-deployed-on-your-master)
15+
* [Setup a webhook in your Git server](#setup-a-webhook-in-your-git-server)
1616
* [Test Code Manager](#test-code-manager)
17-
* [Updating From a Previous Version of PE](#updating-from-a-previous-version-of-pe)
17+
* [Updating from a previous version of PE](#updating-from-a-previous-version-of-pe)
1818
* [Upgrading to PE2015\.3\.z from PE 2015\.2\.z](#upgrading-to-pe20153z-from-pe-20152z)
1919
* [Appendix](#appendix)
20-
* [Test The Zack/r10k Webhook](#test-the-zackr10k-webhook)
20+
* [Test the zack/r10k webhook](#test-the-zackr10k-webhook)
2121

22-
# Join The #ramp-up Channel on Puppet Community Slack
22+
# Join the #ramp-up channel on Puppet Community Slack
2323

24-
Our [Puppet Community Slack](http://slack.puppet.com) is a great way to interact with other Puppet users. The #ramp-up channel is specifically for users talking about starting with PE and using this repository.
24+
Our [Puppet Community Slack](http://slack.puppet.com) is a great way to interact with other Puppet users. The #ramp-up channel is specifically for users talking about starting with PE and using this repository.
2525

26-
Other channels in the Puppet Community Slack are great for asking general Puppet questions as well.
26+
Other channels in the Puppet Community Slack are great for asking general Puppet questions as well.
2727

28-
# Before Starting
28+
# Before starting
2929

30-
This control repo and the steps below are intended to be used during a new installation of PE.
30+
This control-repo and the steps below are intended to be used during a new installation of PE.
3131

3232
The instructions are geared towards a new installation of PE2015.3.z. However, the control-repo should work just fine on [PE2015.2.z](#upgrading-to-pe20153z-from-pe-20152z)
3333

3434
If you intend to use this control-repo on an existing installation then be warned that if you've already written or downloaded modules when you start using r10k it will remove all of the existing modules and replace them with what you define in your Puppetfile. Please copy or move your existing modules to another directory to ensure you do not lose any work you've already started.
3535

36-
# What You Get From This control-repo
36+
# What you get from this control-repo
3737

3838
As a result of following the instructions below you will receive the beginning of a best-practices installation of PE including...
3939

40-
- A git server
41-
- The ability to push code to your git server and have it automatically deployed to your PE Master
40+
- A Git server
41+
- The ability to push code to your Git server and have it automatically deployed to your PE master
4242
- A config_version script to output the commit of code that your agent just applied
4343
- Optimal tuning of PE settings for this configuration
4444
- Working and example roles/profiles code
4545

46-
# How To Set It All Up
46+
# How to set it all up
4747

48-
## Copy This Repo Into Your Own Git Server
48+
## Copy this repo into your own Git server
4949

50-
### Gitlab
50+
### GitLab
5151

52-
1. On a new server, install Gitlab
52+
1. On a new server, install GitLab
5353
- https://about.gitlab.com/downloads/
5454

55-
2. After Gitlab is installed you may sign into the web UI with the `root` user and password `5iveL!fe`
55+
2. After GitLab is installed you may sign into the web UI with the `root` user and password `5iveL!fe`
5656

57-
3. In the Gitlab UI, make a user for yourself
57+
3. In the GitLab UI, make a user for yourself
5858

59-
4. From your laptop or development machine, make an ssh key to link with your user.
60-
- Note: this is used for your laptop to communicate with your gitlab server to push code
59+
4. From your laptop or development machine, make an SSH key to link with your user.
60+
- Note: this is used for your laptop to communicate with your GitLab server to push code
6161
- https://help.github.com/articles/generating-ssh-keys/
6262
- http://doc.gitlab.com/ce/ssh/README.html
6363

64-
5. In the Gitlab UI, create a group called `puppet` ( this is case sensitive )
64+
5. In the GitLab UI, create a group called `puppet` ( this is case sensitive )
6565
- http://doc.gitlab.com/ce/workflow/groups.html
6666

67-
7. In the Gitlab UI, add your user to the `puppet` group
67+
7. In the GitLab UI, add your user to the `puppet` group
6868
- Make sure to give your user at least master permissions so you can complete the below steps
6969
- Read more about permissions:
7070
- https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/permissions/permissions.md
7171

72-
8. In the Gitlab UI, create a project called `control-repo` and set the Namespace to be the `puppet` group
72+
8. In the GitLab UI, create a project called `control-repo` and set the Namespace to be the `puppet` group
7373

74-
10. On your laptop, clone this github control repository
75-
- `git clone <repository url>`
74+
10. On your laptop, clone this GitHub control repo
75+
- `git clone <repo URL>`
7676
- `cd control-repo`
7777

7878
14. On your laptop, remove the origin remote
7979
- `git remote remove origin`
8080

81-
15. On your latptop, add your internal repository as the origin remote
82-
- `git remote add origin <ssh url of your gitlab repository>`
81+
15. On your latptop, add your internal repo as the origin remote
82+
- `git remote add origin <SSH URL of your GitLab repo>`
8383

84-
16. On your laptop, push the production branch of the repository from your machine up to your git server
84+
16. On your laptop, push the production branch of the repo from your machine up to your Git server
8585
- `git push origin production`
8686

8787
### Stash
8888

8989
Coming soon!
9090

91-
### Github
91+
### GitHub
9292

9393
Coming soon!
9494

95-
## Configure PE to Use the Control-Repo
95+
## Configure PE to use the control-repo
9696

9797
### Install PE
9898

9999
1. Download the latest version of the PE installer for your platform
100100
- https://puppetlabs.com/download-puppet-enterprise
101-
2. SSH into your puppet master and copy the installer tarball into `/tmp`
101+
2. SSH into your Puppet master and copy the installer tarball into `/tmp`
102102
2. Expand the tarball and `cd` into the directory
103103
3. Run `puppet-enterprise-installer` to install
104104

105105
If you run into any issues or have more questions about the installer you can see our docs here:
106106

107107
http://docs.puppetlabs.com/pe/latest/install_basic.html
108108

109-
### Get the Control-Repo Deployed On Your Master
109+
### Get the control-repo deployed on your master
110110

111-
At this point you have our control-repo code deployed into your git server. However, we have one final challenge: getting that code onto your puppet master. In the end state the master will pull code from the git server via code manager, however, at this moment your puppet master does not have credentials to get code from the git server.
111+
At this point you have our control-repo code deployed into your Git server. However, we have one final challenge: getting that code onto your Puppet master. In the end state the master will pull code from the Git server via Code Manager, however, at this moment your Puppet master does not have credentials to get code from the Git server.
112112

113-
So, we will set up a deploy key in the git server that will allow a ssh-key we make to deploy the code and configure everything else.
113+
So, we will set up a deploy key in the Git server that will allow an SSH key we make to deploy the code and configure everything else.
114114

115-
1. On your puppet master, make an ssh key for r10k to connect to gitlab
115+
1. On your Puppet master, make an SSH key for r10k to connect to GitLab
116116
- `/usr/bin/ssh-keygen -t rsa -b 2048 -C 'code_manager' -f /etc/puppetlabs/puppetserver/ssh/id-control_repo.rsa -q -N ''`
117117
- `cat /etc/puppetlabs/puppetserver/ssh/id-control_repo.rsa.pub`
118118
- References:
119119
- https://help.github.com/articles/generating-ssh-keys/
120120
- http://doc.gitlab.com/ce/ssh/README.html
121-
2. In the Gitlab UI, create a deploy key on the `control-repo` project
121+
2. In the GitLab UI, create a deploy key on the `control-repo` project
122122
- Paste in the public key from above
123123
3. Login to the PE console
124-
4. Navigate to the Classification page
125-
- Click on the PE Master group
126-
- Click the Classes tab
124+
4. Navigate to the **Nodes > Classification** page
125+
- Click on the **PE Master** group
126+
- Click the **Classes** tab
127127
- Add the `puppet_enterprise::profile::master`
128-
- Set the `r10k_remote` to the ssh url from the front page of your gitlab repo
128+
- Set the `r10k_remote` to the SSH URL from the front page of your GitLab repo
129129
- Set the `r10k_private_key` parameter to `/etc/puppetlabs/puppetserver/ssh/id-control_repo.rsa`
130-
- Commit your changes
131-
5. On your puppet master
130+
- **Commit** your changes
131+
5. On your Puppet master
132132
- Run:
133133

134134
~~~
@@ -137,20 +137,20 @@ So, we will set up a deploy key in the git server that will allow a ssh-key we m
137137
puppet agent -t
138138
~~~
139139
140-
5. Navigate back to the Classification page
140+
5. Navigate back to the **Nodes > Classification** page
141141
- Near the top of the page select "add a group"
142142
- Type `role::all_in_one_pe` for the group name
143-
- Click the "Add Group" button
144-
- Click the "add membership rules, classes and variables" link that appears
145-
- Below "Pin specific nodes to the group" type your master's fqdn into the box
146-
- Click "pin node"
147-
- Select the "classes" tab
148-
- On the right hand side, click the "refresh" link
143+
- Click the **Add Group** button
144+
- Click the **add membership rules, classes and variables** link that appears
145+
- Below **Pin specific nodes to the group** type your master's FQDN into the box
146+
- Click **pin node**
147+
- Select the **Classes** tab
148+
- On the right hand side, click the **Refresh** link
149149
- Wait for this to complete
150-
- In the "add new classes" box type `role::all_in_one_pe`
151-
- Click "add class"
152-
- Commit your changes
153-
8. On your puppet master
150+
- In the **add new classes** box type `role::all_in_one_pe`
151+
- Click **add class**
152+
- **Commit** your changes
153+
8. On your Puppet master
154154
- Run:
155155
156156
~~~
@@ -161,19 +161,19 @@ So, we will set up a deploy key in the git server that will allow a ssh-key we m
161161
162162
9. Code Manager is configured and has been used to deploy your code
163163
164-
## Setup a Webhook In Your Git Server
164+
## Setup a webhook in your Git server
165165
166-
1. On your puppet master
166+
1. On your Puppet master
167167
- `cat /etc/puppetlabs/puppetserver/.puppetlabs/webhook_url.txt`
168168
2. In your Git server's UI, add a webhook to the control-repo repository
169-
- You can paste the above webhook url
169+
- You can paste the above webhook URL
170170
3. Disable SSL verification on the webhook
171-
- Since code manager uses a self-singed cert from the Puppet CA it is not generally trusted
171+
- Since Code Manager uses a self-signed cert from the Puppet CA it is not generally trusted
172172
3. After you created the webhook use "test webhook" or similar functionality to confirm it works
173173
174174
## Test Code Manager
175175
176-
One of the components setup by this control-repo is that when you "push" code to your git server, the git server will inform the puppet master to deploy branch you just pushed.
176+
One of the components setup by this control-repo is that when you "push" code to your Git server, the git server will inform the Puppet master to deploy branch you just pushed.
177177
178178
1. In one terminal window, `tail -f /var/log/puppetlabs/puppetserver/puppetserver.log`
179179
2. In a second terminal window
@@ -187,26 +187,26 @@ One of the components setup by this control-repo is that when you "push" code to
187187
4. In your first terminal window review the `puppetserver.log` to see the type of logging each sync will create
188188
189189
----
190-
# Updating From a Previous Version of PE
190+
# Updating from a previous version of PE
191191
192-
## Upgrading to PE2015.3.z from PE 2015.2.z
192+
## Upgrading to PE 2015.3.z from PE 2015.2.z
193193
194194
Remove `pe_r10k` from the PE master group in the console and instead add the following two parameters to the `puppet_enterprise::profile::master` class under the PE master group.
195195
196-
- `r10k_remote` = the ssh url for your internal repo
196+
- `r10k_remote` = the SSH URL for your internal repo
197197
- `r10k_private_key` = `/etc/puppetlabs/puppetserver/code_manager.key`
198198
199-
When upgrading the `puppet_enterprise::profile::master` class has the `file_sync_enabled` parameter set to `false`. This parameter should be removed so that code manager can configure file sync.
199+
When upgrading the `puppet_enterprise::profile::master` class has the `file_sync_enabled` parameter set to `false`. This parameter should be removed so that Code Manager can configure file sync.
200200
201-
Finally, you’ll need to `echo 'code_manager_mv_old_code=true' > /opt/puppetlabs/facter/facts.d/code_manager_mv_old_code.txt` so that my puppet code will redeploy all of your code with code manager.
201+
Finally, you’ll need to `echo 'code_manager_mv_old_code=true' > /opt/puppetlabs/facter/facts.d/code_manager_mv_old_code.txt` so that my Puppet code will redeploy all of your code with Code Manager.
202202
203203
# Appendix
204204
205-
## Test The Zack/r10k Webhook
205+
## Test the zack/r10k webhook
206206
207207
If you are using PE2015.2.z or if you've forced the use of the zack/r10k webhook then you'll want to test that it works.
208208
209-
One of the components setup by this control-repo is that when you "push" code to your git server, the git server will inform the puppet master to run `r10k deploy environment -p`.
209+
One of the components setup by this control-repo is that when you "push" code to your Git server, the Git server will inform the Puppet master to run `r10k deploy environment -p`.
210210
211211
1. Edit README.md
212212
- Just add something to it

0 commit comments

Comments
 (0)