Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuring of annotations during bootstrap #465

Open
scottford-io opened this issue Aug 5, 2024 · 1 comment
Open

Allow configuring of annotations during bootstrap #465

scottford-io opened this issue Aug 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@scottford-io
Copy link
Contributor

Is your feature request related to a problem? Please describe.
The installer should support configuring of annotations during bootstrap so users can properly annotate their assets

Describe the solution you'd like

Add a new option -a to set key/val pairs separated by commas to add annotations to the mondoo.yml

while getopts 'i:s:u:vt:vr:y:' flag; do
  case "${flag}" in
    a) MONDOO_ANNOTATION="${OPTARG}" ;;
    i) MONDOO_INSTALLER="${OPTARG}" ;;
    s) MONDOO_SERVICE="${OPTARG}" ;;
    t) MONDOO_REGISTRATION_TOKEN="${OPTARG}" ;;
    u) MONDOO_AUTOUPDATER="${OPTARG}" ;;
    r) TIMER="${OPTARG}" ;;
    y) SPLAY="${OPTARG}" ;;
    *) print_usage
       exit 1 ;;
  esac
done
curl -sSL https://install.mondoo.com/sh | bash -s -- -u enable -s enable -t ${var.mondoo_registration_token} -a "<key>=<val>,<key>=<val>,<key>=<val>"

Describe alternatives you've considered

  • Adding a provisioning step to inject the annotations into the config.
  • config mgmt

Additional context
Add any other context or screenshots about the feature request here.

@scottford-io scottford-io added the enhancement New feature or request label Aug 5, 2024
@benr
Copy link
Member

benr commented Oct 13, 2024

This hasn't come up in a while reducing the priority but its still something that needs addressing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants