diff --git a/README.md b/README.md index c31cbc7..6dcabc2 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,14 @@ -#hpc-cloud +# hpc-cloud This repository will contain playbooks to bring up openstack components inside docker containers. -It makes use of [/home/egon/projects/hpc-cloud/roles/common/tasks/users.yml](ansible roles). +It makes use of ansible roles. The roles can be set in the inventory file (hosts) -Cirrently,Tue 25 Apr 2017 02:45:20 PM CEST, only mariadb and keystone are implemented. They can be brought up with - $ ansible-playbook main.yml +To bring up one role, for instance keystone, use: + + $ ansible-playbook keystone.yml + +To bring up all roles, use + + $ ansible-playbook site.yml diff --git a/roles/keystone/files/Dockerfile b/roles/keystone/files/Dockerfile index d30f204..f23e6fc 100644 --- a/roles/keystone/files/Dockerfile +++ b/roles/keystone/files/Dockerfile @@ -4,6 +4,7 @@ # run keystone-manage db_sync from this docker first: # $ docker run hpc/keystone --add-host=mariadb: "keystone-manage db_sync" +# wellicht ubuntu 16.04 of anders 18.04 FROM ubuntu:zesty RUN apt-get update @@ -11,6 +12,7 @@ RUN apt-get update RUN apt-get install --yes keystone # set admin token TODO: make this a secret +# in volume of met env ADD keystone.conf /etc/keystone/keystone.conf RUN mkdir /etc/keystone/fernet-keys diff --git a/roles/mariadb/files/mysql.service b/roles/mariadb/files/mysql.service index c82c263..ec696fc 100644 --- a/roles/mariadb/files/mysql.service +++ b/roles/mariadb/files/mysql.service @@ -8,9 +8,9 @@ TimeoutStartSec=0 Restart=always ExecStartPre=-/usr/bin/docker stop %n ExecStartPre=-/usr/bin/docker rm %n -ExecStartPre=/usr/bin/docker pull mariadb:10.1.22 +ExecStartPre=/usr/bin/docker pull mariadb:10.2 ExecStart=/usr/bin/docker run -p 3306:3306 --name %n -v /srv/lib/mysql:/var/lib/mysql \ - -e MYSQL_ROOT_PASSWORD=geheim mariadb:10.1.22 + -e MYSQL_ROOT_PASSWORD=geheim mariadb:10.2 [Install] WantedBy=multi-user.target diff --git a/main.yml b/site.yml similarity index 100% rename from main.yml rename to site.yml