a25852b39e
Also added domain, projects, users creation for keystone. This guide was followed: https://docs.openstack.org/ocata/install-guide-ubuntu/keystone-us
26 lines
716 B
YAML
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
|