Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ordering on webhook and docu #638

Merged
merged 2 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ class { 'r10k::webhook':
To aid in debugging, or to give you some hints as to how to trigger the webhook by unsupported systems, here's a curl command to trigger the webhook to deploy the 'production' environment:

```bash
curl -d '
curl --header "X-Gitlab-Event: Push Hook" -d '
{
"repository": {"name": "foo", "owner": {"login": "foo"}},
"ref": "production"
Expand All @@ -549,7 +549,7 @@ curl -d '
If you are utilizing environment prefixes, you'll need to specify the full environment title (including the prefix) in the 'ref' parameter:

```bash
curl -d '
curl --header "X-Gitlab-Event: Push Hook" -d '
{
"repository": {"name": "bar", "owner": {"login": "foo"}},
"ref": "bar_production"
Expand Down
4 changes: 4 additions & 0 deletions manifests/webhook.pp
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,8 @@
contain r10k::webhook::package
contain r10k::webhook::config
contain r10k::webhook::service

Class['r10k::webhook::package']
-> Class['r10k::webhook::config']
~> Class['r10k::webhook::service']
tuxmea marked this conversation as resolved.
Show resolved Hide resolved
}
1 change: 0 additions & 1 deletion manifests/webhook/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@
ensure => $r10k::webhook::config_ensure,
path => $r10k::webhook::config_path,
content => stdlib::to_yaml($r10k::webhook::config),
notify => Service['webhook-go'],
}
}