Dear all
now I tried
file_line {'test':
ensure => 'absent',
path => '/root/.ssh/authorized_keys',
line => 'test',
}
Line ssh-rsa SNNwKzN/c1JmSlYOy4hK1yYsOJKOK+n5Vivt3DJGwxL3VpU= test@abc is
still there
With
file_line {'test':
ensure => 'absent',
path => '/root/.ssh/authorized_keys',
match => 'test',
}
I get the error Error: Failed to apply catalog: Validation of
File_line[test] failed: Both line and path are required attributes at
/data/git/test/modules/accounts/manifests/del_key_in_root.pp:204
With this the line is not removed.
file_line {'test':
ensure => 'absent',
path => '/root/.ssh/authorized_keys',
line => 'test',
match => 'test',
}
Best regards
Andreas
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/effd1d59-703b-4fed-b9f2-ba0d21a17e60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.