Advertisement
Guest User

test cloud-init

a guest
Oct 22nd, 2015
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. #cloud-config
  2.  
  3. yum_repos:
  4. # The name of the repository
  5. PHP_epel:
  6. baseurl: http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
  7. enabled: true
  8. name: Extra packages for Enterprise Linux PHP - testing
  9. gpgcheck: false
  10.  
  11. # added_epel2:
  12. # baseurl: http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
  13. # enabled: true
  14. # name: additional repo for PHP
  15. # added_epel3:
  16. # baseurl: http://mirror.webtatic.com/yum/el6/latest.rpm
  17. # enabled: false
  18. # name: additional repo for PHP
  19.  
  20.  
  21. package_upgrade: true
  22.  
  23. packages:
  24. - ntp
  25. - httpd.x86_64
  26. - nfs-utils
  27. - nfs-utils-lib
  28. - wget
  29. - telnet
  30. - php55w
  31. - php55w-opcache
  32. - php55w-mcrypt.x86_64
  33. - php55w-gd.x86_64
  34. - php-domxml-php4-php5
  35.  
  36. groups:
  37. - sudo
  38. # - jenkins
  39.  
  40.  
  41. users:
  42. - default
  43. - name: jenkins
  44. groups: sudo
  45. shell: /bin/bash
  46. sudo: ['ALL=(ALL) NOPASSWD:ALL']
  47. ssh-authorized-keys:
  48. - ssh-rsa (removed)
  49.  
  50. - name: stefano
  51. shell: /bin/bash
  52. sudo: ['ALL=(ALL) NOPASSWD:ALL']
  53. ssh-authorized-keys:
  54. - ssh-rsa (removed)
  55.  
  56. runcmd:
  57. - service ntpd start
  58. - chkconfig ntpd on
  59. - ntpdate -u 0.centos.pool.ntp.org
  60. - service iptables save
  61. - service iptables stop
  62. - chkconfig iptables off
  63. - mkdir /var/www
  64. - mount -t nfs 10.196.140.122:/content/qa-ibldcweb /var/www/
  65. - echo "10.196.140.122:/content/qa-ibldcweb /var/www/ nfs rw,sync,hard,intr 0 0">> /etc/fstab
  66. - service httpd start
  67. - chkconfig httpd on
  68. - wget http://s3tools.org/repo/RHEL_6/s3tools.repo --output-document=/etc/yum.repos.d/s3tools.repo
  69. - yum -y install s3cmd
  70.  
  71.  
  72. final_message: "This webserver is finally up, after $UPTIME seconds"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement