puppet/README.md
Breno Brand Fernandes e2a1828ffc Bugfix on readme
2024-04-20 02:25:33 -04:00

48 lines
1.5 KiB
Markdown

# Puppet
This is the packaging for [Puppet](https://puppet.com/).
The files are downloaded from [downloads.puppet.com](https://downloads.puppet.com/puppet/) since they contain GPG signed tarballs, unlike on Rubygems.
Additionally it vendors various Puppet modules to match upstream's [puppet-agent config](https://github.com/puppetlabs/puppet-agent).
## Updating
Typically you will be notified via [release-monitoring](https://release-monitoring.org/project/7018/), which creates a Bugzilla.
Start with bumping the spec and reference the Bugzilla number.
```
BZ=2151953 VERSION=7.21.0
commit_message="Update to $VERSION (fixes rhbz#$BZ)"
rpmdev-bumpspec --new="$VERSION" --comment="$commit_message" puppet.spec
```
Then verify whether any vendored modules need to be updated.
See the lines in the spec file itself on how to do that.
In addition to that the dependencies should be verified.
Once that's done, retrieve the sources:
```
spectool --get-files puppet.spec
```
Then upload the sources:
```
spectool --list-files puppet.spec | awk '/https:/ { print $2 }' | xargs -n 1 basename | xargs fedpkg new-sources --offline
```
Test out a scratch build:
```
koji build --scratch rawhide $(fedpkg srpm 2>/dev/null | grep ^Wrote | rev | cut -d "/" -f1 | rev)
```
If it looks all right, drop the `--offline` parameter from the spectool.
Commit, push, build, update
```
# git additions/removals/etc at this point
fedpkg commit -m "$commit_message"
fedpk build --target rawhide
fedpkg update
```