Advertisement
nholloway2007

Untitled

Jan 14th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. root@sovereign:/tmp# vi lxd-profile-cloudctl.yaml
  2. - python-novaclient
  3. - python-nova-adminclient
  4. - python-neutronclient
  5. users:
  6. - name: ubuntu
  7. shell: /bin/bash
  8. sudo: ['ALL=(ALL) NOPASSWD:ALL']
  9. ssh_import_id: gh:nholloway2007
  10. - name: nickolas
  11. shell: /bin/bash
  12. sudo: ['ALL=(ALL) NOPASSWD:ALL']
  13. ssh_import_id: gh:nholloway2007
  14. runcmd:
  15. - [echo, "'CLOUDCTL-DBG: Start RUNCMD'"]
  16. - [echo, "CLOUDINIT-DBG: runcmd 0.0 - base prep"]
  17. - [snap, install, juju, "--classic"]
  18. - [virsh, net-destroy, default]
  19. - [virsh, net-undefine, default]
  20. - [apt-get, autoremove, "-y"]
  21. - ["ssh-import-id", "gh:nholloway2007"]
  22. - [update-alternatives, "--set", "editor", "/usr/bin/vim.basic"]
  23. - [echo, "source /etc/ccio/mini-stack/profile", ">>", "/etc/skel/.bashrc"]
  24. - [echo, "CLOUDINIT-DBG: runcmd 1.0 - user prep: ubuntu"]
  25. - [su, "-l", "ubuntu", "/bin/bash", "-c", "ssh-keygen -f ~/.ssh/id_rsa -N ''"]
  26. - [su, "-l", "ubuntu", "/bin/bash", "-c", "'byobu-enable'"]
  27. - [cp, "-f", "/etc/skel/.bashrc", "/home/ubuntu/.bashrc"]
  28. - [echo, "CLOUDINIT-DBG: runcmd 2.0 - user prep nickolas"]
  29. - [su, "-l", "nickolas", "/bin/bash", "-c", "ssh-keygen -f ~/.ssh/id_rsa -N ''"]
  30. - [su, "-l", "nickolas", "-c", "/bin/bash -c 'byobu-enable'"]
  31. - [cp, "-f", "/etc/skel/.bashrc", "/home/nickolas/.bashrc"]
  32. - [echo, "CLOUDINIT-DBG: runcmd 3.0 - base final"]
  33. - [chown, "-R", "ubuntu:ubuntu", "/home/ubuntu"]
  34. - [chown, "-R", "nickolas:nickolas", "/home/nickolas"]
  35. - [rm, "/var/www/html/index.html"]
  36. - [mkdir, "-p", "/etc/ccio/mini-stack"]
  37. - [git, clone, "https://github.com/containercraft/mini-stack.git", "/var/www/html/mini-stack"]
  38. - [ln, "-s", "/var/www/html/mini-stack", "/home/nickolas/mini-stack"]
  39. - [ln, "-s", "/var/www/html/mini-stack", "/root/mini-stack"]
  40. - [cp, "-f", "/etc/skel/.bashrc", "/root/.bashrc"]
  41. - [echo, "CLOUDINIT-DBG: runcmd 0.0 - cloud-config runcmd complete ... rebooting"]
  42. - [reboot]
  43. description: ccio mini-stack cloudctl container profile
  44. devices:
  45. eth0:
  46. name: eth0
  47. nictype: macvlan
  48. parent: external
  49. type: nic
  50. eth1:
  51. name: eth1
  52. nictype: macvlan
  53. parent: internal
  54. type: nic
  55. root:
  56. path: /
  57. pool: default
  58. type: disk
  59. name: cloudctl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement