-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prepare for public release, add licence (#136)
- Loading branch information
Showing
42 changed files
with
1,848 additions
and
2,246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright 2024 Oxide Computer Company | ||
# | ||
|
||
set -o errexit | ||
set -o pipefail | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright 2024 Oxide Computer Company | ||
# | ||
|
||
set -o errexit | ||
set -o pipefail | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,52 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> | ||
<!-- | ||
Copyright 2024 Oxide Computer Company | ||
--> | ||
|
||
<service_bundle type='manifest' name='site-compliance-beacon'> | ||
|
||
<service name='site/compliance/beacon' type='service' version='1'> | ||
<create_default_instance enabled='true' /> | ||
|
||
<!-- Wait for multi-user... --> | ||
<dependency name='multi-user-server' grouping='require_all' restart_on='none' | ||
type='service'> | ||
<service_fmri value='svc:/milestone/multi-user-server' /> | ||
</dependency> | ||
|
||
<!-- ... and make sure we run after the T6 has been configured. --> | ||
<dependency name='t6init' grouping='require_all' restart_on='none' | ||
type='service'> | ||
<service_fmri value='svc:/system/t6init' /> | ||
</dependency> | ||
|
||
<!-- ... and after our postboot script. --> | ||
<dependency name='after-postboot' grouping='require_all' restart_on='none' | ||
type='service'> | ||
<service_fmri value='svc:/site/postboot' /> | ||
</dependency> | ||
|
||
<exec_method type='method' name='start' | ||
exec='/usr/lib/compliance-beacon' timeout_seconds='30' /> | ||
|
||
<exec_method type='method' name='stop' exec=':kill' timeout_seconds='30' /> | ||
|
||
<property_group name='startd' type='framework'> | ||
<propval name='duration' type='astring' value='child' /> | ||
</property_group> | ||
|
||
<stability value='Unstable' /> | ||
|
||
<template> | ||
<common_name> | ||
<loctext xml:lang='C'>compliance multicast beacon</loctext> | ||
</common_name> | ||
<description> | ||
<loctext xml:lang='C'>sends multicast discovery announcements</loctext> | ||
</description> | ||
</template> | ||
<create_default_instance enabled='true' /> | ||
|
||
<!-- Wait for multi-user... --> | ||
<dependency name='multi-user-server' grouping='require_all' | ||
restart_on='none' type='service'> | ||
<service_fmri value='svc:/milestone/multi-user-server' /> | ||
</dependency> | ||
|
||
<!-- ... and make sure we run after the T6 has been configured. --> | ||
<dependency name='t6init' grouping='require_all' restart_on='none' | ||
type='service'> | ||
<service_fmri value='svc:/system/t6init' /> | ||
</dependency> | ||
|
||
<!-- ... and after our postboot script. --> | ||
<dependency name='after-postboot' grouping='require_all' restart_on='none' | ||
type='service'> | ||
<service_fmri value='svc:/site/postboot' /> | ||
</dependency> | ||
|
||
<exec_method type='method' name='start' | ||
exec='/usr/lib/compliance-beacon' timeout_seconds='30' /> | ||
|
||
<exec_method type='method' name='stop' exec=':kill' timeout_seconds='30' /> | ||
|
||
<property_group name='startd' type='framework'> | ||
<propval name='duration' type='astring' value='child' /> | ||
</property_group> | ||
|
||
<stability value='Unstable' /> | ||
|
||
<template> | ||
<common_name> | ||
<loctext xml:lang='C'>compliance multicast beacon</loctext> | ||
</common_name> | ||
<description> | ||
<loctext xml:lang='C'>sends multicast discovery announcements | ||
</loctext> | ||
</description> | ||
</template> | ||
</service> | ||
|
||
</service_bundle> | ||
<!-- vim: set ts=2 sts=2 sw=2 et: --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,45 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> | ||
<!-- | ||
Copyright 2024 Oxide Computer Company | ||
--> | ||
|
||
<service_bundle type='manifest' name='site-compliance-dump'> | ||
|
||
<service name='site/compliance/dump' type='service' version='1'> | ||
<create_default_instance enabled='false' /> | ||
|
||
<!-- Wait for local file systems, like dumpadm does: --> | ||
<dependency name='local-filesystems' grouping='require_all' restart_on='none' | ||
type='service'> | ||
<service_fmri value='svc:/system/filesystem/local'/> | ||
</dependency> | ||
|
||
<!-- Hold dumpadm back until we've had a chance to look around: --> | ||
<dependent name='compliance-dump-dumpadm' restart_on='none' | ||
grouping='optional_all'> | ||
<service_fmri value='svc:/system/dumpadm'/> | ||
</dependent> | ||
|
||
<exec_method type='method' name='start' | ||
exec='/usr/bin/pilot gimlet dump setup' timeout_seconds='600' /> | ||
|
||
<exec_method type='method' name='stop' exec=':kill' timeout_seconds='30' /> | ||
|
||
<property_group name='startd' type='framework'> | ||
<propval name='duration' type='astring' value='transient' /> | ||
</property_group> | ||
|
||
<stability value='Unstable' /> | ||
|
||
<template> | ||
<common_name> | ||
<loctext xml:lang='C'>compliance ad hoc dump setup</loctext> | ||
</common_name> | ||
<description> | ||
<loctext xml:lang='C'>sets up a ZFS pool and dump device</loctext> | ||
</description> | ||
</template> | ||
<create_default_instance enabled='false' /> | ||
|
||
<!-- Wait for local file systems, like dumpadm does: --> | ||
<dependency name='local-filesystems' grouping='require_all' | ||
restart_on='none' type='service'> | ||
<service_fmri value='svc:/system/filesystem/local'/> | ||
</dependency> | ||
|
||
<!-- Hold dumpadm back until we've had a chance to look around: --> | ||
<dependent name='compliance-dump-dumpadm' restart_on='none' | ||
grouping='optional_all'> | ||
<service_fmri value='svc:/system/dumpadm'/> | ||
</dependent> | ||
|
||
<exec_method type='method' name='start' | ||
exec='/usr/bin/pilot gimlet dump setup' timeout_seconds='600' /> | ||
|
||
<exec_method type='method' name='stop' exec=':kill' timeout_seconds='30' /> | ||
|
||
<property_group name='startd' type='framework'> | ||
<propval name='duration' type='astring' value='transient' /> | ||
</property_group> | ||
|
||
<stability value='Unstable' /> | ||
|
||
<template> | ||
<common_name> | ||
<loctext xml:lang='C'>compliance ad hoc dump setup</loctext> | ||
</common_name> | ||
<description> | ||
<loctext xml:lang='C'>sets up a ZFS pool and dump device</loctext> | ||
</description> | ||
</template> | ||
</service> | ||
|
||
</service_bundle> | ||
<!-- vim: set ts=2 sts=2 sw=2 et: --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright 2024 Oxide Computer Company | ||
# | ||
|
||
set -o errexit | ||
set -o pipefail | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright 2024 Oxide Computer Company | ||
# | ||
|
||
set -o errexit | ||
set -o pipefail | ||
|
Oops, something went wrong.