Dear all,

As said in the subject line, is there a "nice" way of creating
directory tree if parent is not already there, like using "mkdir -p"?
I tried this:

class install_certs {

    $cert_dir = 'globus/cert'

    exec {
        'create_cert':
        command     => "/bin/mkdir -p /opt/$cert_dir",
        refreshonly => true,
    }

    file {
        "${hostname}-cert.pem":
        name    => "/opt/$cert_dir/${hostname}-cert.pem",
        mode    => '0444', owner => 'root', group => 'root',
        source  => "puppet:///modules/p_nodes/${hostname}-cert.pem";
    }
}

which is not working at all. Any suggestion from anyone? Cheers!!

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to