Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

unless statement

$
0
0
Hi, I'm trying to write a unless statement like below. But it's giving syntax error near '==' during the agent run. I'm using puppet 2.6. class user_manage { unless $facts['user_stat'] == "enabled" { user { 'test': ensure => present, ..... } } } Please let me know what's wrong in my class or any other alternative way to get this done. Thank you.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>