https://github.com/puppetlabs/puppet/blob/1a557254012447a4f0a2e01eeebaf52c75ab6f80/lib/puppet/module_tool/skeleton/templates/generator/Rakefile#L3 - tracked
Hi,
I got a file resource
file {'/usr/java/jboss-as/server/somesoftware/deploy/jontram-ds.xml':
ensure => file,
owner => 'root',
group => 'root',
mode => '0655',
content => template('somesoftware/jboss/jontram-ds.xml.erb'),
require => [ Class['somesoftware::cpfiles'], somesoftware::mariadb::createdb [ $db_name ] ],
}
The second last line is obviously to long (over 80 lines). It works in one line but I get a puppet-lint error. I would like to cut it it two. My first thought was to use the '\'
like
require => [ Class['somesoftware::cpfiles'],\
somesoftware::mariadb::createdb [ $db_name ]
}
Have you tried omitting the '\'? As far as I know, Puppet has no requirement that array literals be expressed all on one line, and newlines are permitted as part of the optional whitespace between elements.
Have you tried omitting the '\'? As far as I know, Puppet has no requirement that array literals be expressed all on one line, and newlines are permitted as part of the optional whitespace between elements.It will work without the "\". I was just wondering why because I haven't found anything in the official documentation and on several web places for some reason the "\" solution was propagated.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/1491dc4d-91c2-414e-8db8-6f90c3189921%40googlegroups.com.
It works now. Thanks for your informative answers.
--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/7v-N9oHHZh8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/6b3d3567-c290-42ce-83b0-da474ef27c4e%40googlegroups.com.