1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# /etc/puppet/modules/ox/manifests/init.pp # Adapted from http://mail.madstop.com/pipermail/puppet-users/2007-April/002212.html # This always fails with "Unknown class". # When define was in site.pp _and_ in here, puppet complained about duplicate definition. # This stupidity is known to happen elsewhere. define () { $oxlangdir="/var/www/html/ox6/lang" file {"$oxlangdir/$name": purge => true, ensure => present, owner => root, group => root, mode => 644, source => "puppet:///ox/$name" } } { $myarray = [ "languages.js", "tu_FI.js", "fi_FI.js" ] add-ox-translation ( $myarray ) } |

