Revision b6772b46

/dev/null
1
doc/examples/bash_completion	ganeti
/dev/null
1
etc/ganeti
2
usr/lib/ganeti
3
usr/lib/ganeti/iallocators
4
usr/share/ganeti/extstorage
5
usr/share/lintian/overrides
6
var/lib/ganeti
7
var/log/ganeti
/dev/null
1
usr/share/man/man7/ganeti*
2
usr/share/man/man8/gnt-*
3
usr/share/man/man8/ganeti-*
4

  
5
usr/lib/ganeti/
6

  
7
usr/lib/python*/dist-packages/ganeti	/usr/share/ganeti
8
usr/sbin/gnt-*				/usr/share/ganeti
9
usr/sbin/ganeti-*			/usr/share/ganeti
10

  
11
usr/lib/ganeti/check-cert-expired	/usr/share/ganeti
12
usr/lib/ganeti/ensure-dirs		/usr/share/ganeti
13
usr/lib/ganeti/import-export		/usr/share/ganeti
14
usr/lib/ganeti/node-daemon-setup	/usr/share/ganeti
15
usr/lib/ganeti/prepare-node-join	/usr/share/ganeti
16

  
17
usr/lib/ganeti/tools/burnin		/usr/share/ganeti
18
usr/lib/ganeti/tools/cfgshell		/usr/share/ganeti
19
usr/lib/ganeti/tools/cfgupgrade		/usr/share/ganeti
20
usr/lib/ganeti/tools/cfgupgrade12	/usr/share/ganeti
21
usr/lib/ganeti/tools/cluster-merge	/usr/share/ganeti
22
usr/lib/ganeti/tools/confd-client	/usr/share/ganeti
23
usr/lib/ganeti/tools/lvmstrap		/usr/share/ganeti
24
usr/lib/ganeti/tools/move-instance	/usr/share/ganeti
25
usr/lib/ganeti/tools/node-cleanup	/usr/share/ganeti
26
usr/lib/ganeti/tools/ovfconverter	/usr/share/ganeti
27
usr/lib/ganeti/tools/sanitize-config	/usr/share/ganeti
/dev/null
1
usr/share/ganeti/gnt-debug usr/sbin/gnt-debug
2
usr/share/ganeti/gnt-job usr/sbin/gnt-job
3
usr/share/ganeti/gnt-os usr/sbin/gnt-os
4
usr/share/ganeti/ganeti-noded usr/sbin/ganeti-noded
5
usr/share/ganeti/gnt-instance usr/sbin/gnt-instance
6
usr/share/ganeti/ganeti-cleaner usr/sbin/ganeti-cleaner
7
usr/share/ganeti/gnt-cluster usr/sbin/gnt-cluster
8
usr/share/ganeti/gnt-node usr/sbin/gnt-node
9
usr/share/ganeti/ganeti-watcher usr/sbin/ganeti-watcher
10
usr/share/ganeti/ganeti-rapi usr/sbin/ganeti-rapi
11
usr/share/ganeti/ganeti-listrunner usr/sbin/ganeti-listrunner
12
usr/share/ganeti/ganeti-masterd usr/sbin/ganeti-masterd
13
usr/share/ganeti/gnt-network usr/sbin/gnt-network
14
usr/share/ganeti/gnt-backup usr/sbin/gnt-backup
15
usr/share/ganeti/gnt-group usr/sbin/gnt-group
16
usr/share/ganeti/gnt-storage usr/sbin/gnt-storage
17

  
18
usr/share/ganeti/check-cert-expired	/usr/lib/ganeti/check-cert-expired
19
usr/share/ganeti/ensure-dirs		/usr/lib/ganeti/ensure-dirs
20
usr/share/ganeti/import-export		/usr/lib/ganeti/import-export
21
usr/share/ganeti/node-daemon-setup	/usr/lib/ganeti/node-daemon-setup
22
usr/share/ganeti/prepare-node-join	/usr/lib/ganeti/prepare-node-join
23

  
24
usr/share/ganeti/burnin usr/lib/ganeti/tools/burnin
25
usr/share/ganeti/cfgshell usr/lib/ganeti/tools/cfgshell
26
usr/share/ganeti/cfgupgrade usr/lib/ganeti/tools/cfgupgrade
27
usr/share/ganeti/cfgupgrade12 usr/lib/ganeti/tools/cfgupgrade12
28
usr/share/ganeti/cluster-merge usr/lib/ganeti/tools/cluster-merge
29
usr/share/ganeti/confd-client usr/lib/ganeti/tools/confd-client
30
usr/share/ganeti/lvmstrap usr/lib/ganeti/tools/lvmstrap
31
usr/share/ganeti/move-instance usr/lib/ganeti/tools/move-instance
32
usr/share/ganeti/node-cleanup usr/lib/ganeti/tools/node-cleanup
33
usr/share/ganeti/ovfconverter usr/lib/ganeti/tools/ovfconverter
34
usr/share/ganeti/sanitize-config usr/lib/ganeti/tools/sanitize-config
/dev/null
1
ganeti binary: hyphen-used-as-minus-sign
2
ganeti binary: package-contains-empty-directory usr/lib/ganeti/iallocators/
/dev/null
1
/var/log/ganeti/*.log {
2
        weekly
3
        missingok
4
        rotate 52
5
        notifempty
6
        compress
7
        delaycompress
8
        create 640
9
        sharedscripts
10
        su root root
11
        postrotate
12
                /usr/lib/ganeti/daemon-util rotate-all-logs
13
        endscript
14
}
/dev/null
1
#!/bin/sh
2
# postinst script for ganeti
3

  
4
set -e
5

  
6
# summary of how this script can be called:
7
#        * <postinst> `configure' <most-recently-configured-version>
8
#        * <old-postinst> `abort-upgrade' <new version>
9
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
10
#          <new-version>
11
#        * <postinst> `abort-remove'
12
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
13
#          <failed-install-package> <version> `removing'
14
#          <conflicting-package> <version>
15
# for details, see http://www.debian.org/doc/debian-policy/ or
16
# the debian-policy package
17

  
18

  
19
case "$1" in
20
    configure)
21
#GANETI_USERS#
22

  
23
	# Remove stale PID files
24
	# Ganeti versions prior to 2.8.0~rc4 leave Haskell daemon pidfiles
25
	# behind. If these are root-owned, starting the daemons as unprivileged
26
	# users will fail.
27

  
28
	# All daemons have been stopped during prerm, so it's safe to remove
29
	# their PID files.
30
	for daemon in confd mond luxid; do
31
		rm -f /var/run/ganeti/ganeti-${daemon}.pid
32
	done
33

  
34
	# Also remove luxid's socket
35
	rm -f /var/run/ganeti/socket/ganeti-query
36

  
37
	# Since 2.9.0, mond runs as root, so remove the old gnt-mond user (that
38
	# was also created during 2.9.0~rcX.
39
	if [ -n "$2" ] && dpkg --compare-versions "$2" lt 2.9.0 && \
40
			getent passwd gnt-mond >/dev/null; then
41
		find /var/log/ganeti -user gnt-mond -exec chown root:root {} \;
42
		deluser --system gnt-mond || true
43
	fi
44
    ;;
45

  
46
    abort-upgrade|abort-remove|abort-deconfigure)
47
    ;;
48

  
49
    *)
50
        echo "postinst called with unknown argument \`$1'" >&2
51
        exit 1
52
    ;;
53
esac
54

  
55
# dh_installdeb will replace this with shell code automatically
56
# generated by other debhelper scripts.
57

  
58
#DEBHELPER#
59

  
60
# Fix jobqueue archive permissions
61
# This may take a while, so we only do this if necessary
62
find /var/lib/ganeti/queue/archive -mindepth 1 -maxdepth 1 \
63
		-type d -not -user "@GNTMASTERUSER@" 2>/dev/null | while read dirname; do
64
	/usr/lib/ganeti/ensure-dirs --full-run
65
	break
66
done
67

  
68
exit 0
/dev/null
1
#!/bin/sh
2
# postrm script for ganeti
3
#
4

  
5
set -e
6

  
7
# summary of how this script can be called:
8
#        * <postrm> `remove'
9
#        * <postrm> `purge'
10
#        * <old-postrm> `upgrade' <new-version>
11
#        * <new-postrm> `failed-upgrade' <old-version>
12
#        * <new-postrm> `abort-install'
13
#        * <new-postrm> `abort-install' <old-version>
14
#        * <new-postrm> `abort-upgrade' <old-version>
15
#        * <disappearer's-postrm> `disappear' <overwriter>
16
#          <overwriter-version>
17
# for details, see http://www.debian.org/doc/debian-policy/ or
18
# the debian-policy package
19

  
20

  
21
case "$1" in
22
    purge)
23
	#GANETI_USERS#
24
    ;;
25
    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
26
    ;;
27

  
28
    *)
29
        echo "postrm called with unknown argument \`$1'" >&2
30
        exit 1
31
    ;;
32
esac
33

  
34
# dh_installdeb will replace this with shell code automatically
35
# generated by other debhelper scripts.
36

  
37
#DEBHELPER#
38

  
39
exit 0
40
~                                              
b/debian/genscript.py
51 51
    out += "\n"
52 52

  
53 53

  
54
with open(os.path.join(debian_root, "ganeti.%s.in" % sys.argv[1])) as script:
54
with open(os.path.join(debian_root, "snf-ganeti.%s.in" % sys.argv[1])) as script:
55 55
    done = False
56 56
    for line in script:
57 57
        if line.strip() == "#GANETI_USERS#" and not done:
b/debian/snf-ganeti.bash-completion
1
doc/examples/bash_completion	ganeti
b/debian/snf-ganeti.dirs
1
etc/ganeti
2
usr/lib/ganeti
3
usr/lib/ganeti/iallocators
4
usr/share/ganeti/extstorage
5
usr/share/lintian/overrides
6
var/lib/ganeti
7
var/log/ganeti
b/debian/snf-ganeti.install
1
usr/share/man/man7/ganeti*
2
usr/share/man/man8/gnt-*
3
usr/share/man/man8/ganeti-*
4

  
5
usr/lib/ganeti/
6

  
7
usr/lib/python*/dist-packages/ganeti	/usr/share/ganeti
8
usr/sbin/gnt-*				/usr/share/ganeti
9
usr/sbin/ganeti-*			/usr/share/ganeti
10

  
11
usr/lib/ganeti/check-cert-expired	/usr/share/ganeti
12
usr/lib/ganeti/ensure-dirs		/usr/share/ganeti
13
usr/lib/ganeti/import-export		/usr/share/ganeti
14
usr/lib/ganeti/node-daemon-setup	/usr/share/ganeti
15
usr/lib/ganeti/prepare-node-join	/usr/share/ganeti
16

  
17
usr/lib/ganeti/tools/burnin		/usr/share/ganeti
18
usr/lib/ganeti/tools/cfgshell		/usr/share/ganeti
19
usr/lib/ganeti/tools/cfgupgrade		/usr/share/ganeti
20
usr/lib/ganeti/tools/cfgupgrade12	/usr/share/ganeti
21
usr/lib/ganeti/tools/cluster-merge	/usr/share/ganeti
22
usr/lib/ganeti/tools/confd-client	/usr/share/ganeti
23
usr/lib/ganeti/tools/lvmstrap		/usr/share/ganeti
24
usr/lib/ganeti/tools/move-instance	/usr/share/ganeti
25
usr/lib/ganeti/tools/node-cleanup	/usr/share/ganeti
26
usr/lib/ganeti/tools/ovfconverter	/usr/share/ganeti
27
usr/lib/ganeti/tools/sanitize-config	/usr/share/ganeti
b/debian/snf-ganeti.links
1
usr/share/ganeti/gnt-debug usr/sbin/gnt-debug
2
usr/share/ganeti/gnt-job usr/sbin/gnt-job
3
usr/share/ganeti/gnt-os usr/sbin/gnt-os
4
usr/share/ganeti/ganeti-noded usr/sbin/ganeti-noded
5
usr/share/ganeti/gnt-instance usr/sbin/gnt-instance
6
usr/share/ganeti/ganeti-cleaner usr/sbin/ganeti-cleaner
7
usr/share/ganeti/gnt-cluster usr/sbin/gnt-cluster
8
usr/share/ganeti/gnt-node usr/sbin/gnt-node
9
usr/share/ganeti/ganeti-watcher usr/sbin/ganeti-watcher
10
usr/share/ganeti/ganeti-rapi usr/sbin/ganeti-rapi
11
usr/share/ganeti/ganeti-listrunner usr/sbin/ganeti-listrunner
12
usr/share/ganeti/ganeti-masterd usr/sbin/ganeti-masterd
13
usr/share/ganeti/gnt-network usr/sbin/gnt-network
14
usr/share/ganeti/gnt-backup usr/sbin/gnt-backup
15
usr/share/ganeti/gnt-group usr/sbin/gnt-group
16
usr/share/ganeti/gnt-storage usr/sbin/gnt-storage
17

  
18
usr/share/ganeti/check-cert-expired	/usr/lib/ganeti/check-cert-expired
19
usr/share/ganeti/ensure-dirs		/usr/lib/ganeti/ensure-dirs
20
usr/share/ganeti/import-export		/usr/lib/ganeti/import-export
21
usr/share/ganeti/node-daemon-setup	/usr/lib/ganeti/node-daemon-setup
22
usr/share/ganeti/prepare-node-join	/usr/lib/ganeti/prepare-node-join
23

  
24
usr/share/ganeti/burnin usr/lib/ganeti/tools/burnin
25
usr/share/ganeti/cfgshell usr/lib/ganeti/tools/cfgshell
26
usr/share/ganeti/cfgupgrade usr/lib/ganeti/tools/cfgupgrade
27
usr/share/ganeti/cfgupgrade12 usr/lib/ganeti/tools/cfgupgrade12
28
usr/share/ganeti/cluster-merge usr/lib/ganeti/tools/cluster-merge
29
usr/share/ganeti/confd-client usr/lib/ganeti/tools/confd-client
30
usr/share/ganeti/lvmstrap usr/lib/ganeti/tools/lvmstrap
31
usr/share/ganeti/move-instance usr/lib/ganeti/tools/move-instance
32
usr/share/ganeti/node-cleanup usr/lib/ganeti/tools/node-cleanup
33
usr/share/ganeti/ovfconverter usr/lib/ganeti/tools/ovfconverter
34
usr/share/ganeti/sanitize-config usr/lib/ganeti/tools/sanitize-config
b/debian/snf-ganeti.lintian-overrides
1
ganeti binary: hyphen-used-as-minus-sign
2
ganeti binary: package-contains-empty-directory usr/lib/ganeti/iallocators/
b/debian/snf-ganeti.logrotate
1
/var/log/ganeti/*.log {
2
        weekly
3
        missingok
4
        rotate 52
5
        notifempty
6
        compress
7
        delaycompress
8
        create 640
9
        sharedscripts
10
        su root root
11
        postrotate
12
                /usr/lib/ganeti/daemon-util rotate-all-logs
13
        endscript
14
}
b/debian/snf-ganeti.postinst.in
1
#!/bin/sh
2
# postinst script for ganeti
3

  
4
set -e
5

  
6
# summary of how this script can be called:
7
#        * <postinst> `configure' <most-recently-configured-version>
8
#        * <old-postinst> `abort-upgrade' <new version>
9
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
10
#          <new-version>
11
#        * <postinst> `abort-remove'
12
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
13
#          <failed-install-package> <version> `removing'
14
#          <conflicting-package> <version>
15
# for details, see http://www.debian.org/doc/debian-policy/ or
16
# the debian-policy package
17

  
18

  
19
case "$1" in
20
    configure)
21
#GANETI_USERS#
22

  
23
	# Remove stale PID files
24
	# Ganeti versions prior to 2.8.0~rc4 leave Haskell daemon pidfiles
25
	# behind. If these are root-owned, starting the daemons as unprivileged
26
	# users will fail.
27

  
28
	# All daemons have been stopped during prerm, so it's safe to remove
29
	# their PID files.
30
	for daemon in confd mond luxid; do
31
		rm -f /var/run/ganeti/ganeti-${daemon}.pid
32
	done
33

  
34
	# Also remove luxid's socket
35
	rm -f /var/run/ganeti/socket/ganeti-query
36

  
37
	# Since 2.9.0, mond runs as root, so remove the old gnt-mond user (that
38
	# was also created during 2.9.0~rcX.
39
	if [ -n "$2" ] && dpkg --compare-versions "$2" lt 2.9.0 && \
40
			getent passwd gnt-mond >/dev/null; then
41
		find /var/log/ganeti -user gnt-mond -exec chown root:root {} \;
42
		deluser --system gnt-mond || true
43
	fi
44
    ;;
45

  
46
    abort-upgrade|abort-remove|abort-deconfigure)
47
    ;;
48

  
49
    *)
50
        echo "postinst called with unknown argument \`$1'" >&2
51
        exit 1
52
    ;;
53
esac
54

  
55
# dh_installdeb will replace this with shell code automatically
56
# generated by other debhelper scripts.
57

  
58
#DEBHELPER#
59

  
60
# Fix jobqueue archive permissions
61
# This may take a while, so we only do this if necessary
62
find /var/lib/ganeti/queue/archive -mindepth 1 -maxdepth 1 \
63
		-type d -not -user "@GNTMASTERUSER@" 2>/dev/null | while read dirname; do
64
	/usr/lib/ganeti/ensure-dirs --full-run
65
	break
66
done
67

  
68
exit 0
b/debian/snf-ganeti.postrm.in
1
#!/bin/sh
2
# postrm script for ganeti
3
#
4

  
5
set -e
6

  
7
# summary of how this script can be called:
8
#        * <postrm> `remove'
9
#        * <postrm> `purge'
10
#        * <old-postrm> `upgrade' <new-version>
11
#        * <new-postrm> `failed-upgrade' <old-version>
12
#        * <new-postrm> `abort-install'
13
#        * <new-postrm> `abort-install' <old-version>
14
#        * <new-postrm> `abort-upgrade' <old-version>
15
#        * <disappearer's-postrm> `disappear' <overwriter>
16
#          <overwriter-version>
17
# for details, see http://www.debian.org/doc/debian-policy/ or
18
# the debian-policy package
19

  
20

  
21
case "$1" in
22
    purge)
23
	#GANETI_USERS#
24
    ;;
25
    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
26
    ;;
27

  
28
    *)
29
        echo "postrm called with unknown argument \`$1'" >&2
30
        exit 1
31
    ;;
32
esac
33

  
34
# dh_installdeb will replace this with shell code automatically
35
# generated by other debhelper scripts.
36

  
37
#DEBHELPER#
38

  
39
exit 0
40
~                                              

Also available in: Unified diff