Merge branch 'x' into x-fixes

This commit is contained in:
Przemyslaw Kaminski 2015-04-28 11:40:32 +02:00
commit e4843f6369
9 changed files with 83 additions and 17 deletions

View File

@ -1,6 +1,13 @@
# TODO
- hosts: [{{ ip }}] - hosts: [{{ ip }}]
sudo: yes sudo: yes
tasks: tasks:
- shell: docker run -d --net="host" --privileged \ - name: keystone container
--name {{ name }} {{ image }} docker:
name: {{ name }}
image: {{ image }}
state: running
ports:
- {{ port }}:5000
- {{ admin_port }}:35357
volumnes:
- {{ config_dir }}:/etc/keystone

View File

@ -2,6 +2,10 @@ id: keystone
handler: ansible handler: ansible
version: 1.0.0 version: 1.0.0
input: input:
image: kollaglue/centos-rdo-keystone
config_dir:
admin_port:
port:
ip: ip:
port: 5000 ssh_key:
image: garland/docker-openstack-keystone ssh_user:

View File

@ -0,0 +1,11 @@
- hosts: [{{ ip }}]
sudo: yes
tasks:
- name: mariadb db
mysql_db:
name: {{name}}
state: absent
login_user: root
login_password: {{login_password}}
login_port: {{login_port}}
login_host: 127.0.0.1

View File

@ -0,0 +1,11 @@
- hosts: [{{ ip }}]
sudo: yes
tasks:
- name: mariadb db
mysql_db:
name: {{name}}
state: present
login_user: root
login_password: {{login_password}}
login_port: {{login_port}}
login_host: 127.0.0.1

View File

@ -0,0 +1,13 @@
id: mariadb_table
handler: ansible
version: 1.0.0
actions:
run: run.yml
remove: remove.yml
input:
login_password:
login_port:
login_user:
ip:
ssh_key:
ssh_user:

View File

@ -1,10 +0,0 @@
id: mariadb_user
handler: ansible
version: 1.0.0
actions:
run: run.yml
remove: remove.yml
input:
name: name
password: password
users: []

View File

@ -0,0 +1,11 @@
- hosts: [{{ ip }}]
sudo: yes
tasks:
- name: mariadb user
mysql_user:
name: {{name}}
state: absent
login_user: root
login_password: {{login_password}}
login_port: {{login_port}}
login_host: 127.0.0.1

View File

@ -0,0 +1,13 @@
- hosts: [{{ ip }}]
sudo: yes
tasks:
- name: mariadb user
mysql_user:
name: {{name}}
password: {{password}}
priv: {{db}}.*:ALL
state: present
login_user: root
login_password: {{login_password}}
login_port: {{login_port}}
login_host: 127.0.0.1

View File

@ -5,5 +5,11 @@ actions:
run: run.yml run: run.yml
remove: remove.yml remove: remove.yml
input: input:
name: name password:
password: password db:
login_password:
login_port:
login_user:
ip:
ssh_key:
ssh_user: