Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #cloud-config
- yum_repos:
- # The name of the repository
- PHP_epel:
- baseurl: http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
- enabled: true
- name: Extra packages for Enterprise Linux PHP - testing
- gpgcheck: false
- # added_epel2:
- # baseurl: http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
- # enabled: true
- # name: additional repo for PHP
- # added_epel3:
- # baseurl: http://mirror.webtatic.com/yum/el6/latest.rpm
- # enabled: false
- # name: additional repo for PHP
- package_upgrade: true
- packages:
- - ntp
- - httpd.x86_64
- - nfs-utils
- - nfs-utils-lib
- - wget
- - telnet
- - php55w
- - php55w-opcache
- - php55w-mcrypt.x86_64
- - php55w-gd.x86_64
- - php-domxml-php4-php5
- groups:
- - sudo
- # - jenkins
- users:
- - default
- - name: jenkins
- groups: sudo
- shell: /bin/bash
- sudo: ['ALL=(ALL) NOPASSWD:ALL']
- ssh-authorized-keys:
- - ssh-rsa (removed)
- - name: stefano
- shell: /bin/bash
- sudo: ['ALL=(ALL) NOPASSWD:ALL']
- ssh-authorized-keys:
- - ssh-rsa (removed)
- runcmd:
- - service ntpd start
- - chkconfig ntpd on
- - ntpdate -u 0.centos.pool.ntp.org
- - service iptables save
- - service iptables stop
- - chkconfig iptables off
- - mkdir /var/www
- - mount -t nfs 10.196.140.122:/content/qa-ibldcweb /var/www/
- - echo "10.196.140.122:/content/qa-ibldcweb /var/www/ nfs rw,sync,hard,intr 0 0">> /etc/fstab
- - service httpd start
- - chkconfig httpd on
- - wget http://s3tools.org/repo/RHEL_6/s3tools.repo --output-document=/etc/yum.repos.d/s3tools.repo
- - yum -y install s3cmd
- final_message: "This webserver is finally up, after $UPTIME seconds"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement