-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsteps118.go
51 lines (48 loc) · 1.46 KB
/
steps118.go
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
// Copyright 2014 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package upgrades
// stateStepsFor118 returns upgrade steps form Juju 1.18 that manipulate state directly.
func stateStepsFor118() []Step {
return []Step{
&upgradeStep{
description: "update rsyslog port",
targets: []Target{StateServer},
run: updateRsyslogPort,
},
&upgradeStep{
description: "remove deprecated environment config settings",
targets: []Target{StateServer},
run: processDeprecatedEnvSettings,
},
&upgradeStep{
description: "migrate local provider agent config",
targets: []Target{StateServer},
run: migrateLocalProviderAgentConfig,
},
}
}
// stepsFor118 returns upgrade steps for Juju 1.18 that operate via the API.
func stepsFor118() []Step {
return []Step{
&upgradeStep{
description: "make $DATADIR/locks owned by ubuntu:ubuntu",
targets: []Target{AllMachines},
run: ensureLockDirExistsAndUbuntuWritable,
},
&upgradeStep{
description: "generate system ssh key",
targets: []Target{StateServer},
run: ensureSystemSSHKey,
},
&upgradeStep{
description: "install rsyslog-gnutls",
targets: []Target{AllMachines},
run: installRsyslogGnutls,
},
&upgradeStep{
description: "make /home/ubuntu/.profile source .juju-proxy file",
targets: []Target{AllMachines},
run: ensureUbuntuDotProfileSourcesProxyFile,
},
}
}