Hi,

My questing will be silly but sorry for that

I facing problem on setting up the hostname based manifest

My requirement is if the hostname match statment1 file need to be print.

But in all the nodes statmen1 file is printing not sure where i have done 
mistake. hear the below my manifest file


class pkg::statment {
    if ["$hostname" == "172.20.14.173"] {
        file { '/tmp/statment1' :
            ensure => 'file',
            } 
        }
    else { 
        file { '/tmp/statment2' :
            ensure => 'file',
            }
         }
}


-- 
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/7a6a23a8-1ac0-46d7-8b0e-13a04c82aa9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to