Skip to content

Commit 0287c06

Browse files
committed
Update docs
1 parent 0eb5066 commit 0287c06

File tree

1 file changed

+117
-0
lines changed

1 file changed

+117
-0
lines changed

docker/README.md

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
# README
2+
3+
These directories contain Dockerfiles that are useful for testing installation and upgrades.
4+
5+
All examples assume the `PUPPET_FORGE_TOKEN` environment variable is set.
6+
7+
## Usage
8+
9+
### Installation
10+
11+
This case uses the `install_shell.sh` task to install puppet-agent 8.x and verifies
12+
`puppet apply` works.
13+
14+
#### Usage
15+
16+
```
17+
docker/bin/install.sh [os name] [agent version]
18+
```
19+
20+
#### Perform default install
21+
22+
Without any arguments, puppet-agent 8.11.0 will be installed on Rocky 8
23+
24+
```
25+
$ docker/bin/install.sh
26+
...
27+
Installing : puppet-agent-8.11.0-1.el8.x86_64
28+
...
29+
Notice: Scope(Class[main]): puppet apply
30+
Notice: Compiled catalog for 201fbd3e5e0b in environment production in 0.02 seconds
31+
Notice: Applied catalog in 0.02 seconds
32+
```
33+
34+
#### Install the latest version of an OS
35+
36+
When given an `os name` parameter, puppet-agent 8.11.0 will be installed on the latest
37+
version of that OS, in this example Fedora 41.
38+
39+
```
40+
$ docker/bin/install.sh fedora
41+
...
42+
Installing : puppet-agent-8.11.0-1.el9.x86_64
43+
...
44+
Notice: Scope(Class[main]): puppet apply
45+
Notice: Compiled catalog for 881280c14d12 in environment production in 0.02 seconds
46+
Notice: Applied catalog in 0.02 seconds
47+
```
48+
49+
#### Install a specific platform and version
50+
51+
When given `os name` and `agent version` parameters, install that version of the
52+
agent on that OS, in this example pupet-agent 8.10.0 on Fedora 40.
53+
54+
```
55+
$ docker/bin/install.sh fedora40 8.10.0
56+
...
57+
Installing : puppet-agent-8.10.0-1.fc40.x86_64
58+
...
59+
Notice: Scope(Class[main]): puppet apply
60+
Notice: Compiled catalog for 6791cd8e4da1 in environment production in 0.02 seconds
61+
Notice: Applied catalog in 0.02 seconds
62+
```
63+
64+
### Upgrades
65+
66+
This case installs a `before` version of puppet-agent and verifies you can use
67+
this module to upgrade to an `after` version.
68+
69+
#### Usage
70+
71+
```
72+
docker/bin/upgrade.sh [os name] [before] [after]
73+
```
74+
75+
##### Perform default upgrade
76+
77+
Without any arguments, puppet-agent 7.34.0 will be installed on Rocky 8 and will
78+
be upgraded to 8.11.0.
79+
80+
```
81+
$ docker/bin/upgrade.sh
82+
...
83+
Notice: /Stage[main]/Puppet_agent::Install/Package[puppet-agent]/ensure: ensure changed '7.34.0-1.el8' to '8.10.0'
84+
```
85+
86+
##### Upgrade a specific platform
87+
88+
When given an `os name` parameter, puppet-agent 8.11.0 will be installed on the latest
89+
version of that OS, in this example amazon 2023.
90+
91+
```
92+
$ docker/bin/upgrade.sh amazon
93+
...
94+
Notice: /Stage[main]/Puppet_agent::Install/Package[puppet-agent]/ensure: ensure changed '7.34.0-1.amazon2023' to '8.11.0'
95+
```
96+
97+
##### Upgrade from a specific version
98+
99+
When given an `os name` and `before` parameters, install that version of the
100+
agent and upgrade to the default `after` version, in this example, 8.11.0.
101+
102+
```
103+
$ docker/bin/upgrade.sh rocky 7.12.0
104+
...
105+
Notice: /Stage[main]/Puppet_agent::Install/Package[puppet-agent]/ensure: ensure changed '7.12.0-1.el8' to '8.11.0'
106+
```
107+
108+
##### Upgrade from and to specific versions
109+
110+
When given an `os name`, `before` and `after` parameters, install the `before`
111+
version of the agent and upgrade to the `after` version.
112+
113+
```
114+
$ docker/bin/upgrade.sh rocky 7.16.0 8.10.0
115+
...
116+
Notice: /Stage[main]/Puppet_agent::Install/Package[puppet-agent]/ensure: ensure changed '7.16.0-1.el8' to '8.10.0'
117+
```

0 commit comments

Comments
 (0)