This challenge will see if you can setup and configure a wordpress correctly.
Wordpress is great!
The hardware used will be an Ubuntu machine.
- os: ubuntu
- arch: x84
- user: ubuntu
- distribution: 12.10
The first step of installing wordpress is installing apache.
We will check:
-
if you have a webserver running on port 80
-
and we can connect to it
-
and the main page responds to helloworld
-
and you've use debian packages to install it
-
action:prepare the VM
-
check:apache is running
-
score:got apache running
Now that you have Apache running, we can continue with installing mysql.
We will check:
-
if mysql is running port 6399
-
if we can connect with user
wordpress
and passwordcappucino
-
check:mysql is running
-
score:got mysql running
More levels will come
sudo apt-get -y install htop
sudo apt-get -y install nc
- type: combi
- checks:
- apache2 http responds
- apache2 package is installed
- type: http
- statuscode: 200
- url: http://{{{vm.ubuntu.ipaddress}}}/
- type: exec
- exitcode: 0
apt-get list | grep apache2
- type: exec
service mysql status | grep OK
- type: points
- value: 20
- type: points
- value: 20
- type: points
- value: 20
- type: exec
sudo apt-get -y install apache2
- type: exec
sudo apt-get -y install mysql
sudo useradd wordpress
...
- author: Patrick Debois
- email: [email protected]
- version: 0.1