Change Orbit osquery to Fleet osquery in generated packages (#3034)
Use "Fleet osquery" rather than "Orbit osquery" in packages generated by `fleetctl package`.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
* Use "Fleet osquery" rather than "Orbit osquery" in packages generated by `fleetctl package`
|
||||
@@ -23,22 +23,21 @@ func TestPackage(t *testing.T) {
|
||||
runAppCheckErr(t, []string{"package", "--type=deb", "--insecure", "--fleet-certificate=test123"}, "--insecure and --fleet-certificate may not be provided together")
|
||||
|
||||
// run package tests, each should output their respective package type
|
||||
// orbit-osquery_0.0.3_amd64.deb
|
||||
// fleet-osquery_0.0.3_amd64.deb
|
||||
runAppForTest(t, []string{"package", "--type=deb", "--insecure"})
|
||||
info, err := os.Stat("orbit-osquery_0.0.3_amd64.deb")
|
||||
info, err := os.Stat("fleet-osquery_0.0.3_amd64.deb")
|
||||
require.NoError(t, err)
|
||||
require.Greater(t, info.Size(), int64(0)) // TODO verify contents
|
||||
// orbit-osquery-0.0.3.x86_64.rpm
|
||||
// fleet-osquery-0.0.3.x86_64.rpm
|
||||
runAppForTest(t, []string{"package", "--type=rpm", "--insecure"})
|
||||
info, err = os.Stat("orbit-osquery-0.0.3.x86_64.rpm")
|
||||
info, err = os.Stat("fleet-osquery-0.0.3.x86_64.rpm")
|
||||
require.NoError(t, err)
|
||||
require.Greater(t, info.Size(), int64(0)) // TODO verify contents
|
||||
// orbit-osquery_0.0.3.msi
|
||||
//runAppForTest(t, []string{"package", "--type=msi", "--insecure"}) TODO: this is currently failing on Github runners due to permission issues
|
||||
//info, err = os.Stat("orbit-osquery_0.0.3.msi")
|
||||
//require.NoError(t, err)
|
||||
//require.Greater(t, info.Size(), int64(0))
|
||||
|
||||
//runAppForTest(t, []string{"package", "--type=pkg", "--insecure"}) TODO: had a hard time getting xar installed on Ubuntu
|
||||
// fleet-osquery.msi
|
||||
// runAppForTest(t, []string{"package", "--type=msi", "--insecure"}) TODO: this is currently failing on Github runners due to permission issues
|
||||
// info, err = os.Stat("orbit-osquery_0.0.3.msi")
|
||||
// require.NoError(t, err)
|
||||
// require.Greater(t, info.Size(), int64(0))
|
||||
|
||||
// runAppForTest(t, []string{"package", "--type=pkg", "--insecure"}) TODO: had a hard time getting xar installed on Ubuntu
|
||||
}
|
||||
|
||||
@@ -115,12 +115,12 @@ func buildNFPM(opt Options, pkger nfpm.Packager) (string, error) {
|
||||
// Build package
|
||||
|
||||
info := &nfpm.Info{
|
||||
Name: "orbit-osquery",
|
||||
Name: "fleet-osquery",
|
||||
Version: opt.Version,
|
||||
Description: "Orbit osquery -- runtime and autoupdater by Fleet",
|
||||
Description: "Fleet osquery -- runtime and autoupdater",
|
||||
Arch: "amd64",
|
||||
Maintainer: "Fleet Engineers <engineering@fleetdm.com>",
|
||||
Homepage: "https://github.com/fleetdm/orbit",
|
||||
Homepage: "https://fleetdm.com",
|
||||
Overridables: nfpm.Overridables{
|
||||
Contents: contents,
|
||||
EmptyFolders: []string{
|
||||
|
||||
@@ -116,7 +116,7 @@ func BuildPkg(opt Options) (string, error) {
|
||||
}
|
||||
}
|
||||
|
||||
filename := fmt.Sprintf("orbit-osquery_%s_amd64.pkg", opt.Version)
|
||||
filename := "fleet-osquery.pkg"
|
||||
if err := file.Copy(generatedPath, filename, constant.DefaultFileMode); err != nil {
|
||||
return "", errors.Wrap(err, "rename pkg")
|
||||
}
|
||||
|
||||
@@ -19,11 +19,11 @@ var macosPackageInfoTemplate = template.Must(template.New("").Option("missingkey
|
||||
var macosDistributionTemplate = template.Must(template.New("").Option("missingkey=error").Parse(
|
||||
`<?xml version="1.0" encoding="utf-8"?>
|
||||
<installer-gui-script minSpecVersion="2">
|
||||
<title>Orbit</title>
|
||||
<title>Fleet osquery</title>
|
||||
<choices-outline>
|
||||
<line choice="choiceBase"/>
|
||||
</choices-outline>
|
||||
<choice id="choiceBase" title="Orbit osquery" enabled="false" selected="true" description="Standard installation for Orbit osquery.">
|
||||
<choice id="choiceBase" title="Fleet osquery" enabled="false" selected="true" description="Standard installation for Fleet osquery.">
|
||||
<pkg-ref id="{{.Identifier}}.base.pkg"/>
|
||||
</choice>
|
||||
<pkg-ref id="{{.Identifier}}.base.pkg" version="{{.Version}}" auth="root">#base.pkg</pkg-ref>
|
||||
|
||||
@@ -101,7 +101,7 @@ func BuildMSI(opt Options) (string, error) {
|
||||
return "", errors.Wrap(err, "build package")
|
||||
}
|
||||
|
||||
filename := fmt.Sprintf("orbit-osquery_%s.msi", opt.Version)
|
||||
filename := "fleet-osquery.msi"
|
||||
if err := file.Copy(filepath.Join(tmpDir, "orbit.msi"), filename, constant.DefaultFileMode); err != nil {
|
||||
return "", errors.Wrap(err, "rename msi")
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ var windowsWixTemplate = template.Must(template.New("").Option("missingkey=error
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
|
||||
<Product
|
||||
Id="C2C2437D-0562-465E-A0BB-2C4484025BD6"
|
||||
Name="Orbit osquery"
|
||||
Name="Fleet osquery"
|
||||
Language="1033"
|
||||
Version="{{.Version}}"
|
||||
Manufacturer="Fleet Device Management (fleetdm.com)"
|
||||
@@ -17,8 +17,8 @@ var windowsWixTemplate = template.Must(template.New("").Option("missingkey=error
|
||||
|
||||
<Package
|
||||
Id="*"
|
||||
Keywords='orbit osquery'
|
||||
Description="Orbit osquery"
|
||||
Keywords='Fleet osquery'
|
||||
Description="Fleet osquery"
|
||||
InstallerVersion="500"
|
||||
Compressed="yes"
|
||||
InstallScope="perMachine"
|
||||
@@ -47,7 +47,7 @@ var windowsWixTemplate = template.Must(template.New("").Option("missingkey=error
|
||||
<PermissionEx Sddl="O:SYG:SYD:P(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)(A;OICI;0x1200a9;;;BU)" />
|
||||
</File>
|
||||
<ServiceInstall
|
||||
Name="Orbit osquery"
|
||||
Name="Fleet osquery"
|
||||
Account="NT AUTHORITY\SYSTEM"
|
||||
ErrorControl="ignore"
|
||||
Start="auto"
|
||||
@@ -64,7 +64,7 @@ var windowsWixTemplate = template.Must(template.New("").Option("missingkey=error
|
||||
</ServiceInstall>
|
||||
<ServiceControl
|
||||
Id="StartOrbitService"
|
||||
Name="Orbit osquery"
|
||||
Name="Fleet osquery"
|
||||
Start="install"
|
||||
Stop="both"
|
||||
Remove="uninstall"
|
||||
@@ -76,7 +76,7 @@ var windowsWixTemplate = template.Must(template.New("").Option("missingkey=error
|
||||
</Directory>
|
||||
</Directory>
|
||||
|
||||
<Feature Id="Orbit" Title="Orbit osquery" Level="1" Display="hidden">
|
||||
<Feature Id="Orbit" Title="Fleet osquery" Level="1" Display="hidden">
|
||||
<ComponentGroupRef Id="OrbitFiles" />
|
||||
<ComponentRef Id="C_ORBITBIN" />
|
||||
<ComponentRef Id="C_ORBITROOT" />
|
||||
|
||||
Reference in New Issue
Block a user