我在puppet中读到资源也可以在清单中使用 Resource[] 语法声明。我在清单下面写了但它给出了错误
Error: Could not parse for environment production: Syntax error at 'NO'; expected '}' at /etc/puppet/manifests/no.pp:3 on node pk-docker-01.cs1cloud.internal
Error: Could not parse for environment production: Syntax error at 'NO'; expected '}' at /etc/puppet/manifests/no.pp:3 on node pk-docker-01.cs1cloud.internal
file { '/var/NO/tmp' : ensure => directory,
}
Resource[User] {"NO":
ensure => present ,
password => 'admin@123',
}
group { no :
ensure => present ,
}
谢谢