Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@sovereign:/tmp# vi lxd-profile-cloudctl.yaml
- - python-novaclient
- - python-nova-adminclient
- - python-neutronclient
- users:
- - name: ubuntu
- shell: /bin/bash
- sudo: ['ALL=(ALL) NOPASSWD:ALL']
- ssh_import_id: gh:nholloway2007
- - name: nickolas
- shell: /bin/bash
- sudo: ['ALL=(ALL) NOPASSWD:ALL']
- ssh_import_id: gh:nholloway2007
- runcmd:
- - [echo, "'CLOUDCTL-DBG: Start RUNCMD'"]
- - [echo, "CLOUDINIT-DBG: runcmd 0.0 - base prep"]
- - [snap, install, juju, "--classic"]
- - [virsh, net-destroy, default]
- - [virsh, net-undefine, default]
- - [apt-get, autoremove, "-y"]
- - ["ssh-import-id", "gh:nholloway2007"]
- - [update-alternatives, "--set", "editor", "/usr/bin/vim.basic"]
- - [echo, "source /etc/ccio/mini-stack/profile", ">>", "/etc/skel/.bashrc"]
- - [echo, "CLOUDINIT-DBG: runcmd 1.0 - user prep: ubuntu"]
- - [su, "-l", "ubuntu", "/bin/bash", "-c", "ssh-keygen -f ~/.ssh/id_rsa -N ''"]
- - [su, "-l", "ubuntu", "/bin/bash", "-c", "'byobu-enable'"]
- - [cp, "-f", "/etc/skel/.bashrc", "/home/ubuntu/.bashrc"]
- - [echo, "CLOUDINIT-DBG: runcmd 2.0 - user prep nickolas"]
- - [su, "-l", "nickolas", "/bin/bash", "-c", "ssh-keygen -f ~/.ssh/id_rsa -N ''"]
- - [su, "-l", "nickolas", "-c", "/bin/bash -c 'byobu-enable'"]
- - [cp, "-f", "/etc/skel/.bashrc", "/home/nickolas/.bashrc"]
- - [echo, "CLOUDINIT-DBG: runcmd 3.0 - base final"]
- - [chown, "-R", "ubuntu:ubuntu", "/home/ubuntu"]
- - [chown, "-R", "nickolas:nickolas", "/home/nickolas"]
- - [rm, "/var/www/html/index.html"]
- - [mkdir, "-p", "/etc/ccio/mini-stack"]
- - [git, clone, "https://github.com/containercraft/mini-stack.git", "/var/www/html/mini-stack"]
- - [ln, "-s", "/var/www/html/mini-stack", "/home/nickolas/mini-stack"]
- - [ln, "-s", "/var/www/html/mini-stack", "/root/mini-stack"]
- - [cp, "-f", "/etc/skel/.bashrc", "/root/.bashrc"]
- - [echo, "CLOUDINIT-DBG: runcmd 0.0 - cloud-config runcmd complete ... rebooting"]
- - [reboot]
- description: ccio mini-stack cloudctl container profile
- devices:
- eth0:
- name: eth0
- nictype: macvlan
- parent: external
- type: nic
- eth1:
- name: eth1
- nictype: macvlan
- parent: internal
- type: nic
- root:
- path: /
- pool: default
- type: disk
- name: cloudctl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement