Hi,

On 2 August 2017 at 16:15, RG <[email protected]> wrote:

> I am trying to write my first puppet module.
>
> I need to be able to pull a value from a custom fact and write a value in
> a config file based on a value in the fact.
>
> Can I do and "if-then" statement  like in bash?
>

Yes! See https://docs.puppet.com/puppet/5.0/lang_conditional.html for the
details. The first example on that page even uses facts to decide.


Cheers, David


>
> Thanks for any guidance.
>
>
> --
> 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 [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/puppet-users/45e2fa45-1114-487d-afae-d5b17097045a%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/45e2fa45-1114-487d-afae-d5b17097045a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CALF7fHadYzzk%2B2cWvrqExDtVkp%2BN2FO6iPwN896uiVHPrFdzTA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to