cloud-config.yml 980 B

1234567891011121314151617181920212223242526272829303132
  1. #cloud-config
  2. write_files:
  3. - path: /usr/bin/test
  4. permissions: "0755"
  5. owner: root
  6. content: |
  7. #!/bin/bash
  8. touch /home/rancher/test1
  9. - path: /opt/rancher/bin/start.sh
  10. permissions: "0755"
  11. owner: root
  12. content: |
  13. touch /home/rancher/test3
  14. - path: /etc/rc.local
  15. permissions: "0755"
  16. owner: root
  17. content: |
  18. wait-for-docker
  19. docker run -d nginx
  20. - path: /var/lib/rancher/conf/cloud-config-script
  21. permissions: "0755"
  22. owner: root
  23. content: |
  24. #!/bin/bash
  25. touch /home/rancher/test4
  26. runcmd:
  27. - []
  28. - [ test ]
  29. - [ touch, /home/rancher/test2 ]
  30. ssh_authorized_keys:
  31. - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC85w9stZyiLQp/DkVO6fqwiShYcj1ClKdtCqgHtf+PLpJkFReSFu8y21y+ev09gsSMRRrjF7yt0pUHV6zncQhVeqsZtgc5WbELY2DOYUGmRn/CCvPbXovoBrQjSorqlBmpuPwsStYLr92Xn+VVsMNSUIegHY22DphGbDKG85vrKB8HxUxGIDxFBds/uE8FhSy+xsoyT/jUZDK6pgq2HnGl6D81ViIlKecpOpWlW3B+fea99ADNyZNVvDzbHE5pcI3VRw8u59WmpWOUgT6qacNVACl8GqpBvQk8sw7O/X9DSZHCKafeD9G5k+GYbAUz92fKWrx/lOXfUXPS3+c8dRIF