Skip to content

Commit 6027cd7

Browse files
authored
Merge pull request #1424 from puppetlabs/release-prep
Release prep v9.6.0
2 parents 5e4a66b + d4a95fd commit 6027cd7

File tree

3 files changed

+42
-11
lines changed

3 files changed

+42
-11
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55

66
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
77

8+
## [v9.6.0](https://github.com/puppetlabs/puppetlabs-stdlib/tree/v9.6.0) - 2024-04-03
9+
10+
[Full Changelog](https://github.com/puppetlabs/puppetlabs-stdlib/compare/v9.5.0...v9.6.0)
11+
12+
### Added
13+
14+
- Allow usage of file templates with stdlib::manage [#1422](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1422) ([tuxmea](https://github.com/tuxmea))
15+
816
## [v9.5.0](https://github.com/puppetlabs/puppetlabs-stdlib/tree/v9.5.0) - 2024-03-11
917

1018
[Full Changelog](https://github.com/puppetlabs/puppetlabs-stdlib/compare/v9.4.1...v9.5.0)

REFERENCE.md

+33-10
Original file line numberDiff line numberDiff line change
@@ -266,20 +266,33 @@ and `subscribe`.
266266

267267
```puppet
268268
class { 'stdlib::manage':
269-
'create_resources' => {
270-
'file' => {
271-
'/etc/motd.d/hello' => {
272-
'content' => 'I say Hi',
273-
'notify' => 'Service[sshd]',
269+
'create_resources' => {
270+
'file' => {
271+
'/etc/motd.d/hello' => {
272+
'content' => 'I say Hi',
273+
'notify' => 'Service[sshd]',
274+
},
275+
'/etc/motd' => {
276+
'ensure' => 'file',
277+
'epp' => {
278+
'template' => 'profile/motd.epp',
274279
}
275280
},
276-
'package' => {
277-
'example' => {
278-
'ensure' => 'installed',
279-
'subscribe' => ['Service[sshd]', 'Exec[something]'],
281+
'/etc/information' => {
282+
'ensure' => 'file',
283+
'erb' => {
284+
'template' => 'profile/informaiton.erb',
280285
}
281286
}
287+
},
288+
'package' => {
289+
'example' => {
290+
'ensure' => 'installed',
291+
'subscribe' => ['Service[sshd]', 'Exec[something]'],
292+
}
282293
}
294+
}
295+
}
283296
```
284297

285298
#####
@@ -290,6 +303,15 @@ stdlib::manage::create_resources:
290303
'/etc/motd.d/hello':
291304
content: I say Hi
292305
notify: 'Service[sshd]'
306+
'/etc/motd':
307+
ensure: 'file'
308+
epp:
309+
template: 'profile/motd.epp'
310+
context: {}
311+
'/etc/information':
312+
ensure: 'file'
313+
erb:
314+
template: 'profile/information.erb'
293315
package:
294316
example:
295317
ensure: installed
@@ -309,7 +331,8 @@ The following parameters are available in the `stdlib::manage` class:
309331
Data type: `Hash[String, Hash]`
310332

311333
A hash of resources to create
312-
NOTE: functions, such as `template` or `epp`, are not evaluated.
334+
NOTE: functions, such as `template` or `epp`, are not directly evaluated
335+
but processed as Puppet code based on epp and erb hash keys.
313336

314337
Default value: `{}`
315338

metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "puppetlabs-stdlib",
3-
"version": "9.5.0",
3+
"version": "9.6.0",
44
"author": "puppetlabs",
55
"summary": "Standard library of resources for Puppet modules.",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)