Skip to content

Instantly share code, notes, and snippets.

@spiegela
Created October 23, 2015 03:39
Show Gist options
  • Save spiegela/321550c9431d07e9b824 to your computer and use it in GitHub Desktop.
Save spiegela/321550c9431d07e9b824 to your computer and use it in GitHub Desktop.
# razor create-policy --name memtest86 \
> --repo memtest86 --task memtest \
> --broker noop --enabled \
> --hostname 'host-${id}.lan' \
> --root-password secret --max-count 3 \
> --before 'centos-for-3' --tag dell-r710 \
> --node-metadata last-memory-check=2015-10-22
From https://localhost:8151/api/collections/policies/memtest86:
name: memtest86
repo: memtest86
task: memtest
broker: noop
enabled: true
max_count: 3
tags: dell-r710
nodes: 0
command: https://localhost:8151/api/collections/commands/81
# razor reinstall-node --name node8
From https://localhost:8151/api/commands/reinstall-node:
result: node unbound from centos-for-3
command: https://localhost:8151/api/collections/commands/83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment