Adding RAPI users to Ganeti

To add a user to the RAPI in Ganeti you need to do the following:

  1. Pick a username and a good password ( usually ganeti-webmgr and $ pwgen -s -n 20 -1)
  2. Create a hash using the example below
  3. Add to /var/lib/ganeti/rapi_users
  4. Restart Ganeti

Creating a hash

On any machine that has the openssl libraries, do the following:

# username: john
# password: p4ssw0rd
echo -n 'john:Ganeti Remote API:p4ssw0rd' | openssl md5

# copy the hash into /var/lib/ganeti/rapi/users like the following:
john {HA1}2f3ef95b86ddfd74c65c695f0efb7077 write

# for read-only access:
john {HA1}2f3ef95b86ddfd74c65c695f0efb7077
The location of the file used to be /var/lib/ganeti/rapi_users prior to Ganeti 2.4

References

 
public/ganeti/adding_rapi_users.txt · Last modified: 2013/04/02 23:18 by pono
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki