Skip to content

Commit c7c21e9

Browse files
Merge pull request #2555 from jasonrandrews/review
Puppet review
2 parents 6a23177 + ab90f40 commit c7c21e9

File tree

3 files changed

+56
-29
lines changed

3 files changed

+56
-29
lines changed

content/learning-paths/servers-and-cloud-computing/puppet-on-gcp/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ cascade:
77

88
minutes_to_complete: 30
99

10-
who_is_this_for: This learning path is intended for software developers deploying and optimizing Puppet workloads on Linux/Arm64 environments, specifically using Google Cloud C4A virtual machines powered by Axion processors.
10+
who_is_this_for: This is an introductory topic for software developers deploying and optimizing Puppet workloads on Arm Linux environments, specifically using Google Cloud C4A virtual machines powered by Axion processors.
1111

1212
learning_objectives:
1313
- Provision an Arm-based SUSE SLES virtual machine on Google Cloud (C4A with Axion processors)

content/learning-paths/servers-and-cloud-computing/puppet-on-gcp/baseline.md

Lines changed: 54 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,47 +6,62 @@ weight: 5
66
layout: learningpathall
77
---
88

9-
## Puppet Baseline Testing on GCP SUSE VMs
10-
In this guide, you will perform baseline testing of Puppet on a GCP SUSE Arm64 VM to verify that the installation works correctly. You will check Puppet and Facter versions, run basic Puppet commands, apply a simple manifest, and confirm that system facts are collected accurately.
9+
## Puppet baseline testing on GCP SUSE VMs
1110

12-
### Verify Puppet Installation
13-
Verify that Puppet and Facter are correctly installed and respond to version checks:
11+
You can perform baseline testing of Puppet on a GCP SUSE Arm64 VM to verify that the installation works correctly. You will check Puppet and Facter versions, run basic Puppet commands, apply a simple manifest, and confirm that system facts are collected accurately.
12+
13+
### Verify the Puppet installation
14+
15+
Verify that Puppet and Facter are correctly installed and respond to version checks.
16+
17+
Check the Puppet version:
1418

15-
Version Check:
1619
```console
1720
puppet --version
1821
```
19-
Output:
22+
23+
The output shows the installed version:
24+
2025
```output
2126
8.10.0
2227
```
23-
Version Check:
28+
29+
Check the Facter version:
2430
```console
2531
facter --version
2632
```
27-
Output:
33+
34+
The output shows the Facter version:
35+
2836
```output
2937
4.10.0
3038
```
31-
Version Check:
39+
40+
Check the Ruby version, which is a dependency for Puppet:
41+
3242
```console
3343
ruby -v
3444
```
35-
Output:
45+
46+
The output confirms the Ruby version and architecture:
47+
3648
```output
3749
ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [aarch64-linux]
3850
```
3951

40-
### Run a Simple Puppet Command
41-
Check that Puppet responds to commands by running puppet help. If the help menu appears, Puppet is working correctly.
52+
### Run a simple Puppet command
53+
54+
Check that Puppet responds to commands by running `puppet help`. If the help menu appears, Puppet is working correctly.
55+
56+
Run the `puppet help` command:
4257

4358
```console
4459
puppet help
4560
```
4661

47-
Output:
62+
The output displays the help menu, confirming Puppet is operational:
4863

49-
```console
64+
```output
5065
Usage: puppet <subcommand> [options] <action> [options]
5166
5267
Available subcommands:
@@ -82,7 +97,8 @@ Puppet v8.10.0
8297
```
8398

8499
### Test a Simple Puppet Manifest
85-
Create and run a basic Puppet script to make sure Puppet can apply configurations. If it successfully creates the test file, your Puppet agent functions as expected.
100+
101+
Create a basic Puppet script to make sure Puppet can apply configurations. If it successfully creates the test file, your Puppet agent functions as expected.
86102

87103
```bash
88104
cd ~
@@ -93,19 +109,21 @@ file { '/tmp/puppet_test.txt':
93109
}
94110
EOF
95111
```
112+
113+
Run the script:
114+
96115
```console
97116
puppet apply test.pp
98117
```
99118

100119
You should see an output similar to:
120+
101121
```output
102122
Notice: Compiled catalog for danson-puppet-2.c.arm-deveco-stedvsl-prd.internal in environment production in 0.01 seconds
103123
Notice: /Stage[main]/Main/File[/tmp/puppet_test.txt]/ensure: defined content as '{sha256}bcf972b61979afe69626549b3f3f30798aeb50b359e76603a36e96b2abbe73c0'
104124
Notice: Applied catalog in 0.01 seconds
105125
```
106126

107-
**Then verify:**
108-
109127
Open the file created by Puppet to confirm the content matches your script. This step validates that Puppet executed your manifest correctly.
110128

111129
```console
@@ -117,14 +135,15 @@ Output:
117135
Hello from Puppet on SUSE ARM64!
118136
```
119137

120-
### Check Facter Integration
121-
Run `facter` commands to verify that it collects accurate system details like OS and CPU type. This ensures Puppet can gather the facts it needs for automation decisions.
138+
### Check Facter integration
139+
140+
Run `facter` commands to verify that it collects accurate system details, such as the OS and CPU type. This ensures Puppet can gather the facts it needs for automation decisions.
122141

123-
OS Check:
142+
Check the OS:
124143
```console
125144
facter os
126145
```
127-
Output:
146+
The output is similar to the following:
128147
```output
129148
{
130149
architecture => "aarch64",
@@ -151,19 +170,27 @@ Output:
151170
}
152171
}
153172
```
154-
Architecture Check:
173+
174+
Check the architecture:
175+
155176
```console
156177
facter architecture
157178
```
158-
Output:
179+
180+
The output is:
181+
159182
```output
160183
aarch64
161184
```
162-
Processors Check:
185+
186+
Check the processors:
187+
163188
```console
164189
facter processors
165190
```
166-
Output:
191+
192+
The output is similar to the following:
193+
167194
```output
168195
{
169196
cores => 4,
@@ -179,4 +206,5 @@ Output:
179206
threads => 1
180207
}
181208
```
182-
With these checks complete, proceed to the Puppet benchmarking section to run workload‑focused tests on the GCP SUSE VMs.
209+
210+
With these checks complete, proceed to the Puppet benchmarking section to run workload-focused tests on the GCP SUSE VMs.

content/learning-paths/servers-and-cloud-computing/puppet-on-gcp/benchmarking.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ Create a directory and a simple manifest file:
3131
cd ~
3232
mkdir -p ~/puppet-benchmark
3333
cd ~/puppet-benchmark
34-
vi benchmark.pp
3534
```
3635

37-
Add the following content to the `benchmark.pp`:
36+
Use an editor to create the following content in a file named `benchmark.pp`:
3837

3938
```puppet
4039
notify { 'Benchmark Test':

0 commit comments

Comments
 (0)