We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4876b8 commit 3031f97Copy full SHA for 3031f97
manifests/manage.pp
@@ -56,7 +56,7 @@
56
case $type {
57
'file': {
58
if 'template' in $attributes and 'content' in $attributes {
59
- fail("You can not set content and template fir file ${title}")
+ fail("You can not set 'content' and 'template' for file ${title}")
60
}
61
if 'template' in $attributes {
62
$content = epp($attributes['template'])
spec/classes/manage_spec.rb
@@ -39,6 +39,9 @@
39
40
41
end
42
+ Puppet::Functions.create_function(:'epp') do
43
+ return 'I am a template'
44
+ end
45
46
it { is_expected.to compile }
47
it { is_expected.to contain_file('/etc/motd.d/hello').with_content('I say Hi').with_notify('Service[sshd]') }
templates/manage_spec.epp
0 commit comments