Managing servers: 4th Assignment

These assignments are done with a virtual machine environment. I’m running Xubuntu 16.04 on all three virtual machines. One virtual machine acts as the master, the rest are slaves. 1. Each slave gets a unique variable from the salt pillar. First I made a new folder into the /srv directory called ‘pillar’. In this folder […]

Read more "Managing servers: 4th Assignment"

Managing servers: 3rd assignment

Using jinja template to make a state which adds a variable into a file. I started by creating a new folder in the /srv/salt directory, simply called ‘jinjatest’. Into this new folder I created a text file called monkey.txt Then I created an .sls file called ‘monkeycall’. I ran the state and it worked. SLS […]

Read more "Managing servers: 3rd assignment"

Managing servers: 2nd assignment

Making users’ homepages work with Apache I have previously made a folder under Salt’s srv directory called ‘salt’. Now I created a folder called ‘apache’ and inside it a file called ‘init.sls’. sudo mkdir apache already in the /srv/salt directory: cd apache sudoedit init.sls I created a default homepage: sudoedit default-index.html Then I applied the […]

Read more "Managing servers: 2nd assignment"

Training for the Exam!

1. First I downloaded pwgen to help generate passwords. sudo apt-get update && sudo apt-get install pwgen 2. Then I installed the LAMP stack sudo apt-get install apache2 mysql-server I input a password for the root user of the MySQL database, as per recommendation. I checked if my version of Ubuntu (16.04) had php, because […]

Read more "Training for the Exam!"

Trying out python, ruby and c

So this week on the agenda, was to try out at least three programming languages and make “Hello World” -programs with them. I chose Python, Ruby and C because they are the programming languages I’m most interested in learning more about, and they can be used for a variety of different things. They’re simple and […]

Read more "Trying out python, ruby and c"