Help for this page
define line($file, $line, $ensure = 'present') { case $ensure { ... line => 'ssh-rsa AAAA/BBBB/knMQ== user@host.f.q.d.n', ensure => absent, }
2019-11-27 21:49:14 +0000 /Stage[main]/Main/Line[ssh_key]/Exec[/usr/bi +n/perl -ni -e 'print unless /^\Qssh-rsa AAAA/BBBB/knMQ== user@host.f. +q.d.n\E$/' '/root/user/b1.bak']/returns (notice): Having no space bet +ween pattern and following word is deprecated at -e line 1. 2019-11-27 21:49:14 +0000 /Stage[main]/Main/Line[ssh_key]/Exec[/usr/bi +n/perl -ni -e 'print unless /^\Qssh-rsa AAAA/BBBB/knMQ== user@host.f. +q.d.n\E$/' '/root/user/b1.bak']/returns (notice): Bareword found wher +e operator expected at -e line 1, near "/^\Qssh-rsa AAAA/BBBB" ... 2019-11-27 21:49:14 +0000 /Stage[main]/Main/Line[ssh_key]/Exec[/usr/bi +n/perl -ni -e 'print unless /^\Qssh-rsa AAAA/BBBB/knMQ== user@host.f. +q.d.n\E$/' '/root/user/b1.bak']/returns (notice): Execution of -e abo +rted due to compilation errors. 2019-11-27 21:49:14 +0000 Puppet (err): /usr/bin/perl -ni -e 'print un +less /^\Qssh-rsa AAAA/BBBB/knMQ== user@host.f.q.d.n\E$/' '/root/user/ +b1.bak' returned 255 instead of one of [0] 2019-11-27 21:49:14 +0000 /Stage[main]/Main/Line[ssh_key]/Exec[/usr/bi +n/perl -ni -e 'print unless /^\Qssh-rsa AAAA/BBBB/knMQ== user@host.f. +q.d.n\E$/' '/root/user/b1.bak']/returns (err): change from notrun to +0 failed: /usr/bin/perl -ni -e 'print unless /^\Qssh-rsa AAAA/BBBB/kn +MQ== user@host.f.q.d.n\E$/' '/root/user/b1.bak' returned 255 instead +of one of [0]