Version information
This version is compatible with:
- Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
- Puppet >= 7.0.0 < 9.0.0
- , , , , , , , , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'puppetlabs-concat', '9.1.0'
Learn more about managing modules with a PuppetfileDocumentation
concat
Table of Contents
- Overview
- Module Description - What the module does and why it is useful
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- License
- Development - Guide for contributing to the module
Overview
The concat module lets you construct files from multiple ordered fragments of text.
Module Description
The concat module lets you gather concat::fragment
resources from your other modules and order them into a coherent file through a single concat
resource.
Beginning with concat
To start using concat you need to create:
- A concat{} resource for the final file.
- One or more concat::fragment{}s.
A minimal example might be:
concat { '/tmp/file':
ensure => present,
}
concat::fragment { 'tmpfile':
target => '/tmp/file',
content => 'test contents',
order => '01'
}
Usage
Maintain a list of the major modules on a node
To maintain an motd file that lists the modules on one of your nodes, first create a class to frame up the file:
class motd {
$motd = '/etc/motd'
concat { $motd:
owner => 'root',
group => 'root',
mode => '0644'
}
concat::fragment { 'motd_header':
target => $motd,
content => "\nPuppet modules on this server:\n\n",
order => '01'
}
# let local users add to the motd by creating a file called
# /etc/motd.local
concat::fragment { 'motd_local':
target => $motd,
source => '/etc/motd.local',
order => '15'
}
}
# let other modules register themselves in the motd
define motd::register (
$content = "",
$order = '10',
) {
if $content == "" {
$body = $name
} else {
$body = $content
}
concat::fragment { "motd_fragment_$name":
target => '/etc/motd',
order => $order,
content => " -- $body\n"
}
}
Then, in the declarations for each module on the node, add motd::register{ 'Apache': }
to register the module in the motd.
class apache {
include apache::install, apache::config, apache::service
motd::register { 'Apache': }
}
These two steps populate the /etc/motd file with a list of the installed and registered modules, which stays updated even if you just remove the registered modules' include
lines. System administrators can append text to the list by writing to /etc/motd.local.
When you're finished, the motd file will look something like this:
Puppet modules on this server:
-- Apache
-- MySQL
<contents of /etc/motd.local>
Reference
See REFERENCE.md
Limitations
This module has been tested on all PE-supported platforms, and no issues have been identified.
For an extensive list of supported operating systems, see metadata.json
License
This codebase is licensed under the Apache2.0 licensing, however due to the nature of the codebase the open source dependencies may also use a combination of AGPL, BSD-2, BSD-3, GPL2.0, LGPL, MIT and MPL Licensing.
Development
Acceptance tests for this module leverage puppet_litmus. To run the acceptance tests follow the instructions here. You can also find a tutorial and walkthrough of using Litmus and the PDK on YouTube.
If you run into an issue with this module, or if you would like to request a feature, please file a ticket. Every Tuesday the Content and Tooling Team has office hours in the Puppet Community Slack, where you can ask questions about this and any other supported modules. This session usually runs at, approximately, 15:00 (BST), for about an hour.
If you have problems getting this module up and running, please contact Support.
If you submit a change to this module, be sure to regenerate the reference documentation as follows:
puppet strings generate --format markdown --out REFERENCE.md
Contributors
Richard Pijnenburg (@Richardp82)
Joshua Hoblitt (@jhoblitt)
Reference
Table of Contents
Defined types
concat
: Manages a file, compiled from one or more text fragments.concat::fragment
: Manages a fragment of text to be compiled into a file.
Resource types
concat_file
: Generates a file with content from fragments sharing a common unique tag.concat_fragment
: Manages the fragment.
Defined types
concat
Manages a file, compiled from one or more text fragments.
Examples
concat { '/tmp/concat':
ensure => present,
owner => 'root',
group => 'root',
mode => '0644',
}
Parameters
The following parameters are available in the concat
defined type:
backup
ensure
ensure_newline
format
force
group
mode
order
owner
path
replace
selinux_ignore_defaults
selrange
selrole
seltype
seluser
show_diff
validate_cmd
warn
create_empty_file
backup
Data type: Variant[Boolean, String]
Specifies whether (and how) to back up the destination file before overwriting it. Your value gets passed on to Puppet's native file resource for execution. Valid options: true, false, or a string representing either a target filebucket or a filename extension beginning with ".".
Default value: 'puppet'
ensure
Data type: Enum['present', 'absent']
Specifies whether the destination file should exist. Setting to 'absent' tells Puppet to delete the destination file if it exists, and negates the effect of any other parameters.
Default value: 'present'
ensure_newline
Data type: Boolean
Specifies whether to add a line break at the end of each fragment that doesn't already end in one.
Default value: false
format
Data type: Enum['plain', 'yaml', 'json', 'json-array', 'json-pretty', 'json-array-pretty']
Specify what data type to merge the fragments as. Valid options: 'plain', 'yaml', 'json', 'json-array', 'json-pretty', 'json-array-pretty'.
Default value: 'plain'
force
Data type: Boolean
Specifies whether to merge data structures, keeping the values with higher order. Used when format is specified as a value other than 'plain'.
Default value: false
group
Data type: Optional[Variant[String, Integer]]
Specifies a permissions group for the destination file. Valid options: a string containing a group name or integer containing a gid.
Default value: undef
mode
Data type: String
Specifies the permissions mode of the destination file. Valid options: a string containing a permission mode value in octal notation.
Default value: '0644'
order
Data type: Enum['alpha','numeric']
Specifies a method for sorting your fragments by name within the destination file. You can override this setting for individual fragments by adjusting the order parameter in their concat::fragment declarations.
Default value: 'alpha'
owner
Data type: Optional[Variant[String, Integer]]
Specifies the owner of the destination file. Valid options: a string containing a username or integer containing a uid.
Default value: undef
path
Data type: Stdlib::Absolutepath
Specifies a destination file for the combined fragments.
Default value: $name
replace
Data type: Boolean
Specifies whether to overwrite the destination file if it already exists.
Default value: true
selinux_ignore_defaults
Data type: Optional[Boolean]
See the file type's selinux_ignore_defaults documentention: https://docs.puppetlabs.com/references/latest/type.html#file-attribute-selinux_ignore_defaults
Default value: undef
selrange
Data type: Optional[String]
See the file type's selrange documentention: https://docs.puppetlabs.com/references/latest/type.html#file-attribute-selrange
Default value: undef
selrole
Data type: Optional[String]
See the file type's selrole documentention: https://docs.puppetlabs.com/references/latest/type.html#file-attribute-selrole
Default value: undef
seltype
Data type: Optional[String]
See the file type's seltype documentention: https://docs.puppetlabs.com/references/latest/type.html#file-attribute-seltype
Default value: undef
seluser
Data type: Optional[String]
See the file type's seluser documentention: https://docs.puppetlabs.com/references/latest/type.html#file-attribute-seluser
Default value: undef
show_diff
Data type: Boolean
Specifies whether to set the show_diff parameter for the file resource. Useful for hiding secrets stored in hiera from insecure reporting methods.
Default value: true
validate_cmd
Data type: Optional[String]
Specifies a validation command to apply to the destination file.
Default value: undef
warn
Data type: Variant[Boolean, String]
Specifies whether to add a header message at the top of the destination file. Valid options: the booleans true and false, or a string
to serve as the header.
If you set 'warn' to true, concat adds the following line with an order of 0:
# This file is managed by Puppet. DO NOT EDIT.
Before 2.0.0, this parameter would add a newline at the end of the warn message. To improve flexibilty, this was removed. Please add
it explicitly if you need it.
Default value: false
create_empty_file
Data type: Boolean
Specifies whether to create an empty file if no fragments are defined. Defaults to true.
Default value: true
concat::fragment
Manages a fragment of text to be compiled into a file.
Parameters
The following parameters are available in the concat::fragment
defined type:
content
Data type: Optional[Variant[Sensitive[String], String, Deferred]]
Supplies the content of the fragment. Note: You must supply either a content parameter or a source parameter. Allows a String or a Deferred function which returns a String.
Default value: undef
order
Data type: Variant[String, Integer]
Reorders your fragments within the destination file. Fragments that share the same order number are ordered by name. The string option is recommended.
Default value: '10'
source
Data type: Optional[Variant[String, Array]]
Specifies a file to read into the content of the fragment. Note: You must supply either a content parameter or a source parameter. Valid options: a string or an array, containing one or more Puppet URLs.
Default value: undef
target
Data type: String
Specifies the destination file of the fragment. Valid options: a string containing the path or title of the parent concat resource.
Resource types
concat_file
Generates a file with content from fragments sharing a common unique tag.
Examples
Concat_fragment <<| tag == 'unique_tag' |>>
concat_file { '/tmp/file':
tag => 'unique_tag', # Optional. Default to undef
path => '/tmp/file', # Optional. If given it overrides the resource name
owner => 'root', # Optional. Default to undef
group => 'root', # Optional. Default to undef
mode => '0644' # Optional. Default to undef
order => 'numeric' # Optional, Default to 'numeric'
ensure_newline => false # Optional, Defaults to false
}
Properties
The following properties are available in the concat_file
type.
ensure
Valid values: present
, absent
Specifies whether the destination file should exist. Setting to 'absent' tells Puppet to delete the destination file if it exists, and negates the effect of any other parameters.
Default value: present
Parameters
The following parameters are available in the concat_file
type.
backup
create_empty_file
ensure_newline
force
format
group
mode
order
owner
path
replace
selinux_ignore_defaults
selrange
selrole
seltype
seluser
show_diff
tag
validate_cmd
backup
Specifies whether (and how) to back up the destination file before overwriting it. Your value gets passed on to Puppet's native file resource for execution. Valid options: true, false, or a string representing either a target filebucket or a filename extension beginning with ".".'
create_empty_file
Valid values: true
, false
, yes
, no
Specifies whether to create an empty file if no fragments are defined.
Default value: true
ensure_newline
Valid values: true
, false
, yes
, no
Specifies whether to add a line break at the end of each fragment that doesn't already end in one.
Default value: false
force
Valid values: true
, false
, yes
, no
Specifies whether to merge data structures, keeping the values with higher order.
Default value: false
format
Valid values: plain
, yaml
, json
, json-array
, json-pretty
, json-array-pretty
Specify what data type to merge the fragments as. Valid options: 'plain', 'yaml', 'json', 'json-array', 'json-pretty', 'json-array-pretty'.
Default value: plain
group
Specifies a permissions group for the destination file. Valid options: a string containing a group name or integer containing a gid.
mode
Specifies the permissions mode of the destination file. Valid options: a string containing a permission mode value in octal notation.
order
Valid values: alpha
, numeric
Specifies a method for sorting your fragments by name within the destination file. You can override this setting for individual fragments by adjusting the order parameter in their concat::fragment declarations.
Default value: numeric
owner
Specifies the owner of the destination file. Valid options: a string containing a username or integer containing a uid.
path
Specifies a destination file for the combined fragments. Valid options: a string containing an absolute path. Default value: the title of your declared resource.
replace
Valid values: true
, false
, yes
, no
Specifies whether to overwrite the destination file if it already exists.
Default value: true
selinux_ignore_defaults
Valid values: true
, false
, yes
, no
See the file type's selinux_ignore_defaults documentention: https://docs.puppetlabs.com/references/latest/type.html#file-attribute-selinux_ignore_defaults.
selrange
See the file type's selrange documentation: https://docs.puppetlabs.com/references/latest/type.html#file-attribute-selrange
selrole
See the file type's selrole documentation: https://docs.puppetlabs.com/references/latest/type.html#file-attribute-selrole
seltype
See the file type's seltype documentation: https://docs.puppetlabs.com/references/latest/type.html#file-attribute-seltype
seluser
See the file type's seluser documentation: https://docs.puppetlabs.com/references/latest/type.html#file-attribute-seluser
show_diff
Valid values: true
, false
, yes
, no
Specifies whether to set the show_diff parameter for the file resource. Useful for hiding secrets stored in hiera from insecure reporting methods.
tag
Required. Specifies a unique tag reference to collect all concat_fragments with the same tag.
validate_cmd
Specifies a validation command to apply to the destination file. Requires Puppet version 3.5 or newer. Valid options: a string to be passed to a file resource.
concat_fragment
Manages the fragment.
Examples
# The example is based on exported resources.
concat_fragment { "uniqe_name_${::fqdn}":
tag => 'unique_name',
order => 10, # Optional. Default to 10
content => 'some content' # OR
# content => template('template.erb')
source => 'puppet:///path/to/file'
}
Parameters
The following parameters are available in the concat_fragment
type.
content
Supplies the content of the fragment. Note: You must supply either a content parameter or a source parameter. Valid options: a string
name
namevar
Name of resource.
order
Reorders your fragments within the destination file. Fragments that share the same order number are ordered by name. The string option is recommended.
Default value: 10
source
Specifies a file to read into the content of the fragment. Note: You must supply either a content parameter or a source parameter. Valid options: a string or an array, containing one or more Puppet URLs.
tag
Specifies a unique tag to be used by concat_file to reference and collect content.
target
Required. Specifies the destination file of the fragment. Valid options: a string containing the path or title of the parent concat_file resource.
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
v9.1.0 - 2024-12-17
Added
- (CAT-2119) Add Ubuntu 24.04 support #817 (shubhamshinde360)
- (CAT-2100) Add Debian 12 support #815 (shubhamshinde360)
Fixed
- (CAT-2158) Upgrade rexml to address CVE-2024-49761 #819 (amitkarsale)
v9.0.2 - 2024-01-18
Fixed
v9.0.1 - 2023-11-28
Fixed
v9.0.0 - 2023-06-13
Changed
v8.0.1 - 2023-05-10
Fixed
- Revert "Correct Naming/AccessorMethodName" #777 (alexjfisher)
- (MAINT) Addressing wrong Rubocop TargetRubyVersion #776 (LukasAud)
- (CONT-891) Address nightly rubocop failures #774 (LukasAud)
v8.0.0 - 2023-04-12
Changed
v7.4.0 - 2023-04-12
Added
- Add parameter to not create empty files when no fragments are defined #766 (JonasVerhofste)
Fixed
- puppet5: drop remnants of puppet5 code #761 (b4ldr)
- Allow content parameter of concat_fragment to be Sensitive #757 (baurmatt)
v7.3.3 - 2023-03-13
Fixed
v7.3.2 - 2023-03-09
Fixed
v7.3.1 - 2023-02-10
Fixed
- pdksync - (CONT-189) Remove support for RedHat6 / OracleLinux6 / Scientific6 #747 (david22swan)
- pdksync - (CONT-130) Dropping Support for Debian 9 #744 (jordanbreen28)
v7.3.0 - 2022-10-03
Added
- pdksync - (GH-cat-11) Certify Support for Ubuntu 22.04 #739 (david22swan)
- (GH-cat-12) Add Support for Redhat 9 #738 (david22swan)
Fixed
- (MAINT) Drop support for Solaris 10, Windows (7, 8.1), Windows Server 2008 R2 and AIX (5.3, 6.1) #741 (jordanbreen28)
v7.2.0 - 2022-05-16
Added
- pdksync - (FM-8922) - Add Support for Windows 2022 #725 (david22swan)
- pdksync - (IAC-1753) - Add Support for AlmaLinux 8 #720 (david22swan)
- pdksync - (IAC-1751) - Add Support for Rocky 8 #719 (david22swan)
Fixed
- pdksync - (GH-iac-334) Remove Support for Ubuntu 14.04 #729 (david22swan)
- pdksync - (GH-iac-334) Remove Support for Ubuntu 16.04 #728 (david22swan)
- pdksync - (IAC-1787) Remove Support for CentOS 6 #723 (david22swan)
- pdksync - (IAC-1598) - Remove Support for Debian 8 #718 (david22swan)
v7.1.1 - 2021-08-25
v7.1.0 - 2021-08-23
Added
- pdksync - (IAC-1709) - Add Support for Debian 11 #713 (david22swan)
v7.0.2 - 2021-06-21
Fixed
v7.0.1 - 2021-03-29
Fixed
v7.0.0 - 2021-03-01
Changed
- pdksync - Remove Puppet 5 from testing and bump minimal version to 6.0.0 #685 (carabasdaniel)
v6.4.0 - 2020-12-14
Added
- pdksync - (feat) Add support for Puppet 7 #672 (daianamezdrea)
v6.3.0 - 2020-11-30
Added
- (IAC-746) - Add ubuntu 20.04 support #644 (david22swan)
- Add support for Deferred function in concat fragment #627 (baurmatt)
Fixed
- (MODULES-9711) Consistently manage concat with no fragments #661 (seanmil)
- (IAC-981) - Removal of inappropriate terminology #659 (david22swan)
v6.2.0 - 2020-01-21
Added
- pdksync - (FM-8581) - Debian 10 added to travis and provision file refactored #624 (david22swan)
- (FM-8698) - Addition of Support for CentOS 8 #615 (david22swan)
- FM-8398 - support Debian10 #599 (lionce)
Fixed
- Fix newline handling at the end of fragments #623 (LadyNamedLaura)
v6.1.0 - 2019-07-24
Added
Fixed
- (MODULES-9479) Fix nested array merge behavior #593 (seanmil)
- (FM-8317) Updated regex to allow for windows paths with \'s #591 (pgrant87)
- (bugfix) allow private keys in ssh testing #585 (tphoney)
v6.0.0 - 2019-05-21
Changed
- pdksync - (MODULES-8444) - Raise lower Puppet bound #575 (david22swan)
Added
Fixed
5.3.0 - 2019-02-21
Added
- (MODULES-8138) - Addition of support for SLES 15 #545 (david22swan)
Fixed
- (FM-7725) - Remove OSX testing/support for concat #561 (lionce)
- pdksync - (FM-7655) Fix rubygems-update for ruby < 2.3 #550 (tphoney)
5.2.0 - 2018-12-13
Added
- (FM-7339) - Add i18n implementation #537 (eimlav)
- (FM-7341) - Added REFERENCE.md and updated documentation #536 (eimlav)
- (MODULES-5124) Add support for JSON arrays #519 (johanfleury)
Fixed
- (FM-7581) - Fix CI failures for Windows 2016 and 10 Enterprise #540 (eimlav)
- (MODULES-8287) - Fix fomat=>'yaml' allowing only hashes #535 (eimlav)
- (FM-7513) - Removing Windows 2016-core from our support matrix #534 (pmcmaw)
- (MODULES-8088) - newline_spec.rb test expectation update #531 (lionce)
- (MODULES-7717) ensure_newline uses unix line ending on windows #517 (tkishel)
5.1.0 - 2018-10-03
Added
- pdksync - (FM-7392) - Puppet 6 Testing Changes #525 (pmcmaw)
- pdksync - (MODULES-6805) metadata.json shows support for puppet 6 #524 (tphoney)
- pdksync - (MODULES-7658) use beaker4 in puppet-module-gems #518 (tphoney)
5.0.0 - 2018-08-24
Changed
- [FM-6954] Removal of scientific linux 5 and debian 7 #508 (david22swan)
Added
- (FM-7206) Update concat to support Ubuntu 18.04 #510 (david22swan)
4.2.1 - 2018-03-23
Fixed
- Handle concat_file source when not an array #493 (vicinus)
- (MODULES-6817) noop => false for concat_file #492 (hunner)
4.2.0 - 2018-02-23
Fixed
4.1.1 - 2017-11-13
Changed
4.1.0 - 2017-10-24
Added
- tdevelioglu/refurbish #428 (tdevelioglu)
Fixed
- Format force tests #469 (willmeek)
- is_string is deprecated. Please use puppet language #458 (tritrimax)
4.0.1 - 2017-06-14
4.0.0 - 2017-04-25
3.0.0 - 2017-04-18
Changed
Added
2.2.1 - 2017-04-07
Added
Fixed
- Four commits #433 (hunner)
- (MODULES-4474) Drop autorequire of fragments in concat_file #430 (tdevelioglu)
- Invalid tag fix #429 (fuero)
2.2.0 - 2016-06-28
Changed
- Fix the minimum required stdlib version to 4.2.0. #386 (parabolala)
Added
Fixed
- (MODULES-3463) Properly passes metaparams to generated resource #402 (bmjen)
- (MODULES-3332) Correct target validation #400 (hdeheer)
- (MODULES-3332 ) Correct the path validation. #397 (binford2k)
- (MODULES-3097) fix fragment sorting #391 (rettier)
- Fix helper on host command #389 (hunner)
- (MODULES-3027) Fixes escaping the '*' character in tag creation. #387 (bmjen)
2.1.0 - 2016-01-26
Fixed
1.2.5 - 2015-12-07
Added
- Should fix require, refresh dependencies #369 (asasfu)
- MODULES-1678 - Add show_diff attribute to concat and concat::fragment defined types #368 (jdkindy)
- Allow integer UID/GID for $owner/$group #367 (purplexa)
- (MODULES-2303) add selinux related params to concat type #361 (jhoblitt)
Fixed
- Fix line endings on windows #373 (karyon)
- fixes resource reference in concat_file eval_generate return #370 (bmjen)
- (MODULES-1700) Fix broken backup #363 (jhoblitt)
- Revert "Backup option breaks concat" #362 (jhoblitt)
- Backup option breaks concat #359 (j-vizcaino)
- Recent OpenBSD changed to ruby22 as default interpreter, that now #358 (buzzdeee)
1.2.4 - 2015-07-23
Changed
Added
- (#2208) FreeBSD: call /usr/local/bin/ruby explicitly #348 (gwollman)
- check for nil #347 (underscorgan)
- Add helper to install puppet/pe/puppet-agent #345 (underscorgan)
- Add support for Solaris 12 #344 (drewfisher314)
- Compare $::is_pe as bool, not string #343 (raphink)
- Add helper to install puppet/pe/puppet-agent #339 (hunner)
- (MODULES-2094) Extend regexp to remove parenthesis on safe names #332 (bmjen)
- (MODULES-2023) - autorequire the file we are generating #330 (duritong)
Fixed
- Revert "Add support for Solaris 12" #357 (underscorgan)
- Use AIO ruby if available #352 (underscorgan)
- fixes special characters test to support windows file restrictions #334 (bmjen)
1.2.3 - 2015-06-02
2.0.1 - 2015-06-02
Added
Fixed
- fix defaulted force behavior #321 (bmjen)
- (MODULES-2080) Call out changed behaviour of 'warn' parameter #320 (DavidS)
- fix fragment target handling #318 (bmjen)
- MODULES-2054 - fixes dependency bug in creating the target file #317 (bmjen)
2.0.0 - 2015-05-12
1.2.2 - 2015-05-12
Fixed
- readd ensure_newline param and tests for backwards compatibility #307 (bmjen)
- MODULES-1933: fixes backup passing in fragments without concat resource #303 (bmjen)
- fix for strict variables checking #302 (bmjen)
- Revert and fix regex #300 (IceBear2k)
- re-add removed params for backwards compatibility #297 (bmjen)
- Fixes windows #296 (bmjen)
1.2.1 - 2015-04-14
Fixed
- (MODULES-1700) Change the filebucketing behavior so static_compiler can ... #288 (woneill)
- setup: set user/group explicitly for dirs & script #287 (j-vizcaino)
- Fix breakage on OpenBSD in similar fashion as it is done for Windows. #284 (buzzdeee)
- Set script's group to 0 if script owner is root #280 (thias)
- Fixup $order parameter verification #277 (buzzdeee)
- Add validation for order parameter #275 (underscorgan)
- Revert "Lookup is_pe fact with getvar" #274 (cmurphy)
- Check if $is_pe exists before using it #270 (raphink)
- set group of fragments to gid #230 (duritong)
1.2.0 - 2015-02-17
Fixed
- Remove shell script #266 (underscorgan)
- Fix validate_cmd file resource parameter #263 (cmurphy)
- MODULES-1456 - make sure ruby is in path on PE #261 (underscorgan)
- MODULES-1764 Fix missing method for check_is_owned_by for windows #260 (cyberious)
- Add IntelliJ files to the ignore list #254 (cmurphy)
- Use the correct path on 32bit windows #247 (underscorgan)
- MODULES-1456 - make sure ruby is in path on PE #246 (underscorgan)
- Support running a validation command on the destination file. #243 (jmkeyes)
- Reset poisoned defaults from Exec #231 (GeoffWilliams)
1.1.2 - 2014-10-28
Fixed
1.1.1 - 2014-09-11
Fixed
- Remove deprecated puppet_module_install in favor of copy_module_to #222 (cyberious)
- fix: permitting $backup to be boolean false #208 (flypenguin)
- Fix errors with the future parser. #206 (bobtfish)
- fix concat broken on windows due to case sensitive regexp -- fixes MODULES-1203 #204 (GeoffWilliams)
1.0.4 - 2014-07-08
1.0.3 - 2014-06-05
Fixed
- Remove all the eq() checks as this breaks in PE3.3. #188 (apenney)
- Validate the concat::fragment order parameter as string||integer #185 (jhoblitt)
1.1.0 - 2014-05-14
Fixed
1.0.2 - 2014-03-03
Added
Fixed
- Lets can't be used outside of a test context #161 (hunner)
- Use tmpdir instead of /tmp for windows compatability #160 (hunner)
- Avoid multi-line greps on solaris 10 #157 (hunner)
- Fix aix/windows ownership issues and vardir path #156 (hunner)
1.0.1 - 2014-02-12
Fixed
1.1.0-rc1 - 2014-01-07
Added
- allow source param to concat::fragment to be a string or an Array #103 (jhoblitt)
- add rspec-puppet pending test for warning on inclusion of concat::setup #98 (jhoblitt)
- allow concat::fragment target param to be an arbitrary string #94 (jhoblitt)
- add deprecation warnings on removed parameters + warn on inclusion of co... #90 (jhoblitt)
- Param validation #83 (jhoblitt)
- Add Windows support #79 (luisfdez)
- Fragments #71 (apenney)
- Add an $ensure parameter to concat #39 (FredericLespez)
Fixed
- revert concat $warn/$warn_message param split + add deprecation warnings #124 (jhoblitt)
- fix regression preventing usage of fragment ensure => /target syntax #117 (jhoblitt)
- deprecate concat::fragment mode, owner, & group params #95 (jhoblitt)
- remove purging of /usr/local/bin/concatfragments.sh #86 (jhoblitt)
- remove default owner/user and group values #85 (jhoblitt)
- only backup target concat file + remove backup param from concat::fragme... #84 (jhoblitt)
- Fix group ownership on files. #81 (bleach)
- remove undocumented requirement to include concat::setup in manifest #77 (jhoblitt)
1.0.0 - 2013-08-14
1.0.0-rc1 - 2013-08-09
Added
- Update concatfragments.sh #63 (plantigrade)
- add ensure_newline #61 (tmclaugh)
- Allow WARNMSG to contain/start with '#' #46 (andir)
- added (file) $replace parameter to concat #38 (jpoppe)
Fixed
0.2.0 - 2012-09-04
Added
- Allow using a custom name and provide a path to the file that needs to be created using concat. #31 (vStone)
- Improvements #24 (pabelanger)
Fixed
- Include concat::setup from concat, so users don't need to #27 (djmitche)
- Remove spurious 'e' character. #26 (djmitche)
- Fix module name to make the PMT happier #25 (branan)
- Fail with helpful advice if $::concat_basedir is not yet set #21 (mrwacky42)
0.1.0 - 2012-04-30
Dependencies
- puppetlabs/stdlib (>= 9.0.0 < 10.0.0)
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Quality checks
We run a couple of automated scans to help you assess a module’s quality. Each module is given a score based on how well the author has formatted their code and documentation and select modules are also checked for malware using VirusTotal.
Please note, the information below is for guidance only and neither of these methods should be considered an endorsement by Puppet.
Malware scan results
The malware detection service on Puppet Forge is an automated process that identifies known malware in module releases before they’re published. It is not intended to replace your own virus scanning solution.
Learn more about malware scans- Module name:
- puppetlabs-concat
- Module version:
- 9.1.0
- Scan initiated:
- December 16th 2024, 21:30:34
- Detections:
- 0 / 60
- Scan stats:
- 60 undetected
- 0 harmless
- 0 failures
- 0 timeouts
- 0 malicious
- 0 suspicious
- 15 unsupported
- Scan report:
- View the detailed scan report