Puppet 未正确构建哈希的傀儡数组

Puppet 未正确构建哈希的傀儡数组,puppet,Puppet,您好,我正在尝试使用以下代码构建哈希数组: $stdDirectoryValue = { path => '/', options => ['Indexes','FollowSymLinks',], index_options => ['FancyIndexing', 'FoldersFirst', 'NameWidth=*', 'SuppressDescription', 'SuppressSize

您好,我正在尝试使用以下代码构建哈希数组:

$stdDirectoryValue = {
        path          => '/',
        options       => ['Indexes','FollowSymLinks',],
        index_options => ['FancyIndexing', 'FoldersFirst', 'NameWidth=*', 'SuppressDescription', 'SuppressSize'],
        allow_override => ['None'],
        order => 'Allow,Deny',
        allow => 'from all'
  }

  # Setting up of the website virtual hosts...
  apache::vhost { 'eds_tracker_test.eng.qpass.net':
    servername => 'eds_tracker_test.eng.qpass.net',
    port        => '80',
    serveraliases => ['eds_tracker_test'],
    docroot     => '/var/www/webapps/eds_tracker',
    error_log_file => 'logs/eds-tracker-error_log',
    directories => [
        $stdDirectoryValue,
        index_ignore =>  ['faq', 'phpmyfaq-2.6.17'],
    ],
  }
目录在哪里?你看,我试图使用$stdDirectoryValue变量,然后在索引上添加\u ignore散列。 我在conf文件中得到的结果是:

<Directory "/">
  Options Indexes FollowSymLinks
  IndexOptions FancyIndexing FoldersFirst NameWidth=* SuppressDescription SuppressSize
  AllowOverride None
  Order Allow,Deny
  Allow from all
</Directory>

选项索引跟随符号链接
IndexOptions FancyIndexing FoldersFirst NameWidth=*SuppressDescription SuppressSize
不允许超限
命令允许,拒绝
通融

我如何让它在我的文件中包含索引\u ignore hash?

我想你不想在这里包含一个hash数组-你需要一个hash合并

puppetlabs stdlib
模块中尝试

directories => [
    merge($stdDirectoryValue, { index_ignore =>  ['faq', 'phpmyfaq-2.6.17'] }),
],