You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apache_directive { 'Disable autoindex in webroot':
ensure => present,
name => 'Options',
context => 'Directory[arg="/var/www/html"]',
args => 'FollowSymLinks',
}
apache_directive { 'Disable autoindex in icons':
ensure => present,
name => 'Options',
context => 'Directory[arg="/var/www/icons"]',
args => 'MultiViews FollowSymLinks',
}
When imported into a node these items report the following error: Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Cannot alias Apache_directive[Disable autoindex in icons] to ["Options"] at test.pp:19; resource ["Apache_directive", "Options"] already declared at test.pp:12 at test.pp:19 on node hostname.example.com
The text was updated successfully, but these errors were encountered:
Consider the following puppet code:
When imported into a node these items report the following error:
Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Cannot alias Apache_directive[Disable autoindex in icons] to ["Options"] at test.pp:19; resource ["Apache_directive", "Options"] already declared at test.pp:12 at test.pp:19 on node hostname.example.com
The text was updated successfully, but these errors were encountered: