Действия по воспроизведению
/etc/puppet/puppet.conf
[main]
parser = future
site.pp
$systems = [
'system01',
'system02',
'system03',
'system04',
'system05',
'system06',
'system07',
'system08',
'system09',
'system10'
]
each($systems) |$value| { notify $value }
Результат
Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
Could not parse for environment production: This Name is not productive.
A non productive construct may only be placed last in a block/sequence at
/etc/puppet/manifests/site.pp:38:27 on node vm-one.domain
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Попытки решить проблему
Could not parse for environment production: This Name is not productive
ни A non productive construct may only be placed last in a block/sequence
привел к ответу, который решает проблему.each($systems) |$value| { notify $value }
до конца файла тоже проблему не решилоРаботает после смены each($systems) |$value| { notify $value }
к each($systems) |$value| { notify {$value:} }
: