package
0.0.0-20240919184245-e247dee90d09
Repository: https://github.com/aws/ec2-macos-init.git
Documentation: pkg.go.dev

# Functions

NewLogger creates a new logger.

# Constants

ConfigurationManagementWarning is a header warning for sshd_config.
DefaultsCmd is the path to the script edit macOS defaults.
DefaultsRead is the command to read from a plist.
DefaultsReadType is the command to read the type of a parameter from a plist.
DefaultsWrite is the command to write a value of a parameter to a plist.
DsclPath is the default path for the dscl utility needed for the functions in this file.
InlineWarning is a warning line for each entry to help encourage users to avoid doing the risky configuration change.
PasswordLength is the default number of characters that the auto-generated password should be.
Number of runs resulting in fatal exits in a single boot before giving up.

# Structs

CommandModule contains contains all necessary configuration fields for running a Command module.
FatalCount contains a Count for tracking the number of Fatal exits for this boot.
History contains an instance ID, run time and a slice of individual module histories.
HistoryError wraps a normal error and gives the caller insight into the type of error.
IMDS config contains the current instance ID and a place for the IMDSv2 token to be stored.
InitConfig contains all fields expected from an init.toml file as well as things shared by all parts of the application.
Logger contains booleans for where to log, a tag used in syslog and the syslog Writer itself.
ModifyDefaults contains the necessary values to change a parameter in a given plist.
ModifySysctl contains sysctl values we want to modify.
Module contains a few fields common to all Module types and containers for the configuration of any potential module type.
ModuleContext contains fields that may need to be passed to the Do function for modules.
ModuleHistory contains a key of the configuration struct for future comparison and whether that run was successful.
MOTDModule contains all necessary configuration fields for running a MOTD module.
NetworkCheckModule contains contains all necessary configuration fields for running a NetworkCheck module.
SSHKeysModule contains all necessary configuration fields for running an SSH Keys module.
SystemConfigModule contains all necessary configuration fields for running a System Configuration module.
UserDataModule contains contains all necessary configuration fields for running a User Data module.
UserManagementModule contains the necessary values to run a User Management Module.