Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #cloud-config
- repo_update: true
- repo_upgrade: all
- packages:
- - httpd
- - crypto-utils
- - mod_perl
- - mod_ssl
- - mod_wsgi
- - mysql-server
- - php
- - php-gd
- - php-pdo
- - php-pear
- - php-xml
- - php-mysql
- - git
- ssh_authorized_keys:
- - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+a7nTOBzHq/dcK3j8q6HCcyJDO7g7lv4QSdPGrtIH/M+u3fEqbo4f5JCIouP2yxeCCJolvEXOo0iMvKcfv0z2yiF5c1Xe8ilDwRbbIDAVEcQ1hlIm+LC3ScFTzd0EG/150FCIHAHna5UZfi36ZDm2ofdz1RcL9yMOu+ciQfXqtOw1ASwTCqVx1nU8Ki5FEL8UW8b9p/rKmT1+UOs/zz8l+SZ/3Y/CiUlqGU9Tc+i5iirFZvK8DIb8yCCP6rcD/XZszPdXS9WWIFFMRic9P0xmyhSJMgmqC6xt4JwrI3NmVMBBUakdXhzErAlEqUvuO18XEbiSKXvxSwrrpHQcYhU5
- runcmd:
- - service httpd start
- - chkconfig httpd on
- - groupadd www
- - [ sh, -c, "sudo sermod -a -G www bootcamp" ]
- - [ sh, -c, "sudo chown -R root:www /var/www" ]
- - chmod 2775 /var/www
- - [ find, /var/www, -type, d, -exec, chmod, 2775, {}, + ]
- - [ find, /var/www, -type, f, -exec, chmod, 0664, {}, + ]
- - [ sh, -c, 'echo "<?php phpinfo(); ?>" > /var/www/html/phpinfo.php' ]
- - service iptables stop
- - [ sh, -c, "git clone https://github.com/ekelleyv/Flocking /var/www/html/flocking" ]
- - [ sh, -c, "git clone https://github.com/gabrielecirulli/2048.git /var/www/html/game2048" ]
- - [ sh, -c, "git clone https://github.com/Hextris/hextris.git /var/www/html/hextris" ]
- write_files:
- - content: |
- <!DOCTYPE html>
- <html>
- <body style=background-color:lightgreen;>
- <h2>CloudInit in Acropolis</h2>
- <h3>Welcome to our Bootcamp Project!</h3>
- <<ul>
- <li><a href="/flocking">flocking</a></li>
- <li><a href="/game2048">game2048</a></li>
- <li><a href="/hextris">hextris</a></li>
- </ul>>
- </body>
- </html>
- path: /var/www/html/bootcamp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement