Advertisement
Guest User

userdata

a guest
Sep 17th, 2015
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. #cloud-config
  2. repo_update: true
  3. repo_upgrade: all
  4.  
  5. packages:
  6. - httpd
  7. - crypto-utils
  8. - mod_perl
  9. - mod_ssl
  10. - mod_wsgi
  11. - mysql-server
  12. - php
  13. - php-gd
  14. - php-pdo
  15. - php-pear
  16. - php-xml
  17. - php-mysql
  18. - git
  19.  
  20. ssh_authorized_keys:
  21. - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+a7nTOBzHq/dcK3j8q6HCcyJDO7g7lv4QSdPGrtIH/M+u3fEqbo4f5JCIouP2yxeCCJolvEXOo0iMvKcfv0z2yiF5c1Xe8ilDwRbbIDAVEcQ1hlIm+LC3ScFTzd0EG/150FCIHAHna5UZfi36ZDm2ofdz1RcL9yMOu+ciQfXqtOw1ASwTCqVx1nU8Ki5FEL8UW8b9p/rKmT1+UOs/zz8l+SZ/3Y/CiUlqGU9Tc+i5iirFZvK8DIb8yCCP6rcD/XZszPdXS9WWIFFMRic9P0xmyhSJMgmqC6xt4JwrI3NmVMBBUakdXhzErAlEqUvuO18XEbiSKXvxSwrrpHQcYhU5
  22. runcmd:
  23. - service httpd start
  24. - chkconfig httpd on
  25. - groupadd www
  26. - [ sh, -c, "sudo sermod -a -G www bootcamp" ]
  27. - [ sh, -c, "sudo chown -R root:www /var/www" ]
  28. - chmod 2775 /var/www
  29. - [ find, /var/www, -type, d, -exec, chmod, 2775, {}, + ]
  30. - [ find, /var/www, -type, f, -exec, chmod, 0664, {}, + ]
  31. - [ sh, -c, 'echo "<?php phpinfo(); ?>" > /var/www/html/phpinfo.php' ]
  32. - service iptables stop
  33. - [ sh, -c, "git clone https://github.com/ekelleyv/Flocking /var/www/html/flocking" ]
  34. - [ sh, -c, "git clone https://github.com/gabrielecirulli/2048.git /var/www/html/game2048" ]
  35. - [ sh, -c, "git clone https://github.com/Hextris/hextris.git /var/www/html/hextris" ]
  36. write_files:
  37. - content: |
  38. <!DOCTYPE html>
  39. <html>
  40. <body style=background-color:lightgreen;>
  41. <h2>CloudInit in Acropolis</h2>
  42. <h3>Welcome to our Bootcamp Project!</h3>
  43. <<ul>
  44. <li><a href="/flocking">flocking</a></li>
  45. <li><a href="/game2048">game2048</a></li>
  46. <li><a href="/hextris">hextris</a></li>
  47. </ul>>
  48. </body>
  49. </html>
  50. path: /var/www/html/bootcamp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement