Merge lp:~jtv/maas/p-sru-pkg-bug-1089819 into lp:~maas-maintainers/maas/packaging.precise.sru

Proposed by Jeroen T. Vermeulen
Status: Merged
Merged at revision: 152
Proposed branch: lp:~jtv/maas/p-sru-pkg-bug-1089819
Merge into: lp:~maas-maintainers/maas/packaging.precise.sru
Diff against target: 29 lines (+8/-1)
2 files modified
debian/maas-cluster-controller.maas-cluster-celery.upstart (+5/-1)
debian/maas-cluster-controller.maas-pserv.upstart (+3/-0)
To merge this branch: bzr merge lp:~jtv/maas/p-sru-pkg-bug-1089819
Reviewer Review Type Date Requested Status
Jeroen T. Vermeulen (community) Approve
Review via email: mp+139659@code.launchpad.net

Commit message

Backport packaging r158: Export CLUSTER_UUID from the cluster controller's upstart jobs to their respective daemon child processes.

To post a comment you must log in.
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Straight backport. Self-approving.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/maas-cluster-controller.maas-cluster-celery.upstart'
2--- debian/maas-cluster-controller.maas-cluster-celery.upstart 2012-10-03 03:43:27 +0000
3+++ debian/maas-cluster-controller.maas-cluster-celery.upstart 2012-12-13 10:46:23 +0000
4@@ -21,6 +21,10 @@
5 end script
6
7 script
8- . $CONFIG_FILE # sets MAAS_URL
9+ # Prepare settings.
10+ . $CONFIG_FILE
11+ # Allow the cluster-controller process to read CLUSTER_UUID as set
12+ # in that config file.
13+ export CLUSTER_UUID
14 exec /usr/sbin/maas-provision start-cluster-controller $MAAS_URL -u maas -g maas
15 end script
16
17=== modified file 'debian/maas-cluster-controller.maas-pserv.upstart'
18--- debian/maas-cluster-controller.maas-pserv.upstart 2012-12-12 07:14:04 +0000
19+++ debian/maas-cluster-controller.maas-pserv.upstart 2012-12-13 10:46:23 +0000
20@@ -23,6 +23,9 @@
21 script
22 # Prepare settings.
23 . $CONFIG_FILE
24+ # Allow the tftpd process to read CLUSTER_UUID as set in that config
25+ # file.
26+ export CLUSTER_UUID
27 # To add options to your daemon, edit the line below:
28 exec /usr/bin/twistd -n --uid=maas --gid=maas --pidfile=/run/maas-pserv.pid --logfile=/dev/null maas-pserv --config-file=/etc/maas/pserv.yaml
29 end script

Subscribers

People subscribed via source and target branches