Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17891

How to check if item is in list in puppet?

$
0
0

This is just for testing purposes, so the example might be bad but I just want to know how to do it.

So in puppet i have `$test_list = ['machineA','machineB','machineC']

How can I make write the following if loop in puppet?

if $::fqdn in $test_list: do something 
submitted by /u/juniorsysadmin1
[link] [comments]

Viewing all articles
Browse latest Browse all 17891

Trending Articles