Mercurial > treepkg
annotate demopublishpackages.cfg @ 255:70735b398bb0
Improve default value and explanation for the cachedir setting
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Wed, 15 Apr 2009 13:50:31 +0000 |
parents | a3f106580525 |
children | 8052aabada8b |
rev | line source |
---|---|
89
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
1 # Demo configuration file for publishpackages.py. The default config |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
2 # file used by publishpackages.py is publishpackages.cfg, so to use this |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
3 # file as the basis for your configuration, copy or rename this file and |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
4 # adapt it to your needs. |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
5 |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
6 [publishpackages] |
249
a3f106580525
Add config settings "distribution" and "section" so that they don't have
Bernhard Herzog <bh@intevation.de>
parents:
212
diff
changeset
|
7 # Distribution (e.g. etch, lenny, ...) and section (e.g. experimental, |
a3f106580525
Add config settings "distribution" and "section" so that they don't have
Bernhard Herzog <bh@intevation.de>
parents:
212
diff
changeset
|
8 # unstable, ...) for which to publish the packages |
a3f106580525
Add config settings "distribution" and "section" so that they don't have
Bernhard Herzog <bh@intevation.de>
parents:
212
diff
changeset
|
9 distribution: lenny |
a3f106580525
Add config settings "distribution" and "section" so that they don't have
Bernhard Herzog <bh@intevation.de>
parents:
212
diff
changeset
|
10 section: experimental |
a3f106580525
Add config settings "distribution" and "section" so that they don't have
Bernhard Herzog <bh@intevation.de>
parents:
212
diff
changeset
|
11 |
89
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
12 # Username and host on which the treepackager runs. publishpackages.py |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
13 # has to be able to connect to that host as the builduser via ssh |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
14 # without knowning the password. This is best achieved with the |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
15 # ssh-agent. |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
16 build_user: builder |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
17 build_host: localhost |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
18 |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
19 # the program to run on build_host to list the filenames of the packages |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
20 # in question. Currently publishpackages.py assumes that the default |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
21 # configuration for that program works. |
212
4d6c3431face
Fix filename in demopublishpackages.cfg
Bernhard Herzog <bh@intevation.de>
parents:
89
diff
changeset
|
22 build_listpackages: ~/treepkg/bin/listpackages.py |
89
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
23 |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
24 # Username and host on which to publish the packages. |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
25 # publishpackages.py uses ssh to execute commands on the publish_host to |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
26 # create directories and scp to copy the files from the local cache to |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
27 # the publish_host. |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
28 publish_user: builder |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
29 publish_host: localhost |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
30 |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
31 # the directory on the publish_host where the apt directories reside. |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
32 publish_dir: /home/ftp/apt/dists/ |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
33 |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
34 # Command to execute on the build host to update the apt archive |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
35 publish_apt_archive_update: /home/ftp/apt/update |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
36 |
3caf4a5ecbf0
Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff
changeset
|
37 # local cache directory. publishpackages.py may delete it and its |
255
70735b398bb0
Improve default value and explanation for the cachedir setting
Bernhard Herzog <bh@intevation.de>
parents:
249
diff
changeset
|
38 # contents, so if you intend to run publishpackages.py on the same |
70735b398bb0
Improve default value and explanation for the cachedir setting
Bernhard Herzog <bh@intevation.de>
parents:
249
diff
changeset
|
39 # system for several remote instances of treepkg, make sure the |
70735b398bb0
Improve default value and explanation for the cachedir setting
Bernhard Herzog <bh@intevation.de>
parents:
249
diff
changeset
|
40 # directory name is unique enough, to avoid one publishpackages instance |
70735b398bb0
Improve default value and explanation for the cachedir setting
Bernhard Herzog <bh@intevation.de>
parents:
249
diff
changeset
|
41 # removing the files of another. |
70735b398bb0
Improve default value and explanation for the cachedir setting
Bernhard Herzog <bh@intevation.de>
parents:
249
diff
changeset
|
42 # |
70735b398bb0
Improve default value and explanation for the cachedir setting
Bernhard Herzog <bh@intevation.de>
parents:
249
diff
changeset
|
43 # The value is passed through the python functions os.expanduser and |
70735b398bb0
Improve default value and explanation for the cachedir setting
Bernhard Herzog <bh@intevation.de>
parents:
249
diff
changeset
|
44 # os.expandvars, so references to home directories of the form ~ or |
70735b398bb0
Improve default value and explanation for the cachedir setting
Bernhard Herzog <bh@intevation.de>
parents:
249
diff
changeset
|
45 # ~user at the beginning of the value and environment variable |
70735b398bb0
Improve default value and explanation for the cachedir setting
Bernhard Herzog <bh@intevation.de>
parents:
249
diff
changeset
|
46 # references of the form $VAR or ${VAR} are expanded. |
70735b398bb0
Improve default value and explanation for the cachedir setting
Bernhard Herzog <bh@intevation.de>
parents:
249
diff
changeset
|
47 cachedir: /tmp/${LOGNAME}/treepkg-package-cache/%(build_host)s |