Skip to content

Commit

Permalink
New type yum::post_transaction_action
Browse files Browse the repository at this point in the history
A new type is added to install the post-transaction_action plugin
for YUM or DNF.

```puppet
yum::post_transaction_action{'touch_file':
  key     => 'openssh-*',
  command => 'touch /tmp/openssh-package-updated',
}
```

will touch a file every time an openssh package is installed
removed or upgraded.
  • Loading branch information
traylenator committed Jun 28, 2021
1 parent 4a76434 commit fd8d012
Show file tree
Hide file tree
Showing 9 changed files with 545 additions and 66 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,16 @@ yum::versionlock{'bash':
}
```

### Run a post transaction command
Specify a command to run after transactions of packages.

```puppet
yum::post_transaction_action{'touch_file':
key => 'openssh-*',
command => 'touch /tmp/openssh-package-updated',
}
```

### Install or remove *yum* package group

Install yum [package groups][3]. To list groups: `yum group list`. Then use
Expand Down

0 comments on commit fd8d012

Please sign in to comment.