hpc-cloud/roles/nova-management/tasks/main.yml
Egon Rijpkema a25852b39e Removed hardcoded ips for glance
Also added domain, projects, users creation for keystone.
This guide was followed:
https://docs.openstack.org/ocata/install-guide-ubuntu/keystone-us
2017-07-12 10:19:45 +02:00

26 lines
716 B
YAML

# Build and install a docker image for nova-controller.
---
- name: install service file.
template:
src: templates/nova-controller.service
dest: /etc/systemd/system/nova-controller.service
mode: 644
owner: root
group: root
- command: systemctl daemon-reload
- name: Initialize database.
command: >
/usr/bin/docker run --rm
--add-host=mariadb:{{ hostvars[groups['databases'][0]]['ansible_default_ipv4']['address'] }}
--add-host=controller:{{ hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address'] }}
hpc/novacontroller
/etc/bootstrap.sh
tags: bootstrap
- name: make sure service is started
systemd:
name: nova-controller.service
state: restarted