annotate demopublishpackages.cfg @ 417:25ef11a79d7f treepkg-status

incremental copying only changed debian packages
author Bjoern Ricks <bricks@intevation.de>
date Mon, 26 Jul 2010 12:58:50 +0000
parents 0542181b8452
children
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
292
0542181b8452 fix typo
Bernhard Herzog <bh@intevation.de>
parents: 256
diff changeset
12 # Number of newest successfully built revisions to publish for each
256
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
417
25ef11a79d7f incremental copying only changed debian packages
Bjoern Ricks <bricks@intevation.de>
parents: 292
diff changeset
62 cachedb: /tmp/${LOGNAME}/treepkg-package-cache/%(build_host)s-cache.db
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)