Skip to content

Commit

Permalink
Added changes
Browse files Browse the repository at this point in the history
  • Loading branch information
qtkhajacloud committed Nov 4, 2021
1 parent 2db6785 commit f4fede4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
Expand Up @@ -38,7 +38,12 @@ verifier:

platforms:
- name: ubuntu-20.04
#- name: centos-8
- name: centos-7
driver:
image_id: ami-0bc06212a56393ee1
transport:
username: centos
ssh_key: chefnode.pem

suites:
- name: default
Expand Down
Expand Up @@ -3,22 +3,23 @@
# Recipe:: default
#
# Copyright:: 2021, The Authors, All Rights Reserved.
if node['platform'] == 'ubuntu'
apt_update 'update ubuntu packages' do
ignore_failure true
action :update
end

apt_update 'update ubuntu packages' do
ignore_failure true
action :update
end
package 'install lamp packages' do
package_name %w(apache2 php libapache2-mod-php php-mysql)
action :install
end

package 'install lamp packages' do
package_name %w(apache2 php libapache2-mod-php php-mysql)
action :install
end
file '/var/www/html/info.php' do
content '<?php phpinfo(); ?>'
action :create
end

file '/var/www/html/info.php' do
content '<?php phpinfo(); ?>'
action :create
end

service 'apache2' do
action :restart
end
service 'apache2' do
action :restart
end
end

0 comments on commit f4fede4

Please sign in to comment.