Skip to content

Commit 254c154

Browse files
authored
Merge pull request #672 from voxpupuli/docker_documentation
Add documentation for Puppet Code and Docker
2 parents 2d5e44a + b97fd6e commit 254c154

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,25 @@ docker run -it \
5757

5858
Optionally you can set `PUPPETBOARD_URL_PREFIX` env variable to a value like `/puppetboard` to run the app under a URL prefix.
5959

60+
You can use the following Puppet Code to have Puppetboard managed by Puppet:
61+
62+
```puppet
63+
include docker
64+
65+
docker::image { 'ghcr.io/voxpupuli/puppetboard': }
66+
67+
docker::run { 'puppetboard':
68+
image => 'ghcr.io/voxpupuli/puppetboard',
69+
env => [
70+
'PUPPETDB_HOST=127.0.0.1',
71+
'PUPPETDB_PORT=8080',
72+
'PUPPETBOARD_PORT=8088',
73+
],
74+
net => 'host',
75+
}
76+
```
77+
78+
6079
We also provide the Dockerfile so you can build the image yourself:
6180
```bash
6281
docker build -t puppetboard .

0 commit comments

Comments
 (0)