Puppet-lint showing errors (two spaces and trailing whitespaces)
class entapps {
dsc_package { 'mysqlconnector':
dsc_ensure => 'Present',
dsc_name => 'MySQL Connector Net 6.9.9',
dsc_path => 'D:\\DSCPackages\\mysql-connector-net-6.9.9.msi',
}
if $::hostname =~ /^erp-(udc|aws)-build(07|08)/ {
package { 'tightvnc':
ensure => 2.8.8,
provider => 'chocolatey',
}
}
Puppet lint showing:
- ERROR: trailing whitespace found on line 20
- ERROR: two-space soft tabs not used on line 21
Here is the line 21 from the above code : if $::hostname =~ /^erp-(udc|aws)-build(07|08)/ {
Can anyone explain the standards required to follow while writing puppet manifest and how I can resolve the issues within this manifest.
Thanks.
Also, for some problems, you can add a `--fix` flag to your puppet-lint run and it can automatically fix a few of them!