summaryrefslogtreecommitdiff
path: root/etc/mirror/deploy.conf
blob: 6dba18d5239718c6cfc713ab2961ebe4e80639fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File: /usr/share/mirror/inc/deploy.conf
# Author: bgstack15
# Startdate: 2016-07-14
# Title: Config file for deploy.sh
# Purpose: 
# Package: mirror
# History:
#    2017-05-20 updated for storage1
# Usage:
# Reference: deploy.sh
# Improve:
#    planned CLI arguments possible:
#    bgscripts
#    bgscripts-1.1
#    bgscripts-1.1-9
#    bgscripts 1.1
#    bgscripts 1.1-9
#    implemented CLI args possible:
#    bgscripts 1.1-9

[input]
type=input
location=/mnt/public/packages
packagedir=${location}/${packagename}

[smith122rpm]
# type may either be input or destination. Input is used only in the [input] zone. Everything else is a destination.
type=destination

# flavor is what type of package to send. Options include:
# * rpm centos redhat fedora korora
# * deb ubuntu debian devuan
# * tar tarball
# * freebsd bsd
# default: flavor=tarball
flavor=rpm

# base location. Required to function.
location=/mnt/public/www/smith122/repo/rpm

# packagedir is the first place the script checks before placing a destination file. $location is a backup spot if packagedir is undefined. The script will evaluate packagedir, so you can use variables here.
# default packagedir=<undefined>
packagedir=${location}/${packagename}

# If updatescript is executable, if the zone is updated this command will be called
# default updatescript=<undefined>
updatescript=/mnt/public/www/smith122/repo/rpm/update-smith122rpm.sh

[smith122deb]
type=destination
flavor=debian
location=/mnt/public/www/smith122/repo/deb
updatescript=/mnt/public/www/smith122/repo/deb/update-smith122deb.sh
packagedir=${location}/${packagename}

[smith122tar]
type=destination
flavor=tarball
location=/mnt/public/www/smith122/repo/tar
updatescript=/mnt/public/www/smith122/repo/tar/update-smith122tar.sh
packagedir=${location}/${packagename}

[smith122freebsd]
type=destination
flavor=freebsd
location=/mnt/public/www/smith122/repo/freebsd
updatescript=/mnt/public/www/smith122/repo/freebsd/update-smith122freebsd.sh
packagedir=${location}/${packagename}
bgstack15