Skip to content
Snippets Groups Projects
Commit 11ea8db4 authored by Diego Alejandro Arias Rodriguez's avatar Diego Alejandro Arias Rodriguez
Browse files

Ansible couch

parent 39adba54
No related branches found
No related tags found
No related merge requests found
Showing
with 81 additions and 0 deletions
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
- hosts: mrc.db
vars:
user: 'admin'
password: 'admin'
cookie: 'alexis'
ansible_python_interpreter: /usr/bin/python3.8
\ No newline at end of file
# Common vars
availability_zone: melbourne-qh2-uom
# Volume
volumes:
- vol_name: demo-vol-1-1
vol_size: 10
- vol_name: demo-vol-1-2
vol_size: 10
- vol_name: demo-vol-2-1
vol_size: 10
- vol_name: demo-vol-2-2
vol_size: 10
#Security group
security_groups:
- name: demo_ssh
description: "Demo security group for SSH access"
protocol: tcp
port_range_min: 22
port_range_max: 22
remote_ip_prefix: 0.0.0.0/0
- name: demo_http
description: "Demo security group for HTTP"
protocol: tcp
port_range_min: 80
port_range_max: 80
remote_ip_prefix: 0.0.0.0/0
#Instance
instances:
- name: demo-1
volumes: ['demo-vol-1-1', 'demo-vol-1-2']
#- name:
volumes: ['demo-vol-2-1', 'demo-vol-2-2']
instance_image: f8b79936-6616-4a22-b55d-0d0a1d27bceb
instance_key_name: couchTestKey
instance_flavor: uom.mse.1c4g
\ No newline at end of file
- hosts: localhost
vars:
ansible_python_interpreter: /usr/bin/python3.8
vars_files:
- host_vars/mrc.yaml
gather_facts: true
roles:
- role: openstack-common
- role: openstack-images
- role: openstack-volume
- role: openstack-security-group
- role: openstack-instance
# - role: openstack-volume-snapshot
\ No newline at end of file
File added
File added
- name: Install pip
become: yes
apt:
name: ['python3-pip']
state: latest
update_cache: yes
when: ansible_distribution == "Ubuntu"
# sudo apt-get update; sudo apt-get install python-pip
- name: Update pip
become: yes
pip:
name: ['pip']
state: latest
# pip install --upgrade pip
- name: Install openstacksdk
become: yes
pip:
name: ['openstacksdk']
state: latest
# pip install openstacksdk
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment