我如何让p为虚拟用户部署ssh密钥?
我试图让人偶为虚拟用户分配授权的ssh密钥,但我不断收到以下错误: err: Could not retrieve catalog: Could not parse for environment production: Syntax error at 'user'; expected '}' at /etc/puppet/modules/users/manifests/ssh_authorized_keys.pp:9 我相信我的配置是正确的(在下面列出),但是我缺少语法错误或范围界定问题吗?我只想将用户分配给节点,并让这些用户自动安装其ssh密钥。也许有更好的方法可以做到这一点,而我只是想得太多? # /etc/puppet/modules/users/virtual.pp class user::virtual { @user { "user": home => "/home/user", ensure => "present", groups => ["root","wheel"], uid => "8001", password => "SCRAMBLED", comment => "User", shell => "/bin/bash", …