You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+74-74Lines changed: 74 additions & 74 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,134 +1,134 @@
1
-
Table of Contents
1
+
Table of contents
2
2
=================
3
3
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)
10
10
*[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)
13
13
*[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)
16
16
*[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)
18
18
*[Upgrading to PE2015\.3\.z from PE 2015\.2\.z](#upgrading-to-pe20153z-from-pe-20152z)
19
19
*[Appendix](#appendix)
20
-
*[Test The Zack/r10k Webhook](#test-the-zackr10k-webhook)
20
+
*[Test the zack/r10k webhook](#test-the-zackr10k-webhook)
21
21
22
-
# Join The #ramp-up Channel on Puppet Community Slack
22
+
# Join the #ramp-up channel on Puppet Community Slack
23
23
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.
25
25
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.
27
27
28
-
# Before Starting
28
+
# Before starting
29
29
30
-
This controlrepo 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.
31
31
32
32
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)
33
33
34
34
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.
35
35
36
-
# What You Get From This control-repo
36
+
# What you get from this control-repo
37
37
38
38
As a result of following the instructions below you will receive the beginning of a best-practices installation of PE including...
39
39
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
42
42
- A config_version script to output the commit of code that your agent just applied
43
43
- Optimal tuning of PE settings for this configuration
44
44
- Working and example roles/profiles code
45
45
46
-
# How To Set It All Up
46
+
# How to set it all up
47
47
48
-
## Copy This Repo Into Your Own Git Server
48
+
## Copy this repo into your own Git server
49
49
50
-
### Gitlab
50
+
### GitLab
51
51
52
-
1. On a new server, install Gitlab
52
+
1. On a new server, install GitLab
53
53
-https://about.gitlab.com/downloads/
54
54
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`
56
56
57
-
3. In the Gitlab UI, make a user for yourself
57
+
3. In the GitLab UI, make a user for yourself
58
58
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
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.
112
112
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.
114
114
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
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
170
170
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
172
172
3. After you created the webhook use "test webhook" or similar functionality to confirm it works
173
173
174
174
## Test Code Manager
175
175
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.
177
177
178
178
1. In one terminal window, `tail -f /var/log/puppetlabs/puppetserver/puppetserver.log`
179
179
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
187
187
4. In your first terminal window review the `puppetserver.log` to see the type of logging each sync will create
188
188
189
189
----
190
-
# Updating From a Previous Version of PE
190
+
# Updating from a previous version of PE
191
191
192
-
## Upgrading to PE2015.3.z from PE 2015.2.z
192
+
## Upgrading to PE 2015.3.z from PE 2015.2.z
193
193
194
194
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.
195
195
196
-
- `r10k_remote` = the ssh url for your internal repo
196
+
- `r10k_remote` = the SSH URL for your internal repo
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.
200
200
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.
202
202
203
203
# Appendix
204
204
205
-
## Test The Zack/r10k Webhook
205
+
## Test the zack/r10k webhook
206
206
207
207
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.
208
208
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`.
0 commit comments