Skip to content

A simple, yet ready to use Opennebula ansible playbook(DEPRECATED! MOVED TO GITLAB)

License

Notifications You must be signed in to change notification settings

megastallman/opennebula

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#A simple, yet ready to use Opennebula ansible playbook.

Be aware that these playbooks use submodules. Issue

$ git submodule update --recursive

when needed

  • Requirements: A Centos-7 machine with a passwordless sudo user "centos", authenticating with keys.

  • Edit "inventory" file to point your TargetHost's ip-address

Now we have a "centos" login with a predefined password and your key

  • Edit "vars" sections in opennebula.yml. Ensure the "masquerade_ext_if" is your physical interface, connected to the internet.
  • $ ansible-playbook -i inventory opennebula.yml
  • Grab your openvpn certificates at /etc/openvpn, connect to openvpn
  • su oneadmin

  • $ cd
  • $ cat ~/.one/one_auth
  • $ EDITOR=vim oneuser update oneadmin Add a new line like the following to the template: SSH_PUBLIC_KEY="ssh-rsa AAAAB3NzaC1kc3MAAACBANBWTQmm4Gt..." Multiple public ssh keys can be bundled into a single string
  • Proceed to Sunstone dashboard http://TargetHost:9869/
  • Virtual Resource -> Virtual Machines -> "+". Wait for VMs creation.
  • Login to your Centos7 VM as root: $ ssh [email protected]

About

A simple, yet ready to use Opennebula ansible playbook(DEPRECATED! MOVED TO GITLAB)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published