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.
↧