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 [email protected]',
'/dev/sdb -a -o on -S on -s L/../../6/02 -m [email protected]',
'/dev/sdc -a -o on -S on -s L/../../7/18 -m [email protected]',
},
path => '/etc/smartd.conf',
}
}
},
false => {
file_line { 'add_2disks_smartd':
line => {
'/dev/sda -a -o on -S on -s L/../../4/02 -m [email protected]',
'/dev/sdb -a -o on -S on -s L/../../6/02 -m [email protected]',
},
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.