Puppet array of hashes not being built properly -


hello trying build array of hashes following code:

$stddirectoryvalue = {         path          => '/',         options       => ['indexes','followsymlinks',],         index_options => ['fancyindexing', 'foldersfirst', 'namewidth=*', 'suppressdescription', 'suppresssize'],         allow_override => ['none'],         order => 'allow,deny',         allow => 'from all'   }    # setting of 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'],     ],   } 

where directories see trying use variable of $stddirectoryvalue, , add on index_ignore hash afterwards. end in conf file this:

<directory "/">   options indexes followsymlinks   indexoptions fancyindexing foldersfirst namewidth=* suppressdescription suppresssize   allowoverride none   order allow,deny   allow </directory> 

how include index_ignore hash in file?

i don't think want array of hashes here - need hash merge.

try merge function puppetlabs-stdlib module.

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

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -