From d4a95fd0b9136e1e1195415f77fa8445aff0cca8 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 3 Apr 2024 08:28:49 +0000 Subject: [PATCH] Release prep v9.6.0 --- CHANGELOG.md | 8 ++++++++ REFERENCE.md | 43 +++++++++++++++++++++++++++++++++---------- metadata.json | 2 +- 3 files changed, 42 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bcb50c1a7..71b2e8ac1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. 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). +## [v9.6.0](https://github.com/puppetlabs/puppetlabs-stdlib/tree/v9.6.0) - 2024-04-03 + +[Full Changelog](https://github.com/puppetlabs/puppetlabs-stdlib/compare/v9.5.0...v9.6.0) + +### Added + +- Allow usage of file templates with stdlib::manage [#1422](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1422) ([tuxmea](https://github.com/tuxmea)) + ## [v9.5.0](https://github.com/puppetlabs/puppetlabs-stdlib/tree/v9.5.0) - 2024-03-11 [Full Changelog](https://github.com/puppetlabs/puppetlabs-stdlib/compare/v9.4.1...v9.5.0) diff --git a/REFERENCE.md b/REFERENCE.md index 8e6621420..63169ab67 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -266,20 +266,33 @@ and `subscribe`. ```puppet class { 'stdlib::manage': - 'create_resources' => { - 'file' => { - '/etc/motd.d/hello' => { - 'content' => 'I say Hi', - 'notify' => 'Service[sshd]', + 'create_resources' => { + 'file' => { + '/etc/motd.d/hello' => { + 'content' => 'I say Hi', + 'notify' => 'Service[sshd]', + }, + '/etc/motd' => { + 'ensure' => 'file', + 'epp' => { + 'template' => 'profile/motd.epp', } }, - 'package' => { - 'example' => { - 'ensure' => 'installed', - 'subscribe' => ['Service[sshd]', 'Exec[something]'], + '/etc/information' => { + 'ensure' => 'file', + 'erb' => { + 'template' => 'profile/informaiton.erb', } } + }, + 'package' => { + 'example' => { + 'ensure' => 'installed', + 'subscribe' => ['Service[sshd]', 'Exec[something]'], + } } + } +} ``` ##### @@ -290,6 +303,15 @@ stdlib::manage::create_resources: '/etc/motd.d/hello': content: I say Hi notify: 'Service[sshd]' + '/etc/motd': + ensure: 'file' + epp: + template: 'profile/motd.epp' + context: {} + '/etc/information': + ensure: 'file' + erb: + template: 'profile/information.erb' package: example: ensure: installed @@ -309,7 +331,8 @@ The following parameters are available in the `stdlib::manage` class: Data type: `Hash[String, Hash]` A hash of resources to create -NOTE: functions, such as `template` or `epp`, are not evaluated. +NOTE: functions, such as `template` or `epp`, are not directly evaluated + but processed as Puppet code based on epp and erb hash keys. Default value: `{}` diff --git a/metadata.json b/metadata.json index 1befd5b66..ce7b104f0 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "puppetlabs-stdlib", - "version": "9.5.0", + "version": "9.6.0", "author": "puppetlabs", "summary": "Standard library of resources for Puppet modules.", "license": "Apache-2.0",