50
var defaultVersionIDs = map[string]string{
54
50
// seriesVersions provides a mapping between series names and versions.
55
51
// The values here are current as of the time of writing. On Ubuntu systems, we update
56
52
// these values from /usr/share/distro-info/ubuntu.csv to ensure we have the latest values.
57
53
// On non-Ubuntu systems, these values provide a nice fallback option.
58
54
// Exported so tests can change the values to ensure the distro-info lookup works.
59
55
var seriesVersions = map[string]string{
69
"win2008r2": "win2008r2",
70
"win2012hvr2": "win2012hvr2",
71
"win2012hv": "win2012hv",
72
"win2012r2": "win2012r2",
75
"win2016nano": "win2016nano",
65
"win2008r2": "win2008r2",
66
"win2012hvr2": "win2012hvr2",
67
"win2012hv": "win2012hv",
68
"win2012r2": "win2012r2",
71
"win2016nano": "win2016nano",
77
genericLinuxSeries: genericLinuxVersion,
84
80
// versionSeries provides a mapping between versions and series names.
189
181
if _, ok := centosSeries[series]; ok {
190
182
return os.CentOS, nil
192
if _, ok := archSeries[series]; ok {
184
if series == genericLinuxSeries {
185
return os.GenericLinux, nil
195
187
for _, val := range windowsVersions {
196
188
if val == series {