Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrlesmithjr/ansible-openstack-image-service
https://github.com/mrlesmithjr/ansible-openstack-image-service
ansible ansible-role openstack
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mrlesmithjr/ansible-openstack-image-service
- Owner: mrlesmithjr
- License: mit
- Created: 2017-07-04T01:48:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-07T19:48:03.000Z (over 7 years ago)
- Last Synced: 2024-11-20T21:56:48.861Z (3 months ago)
- Topics: ansible, ansible-role, openstack
- Language: Python
- Size: 56.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
**Table of Contents** _generated with [DocToc](https://github.com/thlorenz/doctoc)_
- [ansible-openstack-image-service](#ansible-openstack-image-service)
- [Requirements](#requirements)
- [Role Variables](#role-variables)
- [Dependencies](#dependencies)
- [Ansible Roles](#ansible-roles)
- [Example Playbook](#example-playbook)
- [License](#license)
- [Author Information](#author-information)# ansible-openstack-image-service
An [Ansible](https://www.ansible.com) role to install/configure [OpenStack Image Service](https://docs.openstack.org/ocata/install-guide-ubuntu/common/get-started-image-service.html)
## Requirements
None
## Role Variables
```yaml
---
# defaults file for ansible-openstack-image-service# glance_store
openstack_image_service_glance_store:
default_store: 'file'
filesystem_store_datadir: '/var/lib/glance/images/'
stores:
- 'file'
- 'http'# Defines Glance DB info
openstack_image_service_glance_db_info:
db: 'glance'
user: 'glance'
pass: 'glance'
host: 'localhost'# Glance info
# Glance user info
openstack_image_service_glance_user_info:
name: 'glance'
# Generate with openssl rand -hex 10
password: '{{ openstack_image_service_glance_user_pass }}'
description: 'Glance user'
domain_id: 'default'
state: 'present'
enabled: true
role: 'admin'
project: 'service'## Define Glance user password
openstack_image_service_glance_user_pass: []# HA info
## Define as true if using HA
openstack_image_service_ha: false
## Define host which should be identified as HA master
openstack_image_service_ha_master: 'controller01'# keystone_authtoken
openstack_image_service_keystone_authtoken:
auth_type: 'password'
auth_uri: '{{ openstack_image_service_keystone_service_endpoint_url }}:5000'
auth_url: '{{ openstack_image_service_keystone_service_endpoint_url }}:35357'
memcached_servers: '{{ openstack_image_service_memcached_servers }}'
password: "{{ openstack_image_service_glance_user_info['password'] }}"
project_domain_name: "{{ openstack_image_service_glance_user_info['domain_id'] }}"
project_name: "{{ openstack_image_service_glance_user_info['project'] }}"
user_domain_name: "{{ openstack_image_service_glance_user_info['domain_id'] }}"
username: "{{ openstack_image_service_glance_user_info['name'] }}"openstack_image_service_keystone_service_endpoint_region: 'RegionOne'
# Defines the default Keystone endpoint url
# Do not append the port or api version
openstack_image_service_keystone_service_endpoint_url: 'http://{{ inventory_hostname }}'# Management IP Info
openstack_image_service_management_interface: 'enp0s8'
openstack_image_service_management_ip: "{{ hostvars[inventory_hostname]['ansible_'+openstack_compute_service_compute_management_interface]['ipv4']['address'] }}"# Define memcached servers
openstack_image_service_memcached_servers:
- 127.0.0.1# RabbitMQ Connection Info
openstack_image_service_rabbit_hosts:
- 127.0.0.1
openstack_image_service_rabbit_pass: 'openstack'
openstack_image_service_rabbit_user: 'openstack'
```## Dependencies
### Ansible Roles
The following [Ansible](https://www.ansible.com) roles are required as part of
this role.- [ansible-chrony](https://github.com/mrlesmithjr/ansible-chrony)
- [ansible-config-interfaces](https://github.com/mrlesmithjr/ansible-config-interfaces)
- [ansible-etc-hosts](https://github.com/mrlesmithjr/ansible-etc-hosts)
- [ansible-memcached](https://github.com/mrlesmithjr/ansible-memcached)
- [ansible-mysql](https://github.com/mrlesmithjr/ansible-mysql)
- [ansible-openstack-base](https://github.com/mrlesmithjr/ansible-openstack-base)
- [ansible-openstack-identity-service](https://github.com/mrlesmithjr/ansible-openstack-identity-service)
- [ansible-openstack-openrc](https://github.com/mrlesmithjr/ansible-openstack-openrc)
- [ansible-rabbitmq](https://github.com/mrlesmithjr/ansible-rabbitmq)The above roles can be installed using `ansible-galaxy` along with [requirements.yml](./requirements.yml):
```bash
ansible-galaxy install -r requirements.yml
```## Example Playbook
[Example Playbook](./playbook.yml)
## License
MIT
## Author Information
Larry Smith Jr.
- [@mrlesmithjr](https://www.twitter.com/mrlesmithjr)
- [EverythingShouldBeVirtual](http://www.everythingshouldbevirtual.com)
- mrlesmithjr [at] gmail.com