Clean up more docker registry host stuff
This commit is contained in:
parent
ce4994cf34
commit
112d51c67f
2 changed files with 0 additions and 49 deletions
|
@ -1,8 +0,0 @@
|
|||
---
|
||||
# use bigger disk for os as we have web site data there
|
||||
dsk_size: 60
|
||||
glusterfs_group: registry
|
||||
firewall_in:
|
||||
- {proto: tcp, port: 22, from: [172.20.20.0/22]}
|
||||
- {proto: tcp, port: 4949, from: [172.20.20.0/22]}
|
||||
- {proto: tcp, port: 5000, from: [172.20.20.0/22]}
|
|
@ -1,41 +0,0 @@
|
|||
---
|
||||
- import_playbook: "include/deploy-kvm-guest.yml myhosts=registry"
|
||||
|
||||
- name: configure instance
|
||||
hosts: registry
|
||||
user: root
|
||||
gather_facts: true
|
||||
|
||||
vars_files:
|
||||
- "{{ ansible_private }}/vars.yml"
|
||||
|
||||
roles:
|
||||
- base
|
||||
- glusterfs
|
||||
|
||||
tasks:
|
||||
- name: run handlers to get interfaces configured
|
||||
meta: flush_handlers
|
||||
|
||||
- name: create /srv/registry
|
||||
file:
|
||||
path: /srv/registry
|
||||
state: directory
|
||||
mode: 0755
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
- name: mount /srv/registry
|
||||
mount:
|
||||
name: /srv/registry
|
||||
src: "{{ inventory_hostname }}:/gv0"
|
||||
fstype: glusterfs
|
||||
opts: defaults
|
||||
passno: "0"
|
||||
dump: "0"
|
||||
state: mounted
|
||||
|
||||
- import_role:
|
||||
name: docker_distribution
|
||||
vars:
|
||||
htpasswd: "{{ ansible_private }}/files/docker-distribution/htpasswd"
|
||||
secret: "{{ docker_distribution_secret }}"
|
Loading…
Add table
Reference in a new issue