在先前声明的Puppet资源中覆盖参数
我试图重buildnwaller的sssd傀儡模块 ,完全基于LDAP,并有点干净。 其中我们有一个为表单的每个validation域定义的资源 define sssd::domain ( $domain = $name, $domain_description = '', $domain_type, $ldap_uri = 'ldap://example.com', $ldap_search_base = 'dc=example,dc=com', $simple_allow_groups, …. ) 然后这个定义作为一个concat::fragment被传递,填充一个模板来构build最终的sssd.conf 。 如果我在每个节点中定义LDAP服务器,这一切都很好,如下所示: nodes.pp node "node1.systems.private" { include "puppet::client" class { 'sssd': domains => [ 'LDAP' ], make_home_dir => true; } sssd::domain { 'LDAP': domain_type => 'ldap', ldap_uri => 'ldaps://ldap.site.com:636', ldap_search_base => 'DC=site,DC=com', […]