> Sent: Wednesday, 21 September, 2016 14:51:00
> Subject: Re: [Puppet Users] Duplicate declaration - hard to find...
>>
>>
>> in a define all resources have to have unique names, error says in some
>> case
>> you do not. So you're either attempting to make 2 instances where
>> application
>> is 'agtweb' or something else,
>>
>> Show the actual code. And the actual code where you make 'agtweb'
>> application.
>>
>>
> Sorry here's the code:
which one produced the actual error you had? Computer doesnt really have
a concept of 'or' about code here.
Again though, your file{} resources need to be unique, so when you have
the first case you have to do:
apache::varwwwatdsrcapp{"foo":
application => "foo"
}
apache::varwwwatdsrcapp{"bar":
application => "baz"
}
these are fine, but:
apache::varwwwatdsrcapp{"foo":
application => "foo"
}
apache::varwwwatdsrcapp{"bar":
application => "foo"
}
is not because it would cause a duplicate file of the same name
likewise
apache::varwwwatdsrcapp{"foo": }
apache::varwwwatdsrcapp{"bar": }
would fail because you set a default on 'application' which would
cause duplicates.
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to
puppet-users...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/puppet-users/79dff55f-e972-4a9c-9636-3a0f5f44b84c%40googlegroups.com.