Hello,

Currently develop a module for the packet smartd. But I'm using the resource 
file_line, but displays the following message when using the puppet parser:

"err: Could not parse for environment production: Syntax error at '{', 
expected '}' at / etc / puppet / modules / smartd / Manifests / init.pp: 66
'
I really can not see my mistake. Could you help me? Any tips?

class smartd ($disks = undef) {

  if $disks == undef {
    $disks = $::has_sdc ? {
      true => {
          file_line => { 'add3_3disks_smartd:
          line => {
          '/dev/sda -a -o on -S on -s L/../../4/02 -m a...@b.com',
          '/dev/sdb -a -o on -S on -s L/../../6/02 -m b...@b.com',
          '/dev/sdc -a -o on -S on -s L/../../7/18 -m c...@b.com',
          },
          path => '/etc/smartd.conf',
      }
     }
    },

      false => {
        file_line { 'add_2disks_smartd':
          line => {
          '/dev/sda -a -o on -S on -s L/../../4/02 -m a...@a.com',
          '/dev/sdb -a -o on -S on -s L/../../6/02 -m b...@a.com',
          },
          path => '/etc/smartd.conf',
        }
      }
    }
  }
 require 'smartd::start'

}

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/BM7LbVlTeGkJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to