@@ -33,12 +33,20 @@ var (
3333)
3434
3535type Update struct {
36- Group UpdateGroup `yaml:"group"`
37- Server UpdateServer `yaml:"server"`
36+ Group UpdateGroup `yaml:"group"`
37+ Server UpdateServer `yaml:"server"`
38+ PCRPolicyServer UpdatePCRPolicyServer `yaml:"pcr_policy_server"`
39+ DownloadUser UpdateDownloadUser `yaml:"download_user"`
40+ DownloadPassword UpdateDownloadPassword `yaml:"download_password"`
41+ MachineAlias UpdateMachineAlias `yaml:"machine_alias"`
3842}
3943
4044type UpdateGroup string
4145type UpdateServer string
46+ type UpdatePCRPolicyServer string
47+ type UpdateDownloadUser string
48+ type UpdateDownloadPassword string
49+ type UpdateMachineAlias string
4250
4351func (u Update ) Validate () report.Report {
4452 switch strings .ToLower (string (u .Group )) {
@@ -70,6 +78,18 @@ func init() {
7078 if in .Update .Server != "" {
7179 contents += fmt .Sprintf ("\n SERVER=%s" , in .Update .Server )
7280 }
81+ if in .Update .PCRPolicyServer != "" {
82+ contents += fmt .Sprintf ("\n PCR_POLICY_SERVER=%s" , in .Update .PCRPolicyServer )
83+ }
84+ if in .Update .DownloadUser != "" {
85+ contents += fmt .Sprintf ("\n DOWNLOAD_USER=%s" , in .Update .DownloadUser )
86+ }
87+ if in .Update .DownloadPassword != "" {
88+ contents += fmt .Sprintf ("\n DOWNLOAD_PASSWORD=%s" , in .Update .DownloadPassword )
89+ }
90+ if in .Update .MachineAlias != "" {
91+ contents += fmt .Sprintf ("\n MACHINE_ALIAS=%s" , in .Update .MachineAlias )
92+ }
7393 }
7494 if in .Locksmith != nil {
7595 lines := in .Locksmith .configLines ()
0 commit comments