Hello, 

I am writing a puppet module and I am looking into a way to have a 
validation before trying to execute something in puppet. 

For example:  

If host is listing on port 3306 {

    file { 'name':
        ensure => file,
    }

}

or 

If host is listing on port 3306 {

include '::module::manifest'

}


I am a little lost on how to accomplish this. I have tried creating a 
custom function and custom factor but I wasn't successful.


Does anyone have any good solution for this?


Thanks!!

-- 
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/7776a753-d752-4a90-81a6-5cd71de6a3aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to