puppet in not in code
<p>I have this code...</p>

<pre><code>if $hostname in $var_slave {
    file { 
        "/var/spool/cron/mysql":  
        ensure =&gt; present,
        owner =&gt; $mysqlUser,
        group =&gt; $mysqlGroup,
        mode =&gt; "0600",
        source =&gt; 'puppet:///modules/eikonappdbcron/mysql-slave',
    }
} 
</code></pre>

<p>I want a way of checking if a value is not in a file.</p>

<p>I tried "if $hostname not in $var_master" but this doesn't work. After doing some research I believe I need to use an "!".  I can't get the syntax correct.</p>