I would like to use condition in a template with puppet 3.x.
In my params.pp :
$domain=test.org
$use_app = True
In my manifest :
class myapp::config {
require params
file { "/opt/myapp/config/app.conf":
mode=> '0644',
content => template("myapp/app.conf.erb"),
}
It works now. Thank you for the answer !
Le mardi 4 juin 2013 13:59:57 UTC+2, Johan De Wit a écrit :
>
> <% if $use_app == "False" %>
>
> Be aware of the double equal signs
>
>
>
>
> On 06/04/2013 12:58 PM, AVE1810 wrote:
>
> I would like to us
Hi,
When I run puppet agent --test --environment 42A, I have the following
warning :
Warning: Local environment: "42A" doesn't match server specified node
environment "production", switching agent to "production".
...
The puppet manifest for the environment "42A" isn't applied.
The puppet vers
Yes, it doesn't work. I have the same error
Le mercredi 30 octobre 2013 10:51:32 UTC+1, Daniele Sluijters a écrit :
>
> Hi,
>
> Have you tried --environment=42A?
>
> --
> Daniele Sluijters
>
> On Wednesday, 30 October 2013 09:47:13 UTC+1, AVE1810 wrote:
>>
2AGlo
>
> J
>
> On Wednesday, 30 October 2013 08:47:13 UTC, AVE1810 wrote:
>>
>> Hi,
>>
>> When I run puppet agent --test --environment 42A, I have the following
>> warning :
>> Warning: Local environment: "42A" doesn't match s