annotate demopublishpackages.cfg @ 258:bb98e728f25b

Allow default values for individual options to be passed to read_config_section. The default value can now be passed as a third item in a tuple used in the section description passed to read_config_section. The predefined option descriptions have been updated to use this new mechanism and the global defaults variable is not needed anymore. Also, indivdual PackageTrack classes can now use this mechanism to specify defaults for their additional configuration options.
author Bernhard Herzog <bh@intevation.de>
date Fri, 17 Apr 2009 18:48:58 +0000
parents 8052aabada8b
children 0542181b8452
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
256
8052aabada8b Make publishpackages.py work for automated regular publishing of the
Bernhard Herzog <bh@intevation.de>
parents: 255
diff changeset
12 # Number of newest successfully builts revisions to publish for each
8052aabada8b Make publishpackages.py work for automated regular publishing of the
Bernhard Herzog <bh@intevation.de>
parents: 255
diff changeset
13 # track. Ignored when publishpackages is called with an explicit
8052aabada8b Make publishpackages.py work for automated regular publishing of the
Bernhard Herzog <bh@intevation.de>
parents: 255
diff changeset
14 # revision.
8052aabada8b Make publishpackages.py work for automated regular publishing of the
Bernhard Herzog <bh@intevation.de>
parents: 255
diff changeset
15 num_newest: 3
8052aabada8b Make publishpackages.py work for automated regular publishing of the
Bernhard Herzog <bh@intevation.de>
parents: 255
diff changeset
16
89
3caf4a5ecbf0 Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
17 # 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
18 # 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
19 # 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
20 # ssh-agent.
3caf4a5ecbf0 Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
21 build_user: builder
3caf4a5ecbf0 Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
22 build_host: localhost
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 # 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
25 # 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
26 # configuration for that program works.
212
4d6c3431face Fix filename in demopublishpackages.cfg
Bernhard Herzog <bh@intevation.de>
parents: 89
diff changeset
27 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
28
3caf4a5ecbf0 Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
29 # 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
30 # publishpackages.py uses ssh to execute commands on the publish_host to
256
8052aabada8b Make publishpackages.py work for automated regular publishing of the
Bernhard Herzog <bh@intevation.de>
parents: 255
diff changeset
31 # create directories and rsync to copy the files from the local cache to
8052aabada8b Make publishpackages.py work for automated regular publishing of the
Bernhard Herzog <bh@intevation.de>
parents: 255
diff changeset
32 # the publish_host. If publish_host is empty, the publishpackages.py
8052aabada8b Make publishpackages.py work for automated regular publishing of the
Bernhard Herzog <bh@intevation.de>
parents: 255
diff changeset
33 # assumes that no ssh or other remote login is needed to access the
8052aabada8b Make publishpackages.py work for automated regular publishing of the
Bernhard Herzog <bh@intevation.de>
parents: 255
diff changeset
34 # publish host with the right permissions.
89
3caf4a5ecbf0 Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
35 publish_user: builder
3caf4a5ecbf0 Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
36 publish_host: localhost
3caf4a5ecbf0 Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
37
3caf4a5ecbf0 Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
38 # 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
39 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
40
256
8052aabada8b Make publishpackages.py work for automated regular publishing of the
Bernhard Herzog <bh@intevation.de>
parents: 255
diff changeset
41 # If true publishpackages.py will remove the packages in publish_dir
8052aabada8b Make publishpackages.py work for automated regular publishing of the
Bernhard Herzog <bh@intevation.de>
parents: 255
diff changeset
42 # that were not put there by the current run. Setting it to True is
8052aabada8b Make publishpackages.py work for automated regular publishing of the
Bernhard Herzog <bh@intevation.de>
parents: 255
diff changeset
43 # probably only useful when using publishpackages.py to automatically
8052aabada8b Make publishpackages.py work for automated regular publishing of the
Bernhard Herzog <bh@intevation.de>
parents: 255
diff changeset
44 # publish the newest built packages using a cron-job, for instance.
8052aabada8b Make publishpackages.py work for automated regular publishing of the
Bernhard Herzog <bh@intevation.de>
parents: 255
diff changeset
45 publish_remove_old_packages: False
8052aabada8b Make publishpackages.py work for automated regular publishing of the
Bernhard Herzog <bh@intevation.de>
parents: 255
diff changeset
46
8052aabada8b Make publishpackages.py work for automated regular publishing of the
Bernhard Herzog <bh@intevation.de>
parents: 255
diff changeset
47 # Command to run after the packages have been copied to the publish
8052aabada8b Make publishpackages.py work for automated regular publishing of the
Bernhard Herzog <bh@intevation.de>
parents: 255
diff changeset
48 # host. This command is run on the host running publishpackages.py.
8052aabada8b Make publishpackages.py work for automated regular publishing of the
Bernhard Herzog <bh@intevation.de>
parents: 255
diff changeset
49 after_upload_hook: ssh %(publish_user)s@%(publish_host)s /home/ftp/apt/update
89
3caf4a5ecbf0 Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
50
3caf4a5ecbf0 Add scripts that help publish the packages produced by the tree packager
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
51 # 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
52 # 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
53 # 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
54 # 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
55 # removing the files of another.
70735b398bb0 Improve default value and explanation for the cachedir setting
Bernhard Herzog <bh@intevation.de>
parents: 249
diff changeset
56 #
70735b398bb0 Improve default value and explanation for the cachedir setting
Bernhard Herzog <bh@intevation.de>
parents: 249
diff changeset
57 # 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
58 # 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
59 # ~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
60 # 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
61 cachedir: /tmp/${LOGNAME}/treepkg-package-cache/%(build_host)s
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)