Merge branch 'x' into x-fixes
This commit is contained in:
commit
e4843f6369
@ -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
|
||||||
|
@ -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:
|
||||||
|
11
x/resources/mariadb_db/actions/remove.yml
Normal file
11
x/resources/mariadb_db/actions/remove.yml
Normal 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
|
11
x/resources/mariadb_db/actions/run.yml
Normal file
11
x/resources/mariadb_db/actions/run.yml
Normal 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
|
13
x/resources/mariadb_db/meta.yaml
Normal file
13
x/resources/mariadb_db/meta.yaml
Normal 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:
|
@ -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: []
|
|
11
x/resources/mariadb_user/actions/remove.yml
Normal file
11
x/resources/mariadb_user/actions/remove.yml
Normal 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
|
13
x/resources/mariadb_user/actions/run.yml
Normal file
13
x/resources/mariadb_user/actions/run.yml
Normal 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
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user