Skip to content

Instantly share code, notes, and snippets.

@llowder
Created May 27, 2014
Embed
What would you like to do?
[root@split-master modules]# ll /tmp/foo_split-*
-rw-r----- 1 root root 33 May 27 15:58 /tmp/foo_split-console.corp.puppetlabs.net.txt
-rw-r----- 1 root root 34 May 27 15:58 /tmp/foo_split-puppetdb.corp.puppetlabs.net.txt
---------------------------------------------------------------------------------------------
[root@split-puppetdb ~]# ll /tmp/foo_split-*
-rw-r----- 1 root root 33 May 27 16:00 /tmp/foo_split-console.corp.puppetlabs.net.txt
-rw-r----- 1 root root 32 May 27 15:57 /tmp/foo_split-master.corp.puppetlabs.net.txt
-------------------------------------------------------------------------------------------------
[root@split-console ~]# ll /tmp/foo_split-*
-rw-r----- 1 root root 32 May 27 15:58 /tmp/foo_split-master.corp.puppetlabs.net.txt
-rw-r----- 1 root root 34 May 27 15:58 /tmp/foo_split-puppetdb.corp.puppetlabs.net.txt
class xport_test {
tag 'foo_bar'
$foo_file = "/tmp/foo_${::fqdn}.txt"
@@concat{
$foo_file:
owner => 'root',
group => 'root',
mode => '0640',
}
@@concat::fragment{
"foo_part_${::fqdn}":
target => $foo_file,
content => $::fqdn,
order => 15,
}
Concat <<| tag == 'foo_bar' |>>
Concat::Fragment <<| tag == 'foo_bar' |>>
}
node default {
# This is where you can declare classes for all nodes.
# Example:
# class { 'my_class': }
include xport_test
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment