cloud-config.yml 1.1 KB

12345678910111213141516171819202122232425262728
  1. #cloud-config
  2. write_files:
  3. - path: /opt/install
  4. permissions: "0755"
  5. content: |
  6. #!/bin/sh
  7. set -ex
  8. echo "running" > /var/log/ros-install.log
  9. system-docker exec console ros install -i rancher/os:v1.0.1 -d /dev/vda --append "rancher.password=rancher" -f --no-reboot --debug >> /var/log/install.log 2>&1
  10. echo "done" > /var/log/ros-install.log
  11. ssh_authorized_keys:
  12. - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC85w9stZyiLQp/DkVO6fqwiShYcj1ClKdtCqgHtf+PLpJkFReSFu8y21y+ev09gsSMRRrjF7yt0pUHV6zncQhVeqsZtgc5WbELY2DOYUGmRn/CCvPbXovoBrQjSorqlBmpuPwsStYLr92Xn+VVsMNSUIegHY22DphGbDKG85vrKB8HxUxGIDxFBds/uE8FhSy+xsoyT/jUZDK6pgq2HnGl6D81ViIlKecpOpWlW3B+fea99ADNyZNVvDzbHE5pcI3VRw8u59WmpWOUgT6qacNVACl8GqpBvQk8sw7O/X9DSZHCKafeD9G5k+GYbAUz92fKWrx/lOXfUXPS3+c8dRIF
  13. rancher:
  14. services:
  15. ros-install:
  16. image: alpine
  17. entrypoint: /usr/bin/ros entrypoint
  18. command: /opt/install
  19. labels:
  20. io.rancher.os.scope: system
  21. io.rancher.os.after: console
  22. uts: host
  23. privileged: true
  24. volumes:
  25. - /var/log:/var/log
  26. volumes_from:
  27. - all-volumes