Renamed main.yml and updated README

This commit is contained in:
Egon Rijpkema 2017-06-02 12:00:19 +02:00
parent 53d83c1bde
commit 485ddb3147
4 changed files with 13 additions and 6 deletions

View File

@ -1,9 +1,14 @@
#hpc-cloud # hpc-cloud
This repository will contain playbooks to bring up openstack components inside docker containers. 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) 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 To bring up one role, for instance keystone, use:
$ ansible-playbook main.yml
$ ansible-playbook keystone.yml
To bring up all roles, use
$ ansible-playbook site.yml

View File

@ -4,6 +4,7 @@
# run keystone-manage db_sync from this docker first: # run keystone-manage db_sync from this docker first:
# $ docker run hpc/keystone --add-host=mariadb:<ip mariadb> "keystone-manage db_sync" # $ docker run hpc/keystone --add-host=mariadb:<ip mariadb> "keystone-manage db_sync"
# wellicht ubuntu 16.04 of anders 18.04
FROM ubuntu:zesty FROM ubuntu:zesty
RUN apt-get update RUN apt-get update
@ -11,6 +12,7 @@ RUN apt-get update
RUN apt-get install --yes keystone RUN apt-get install --yes keystone
# set admin token TODO: make this a secret # set admin token TODO: make this a secret
# in volume of met env
ADD keystone.conf /etc/keystone/keystone.conf ADD keystone.conf /etc/keystone/keystone.conf
RUN mkdir /etc/keystone/fernet-keys RUN mkdir /etc/keystone/fernet-keys

View File

@ -8,9 +8,9 @@ TimeoutStartSec=0
Restart=always Restart=always
ExecStartPre=-/usr/bin/docker stop %n ExecStartPre=-/usr/bin/docker stop %n
ExecStartPre=-/usr/bin/docker rm %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 \ 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] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File