On Feb 27, 2009, at 4:00 AM, hOOlä'gOO khän wrote:

>
> here's most of my class, if I comment out the bottom 3 clauses , the 3
> key files get copied.  otherwise it doesn't get copied.  what am i
> doing wrong ?
>
> class openvpn {
>       file {"/etc/openvpn/keys":
>               ensure => exists ,
>               ensure => present ,
>               ensure => directory ,
>               recurse => true ,
>               purge => true,
>               force => true,
>               owner => "root",
>               group => "root",
>               #mode => 755 ,
>               source => "puppet://puppet/files/colo/openvpn/keys" ,
>               ignore => ".svn" ,
>       }
>
>      file {"/etc/openvpn/keys/ca.key":
>              mode => 600 ,
>      }
>
>       file {"/etc/openvpn/keys/server.key":
>               mode => 600 ,
>       }
>
>       file {"/etc/openvpn/keys/ta.key":
>               mode => 600 ,
>       }
> }
>
>



Try with:

  require => File['etc/openvpn/keys']

In your last three file statements. Puppet does care about ordering  
unless you tell it to. You can't copy files into a directory that does  
not exists.

And regarding when you are creating a directory, I would skip ensure  
=> present Just stick to ensure => directory.




--~--~---------~--~----~------------~-------~--~----~
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