<commit_before>Puppet Concat Module
====================

This is a module that provides a native type for performing multi-part file
concatenation, generally referred to by the `Puppet Labs`_ team as the 'File
Fragment Pattern'.

The concept is based on ideas that <NAME> describes on his `Building
files from fragments in Puppet`_ page.

Installation
------------

The recommended way to install this package is either through the Puppet module
manager or via RPM. A spec file has been included that can be used to create an
RPM if required.

This module is known to be compatible with Puppet 2.6.

Basic Usage
-----------

This module has been designed to be quite flexible but follows the basic
pattern of specifying file fragments and subsequently building a target file. 

See the comments in the code for the definition of all options.

  concat_build { "identifier":
    order => ['*.tmp'],
    target => '/tmp/test'
  }

  concat_fragment { "identifier+01.tmp":
    content => "Some random stuff"
  }

  concat_fragment { "identifier+02.tmp":
    content => "Some other random stuff"
  }

Notes
-----

Concat fragments are stored under /var/lib/puppet/concat/fragments.

TODO
----

* Don't hardcode /var/lib/puppet. Instead use the value of $vardir.

.. _Puppet Labs: http://www.puppetlabs.com
.. _Building files from fragments in Puppet: http://www.devco.net/archives/2010/02/19/building_files_from_fragments_with_puppet.php<commit_msg>Looks liks RST likes tabs.<commit_after>Puppet Concat Module
====================

This is a module that provides a native type for performing multi-part file
concatenation, generally referred to by the `Puppet Labs`_ team as the 'File
Fragment Pattern'.

The concept is based on ideas that <NAME> describes on his `Building
files from fragments in Puppet`_ page.

== Installation

The recommended way to install this package is either through the Puppet module
manager or via RPM. A spec file has been included that can be used to create an
RPM if required.

This module is known to be compatible with Puppet 2.6.

== Basic Usage

This module has been designed to be quite flexible but follows the basic
pattern of specifying file fragments and subsequently building a target file. 

See the comments in the code for the definition of all options.

	concat_build { "identifier":
		order => ['*.tmp'],
		target => '/tmp/test'
	}

	concat_fragment { "identifier+01.tmp":
		content => "Some random stuff"
	}

	concat_fragment { "identifier+02.tmp":
		content => "Some other random stuff"
	}

== Notes

Concat fragments are stored under /var/lib/puppet/concat/fragments.

== TODO

* Don't hardcode /var/lib/puppet. Instead use the value of $vardir.

.. _Puppet Labs: http://www.puppetlabs.com
.. _Building files from fragments in Puppet: http://www.devco.net/archives/2010/02/19/building_files_from_fragments_with_puppet.php
{'fraction_non_alphanumeric': 0.09731426578304848, 'fraction_numerical': 0.009766306243460064, 'mean_word_length': 3.89419795221843, 'pattern_counts': {'":': 6, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5763641', 'n_tokens_mistral': 866, 'n_tokens_neox': 815, 'n_words': 355}