Skip to content

Commit

Permalink
Version 0.23.1: Puppet messages output
Browse files Browse the repository at this point in the history
  • Loading branch information
aursu committed Oct 31, 2024
1 parent 0147c1e commit 4901b0b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -561,11 +561,12 @@ node on Puppet server.

**Known Issues**

## Release 0.23.0
## Release 0.23.1

**Features**

* Updated `puppetlabs/puppet_agent` dependency to support Ubuntu 24.04
* Added Puppet messages output into `puppet::server::bootstrap` plan

**Bugfixes**

Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aursu-puppet",
"version": "0.23.0",
"version": "0.23.1",
"author": "aursu",
"summary": "Puppet server installation and setup",
"license": "Apache-2.0",
Expand Down
11 changes: 10 additions & 1 deletion plans/server/bootstrap.pp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
) {
run_plan(facts, $targets)

return apply($targets) {
$apply_results = apply($targets) {
include puppet

$access_data = lookup({
Expand Down Expand Up @@ -63,4 +63,13 @@
dns_alt_names => $dns_alt_names_list,
}
}

# Print log messages from the report
$apply_results.each |$result| {
$result.report['logs'].each |$log| {
out::message("${log['level'].upcase}: ${log['message']}")
}
}

return $apply_results
}

0 comments on commit 4901b0b

Please sign in to comment.