Skip to content

Automate adding servers to master server? #479

Answered by jhuckaby
grephappiness asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! I do apologize -- the API you want exists of course, but it's not documented, and it's an "admin-only" API. To make matters worse, due to reasons I can't remember now, Cronicle API Keys cannot have the "admin" privilege. I honestly don't remember why I put in this restriction -- possibly due to security reasons.

Anyway, you should be able to do it by following these steps. Warning: This is a bit of a hack.

First, create the API key you will be using to add servers in the UI. Second, shut down the Cronicle service on your master server:

/opt/cronicle/bin/control.sh stop

Then execute these commands as root:

cd /opt/cronicle
bin/storage-cli.js edit global/api_keys/0

This command sho…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@jhuckaby
Comment options

Answer selected by jhuckaby
Comment options

You must be logged in to vote
3 replies
@jhuckaby
Comment options

@danwillo
Comment options

@jhuckaby
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants