Class: Ansible::Ruby::Modules::Assemble
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Assemble
- Defined in:
- lib/ansible/ruby/modules/generated/files/assemble.rb
Overview
Assembles a configuration file from fragments. Often a particular program will take a single configuration file and does not support a C(conf.d) style structure where it is easy to build up the configuration from multiple sources. C(assemble) will take a directory of files that can be local or have already been transferred to the system, and concatenate them together to produce a destination file. Files are assembled in string sorting order. Puppet calls this idea I(fragments).
Instance Method Summary collapse
-
#backup ⇒ :yes, ...
Create a backup file (if C(yes)), including the timestamp information so you can get the original file back if you somehow clobbered it incorrectly.
-
#delimiter ⇒ String?
A delimiter to separate the file contents.
-
#dest ⇒ String
A file to create using the concatenation of all of the source files.
-
#ignore_hidden ⇒ :yes, ...
A boolean that controls if files that start with a ‘.’ will be included or not.
-
#regexp ⇒ Object?
Assemble files only if C(regex) matches the filename.
-
#remote_src ⇒ :yes, ...
If False, it will search for src at originating/master machine, if True it will go to the remote/target machine for the src.
-
#src ⇒ String
An already existing directory full of source files.
-
#validate ⇒ String?
The validation command to run before copying into place.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#backup ⇒ :yes, ...
Returns Create a backup file (if C(yes)), including the timestamp information so you can get the original file back if you somehow clobbered it incorrectly.
20 |
# File 'lib/ansible/ruby/modules/generated/files/assemble.rb', line 20 attribute :backup |
#delimiter ⇒ String?
Returns A delimiter to separate the file contents.
24 |
# File 'lib/ansible/ruby/modules/generated/files/assemble.rb', line 24 attribute :delimiter |
#dest ⇒ String
Returns A file to create using the concatenation of all of the source files.
16 |
# File 'lib/ansible/ruby/modules/generated/files/assemble.rb', line 16 attribute :dest |
#ignore_hidden ⇒ :yes, ...
Returns A boolean that controls if files that start with a ‘.’ will be included or not.
35 |
# File 'lib/ansible/ruby/modules/generated/files/assemble.rb', line 35 attribute :ignore_hidden |
#regexp ⇒ Object?
Returns Assemble files only if C(regex) matches the filename. If not set, all files are assembled. All “\” (backslash) must be escaped as “\\” to comply yaml syntax. Uses Python regular expressions; see U(docs.python.org/2/library/re.html).
32 |
# File 'lib/ansible/ruby/modules/generated/files/assemble.rb', line 32 attribute :regexp |
#remote_src ⇒ :yes, ...
Returns If False, it will search for src at originating/master machine, if True it will go to the remote/target machine for the src. Default is True.
28 |
# File 'lib/ansible/ruby/modules/generated/files/assemble.rb', line 28 attribute :remote_src |
#src ⇒ String
Returns An already existing directory full of source files.
12 |
# File 'lib/ansible/ruby/modules/generated/files/assemble.rb', line 12 attribute :src |
#validate ⇒ String?
Returns The validation command to run before copying into place. The path to the file to validate is passed in via ‘%s’ which must be present as in the sshd example below. The command is passed securely so shell features like expansion and pipes won’t work.
39 |
# File 'lib/ansible/ruby/modules/generated/files/assemble.rb', line 39 attribute :validate |