/[adm]/puppet/modules/buildsystem/manifests/create_upload_dir.rb
ViewVC logotype

Contents of /puppet/modules/buildsystem/manifests/create_upload_dir.rb

Parent Directory Parent Directory | Revision Log Revision Log


Revision 949 - (show annotations) (download)
Wed Feb 2 23:18:05 2011 UTC (9 years, 6 months ago) by misc
File size: 914 byte(s)
also created the base directory ( found after seeing lots of error on my puppet vm )
1 define "create_upload_dir", :owner do
2
3 states = ["todo","done","failure","queue","rejected"]
4 releases = ["cauldron"]
5 repositories = ["core","nonfree","tainted"]
6 medias = ['release','updates_testing','backports_testing','backports','updates']
7
8 file @name, :ensure => 'directory', :owner => @owner
9
10 for st in states do
11 file [@name, st].join('/'), :ensure => 'directory', :owner => @owner
12
13 for rel in releases do
14 file [@name, st, rel].join('/'), :ensure => 'directory', :owner => @owner
15
16 for rep in repositories do
17 file [@name, st, rel, rep].join('/'), :ensure => 'directory', :owner => @owner
18
19 for med in medias do
20 file [@name, st, rel, rep, med].join('/'), :ensure => 'directory', :owner => @owner
21 end
22 end
23 end
24 end
25 end

  ViewVC Help
Powered by ViewVC 1.1.28