Skip to content

Commit 88124c1

Browse files
committed
Put commands in code blocks instead of seperate blocks
1 parent 08bfb2c commit 88124c1

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

README.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,13 @@ At this point you have our control-repo code deployed into your Git server. How
106106
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.
107107

108108
1. On your Puppet master, make an SSH key for r10k to connect to GitLab
109-
- `mkdir /etc/puppetlabs/puppetserver/ssh`
110-
- `/usr/bin/ssh-keygen -t rsa -b 2048 -C 'code_manager' -f /etc/puppetlabs/puppetserver/ssh/id-control_repo.rsa -q -N ''`
111-
- `cat /etc/puppetlabs/puppetserver/ssh/id-control_repo.rsa.pub`
109+
110+
~~~
111+
mkdir /etc/puppetlabs/puppetserver/ssh
112+
/usr/bin/ssh-keygen -t rsa -b 2048 -C 'code_manager' -f /etc/puppetlabs/puppetserver/ssh/id-control_repo.rsa -q -N ''
113+
cat /etc/puppetlabs/puppetserver/ssh/id-control_repo.rsa.pub
114+
~~~
115+
112116
- References:
113117
- https://help.github.com/articles/generating-ssh-keys/
114118
- http://doc.gitlab.com/ce/ssh/README.html
@@ -175,14 +179,19 @@ Independent of which Git server you choose you will grab the webhook URL from yo
175179
176180
## Test Code Manager
177181
178-
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.
182+
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 the branch you just pushed.
179183
180184
1. On your Puppet Master, `tail -f /var/log/puppetlabs/puppetserver/puppetserver.log`
181185
2. On your laptop in a separate terminal window:
182-
- Add a new file, `touch test_file`
183-
- `git add test_file`
184-
- `git commit -m "adding a test_file"`
185-
- `git push origin production`
186+
- Add a new file
187+
188+
~~~
189+
touch test_file
190+
git add test_file
191+
git commit -m "adding a test_file"
192+
git push origin production
193+
~~~
194+
186195
3. Allow the push to complete and then wait a few seconds for everything to sync over
187196
- On your Puppet Master, `ls -l /etc/puppetlabs/code/environments/production`
188197
- Confirm test_file is present

0 commit comments

Comments
 (0)