# File lib/puppet/network/rest_authconfig.rb, line 58 58: def insert_default_acl 59: DEFAULT_ACL.each do |acl| 60: unless rights[acl[:acl]] 61: Puppet.info "Inserting default '#{acl[:acl]}'(%s) acl because %s" % [acl[:authenticated] ? "auth" : "non-auth" , ( !exists? ? "#{Puppet[:rest_authconfig]} doesn't exist" : "none where found in '#{@file}'")] 62: mk_acl(acl) 63: end 64: end 65: # queue an empty (ie deny all) right for every other path 66: # actually this is not strictly necessary as the rights system 67: # denies not explicitely allowed paths 68: unless rights["/"] 69: rights.newright("/") 70: rights.restrict_authenticated("/", :any) 71: end 72: end