summaryrefslogtreecommitdiffstats
path: root/roles/openshift_docker_registry
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2015-04-27 15:04:57 -0700
committerJhon Honce <jhonce@redhat.com>2015-05-29 14:36:56 -0700
commit1b4526d677651cb3677cbf7cc687a76fcba47c9a (patch)
tree88d3c99e92ac60db6f27971afd4e8fa794ec9f5c /roles/openshift_docker_registry
parent43d08da2a4af64015cd0fd83b36d843e51b21b0d (diff)
downloadopenshift-1b4526d677651cb3677cbf7cc687a76fcba47c9a.tar.gz
openshift-1b4526d677651cb3677cbf7cc687a76fcba47c9a.tar.bz2
openshift-1b4526d677651cb3677cbf7cc687a76fcba47c9a.tar.xz
openshift-1b4526d677651cb3677cbf7cc687a76fcba47c9a.zip
[WIP] Infrastructure - Deploy services in cluster
* Create OpenShift Docker Registry * Create OpenShift router
Diffstat (limited to 'roles/openshift_docker_registry')
-rw-r--r--roles/openshift_docker_registry/README.md42
-rw-r--r--roles/openshift_docker_registry/handlers/main.yml0
-rw-r--r--roles/openshift_docker_registry/meta/main.yml13
-rw-r--r--roles/openshift_docker_registry/tasks/main.yml8
-rw-r--r--roles/openshift_docker_registry/vars/main.yml2
5 files changed, 65 insertions, 0 deletions
diff --git a/roles/openshift_docker_registry/README.md b/roles/openshift_docker_registry/README.md
new file mode 100644
index 000000000..202c818b8
--- /dev/null
+++ b/roles/openshift_docker_registry/README.md
@@ -0,0 +1,42 @@
+OpenShift Container Docker Registry
+===================================
+
+OpenShift Docker Registry service installation
+
+Requirements
+------------
+
+Running OpenShift cluster
+
+Role Variables
+--------------
+
+From this role:
+| Name | Default value | |
+|--------------------|-------------------------------------------------------|---------------------|
+| | | |
+
+From openshift_common:
+| Name | Default value | |
+|-----------------------|---------------|--------------------------------------|
+| openshift_debug_level | 0 | Global openshift debug log verbosity |
+
+
+Dependencies
+------------
+
+Example Playbook
+----------------
+
+TODO
+
+License
+-------
+
+Apache License, Version 2.0
+
+Author Information
+------------------
+
+Red Hat openshift@redhat.com
+
diff --git a/roles/openshift_docker_registry/handlers/main.yml b/roles/openshift_docker_registry/handlers/main.yml
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/roles/openshift_docker_registry/handlers/main.yml
diff --git a/roles/openshift_docker_registry/meta/main.yml b/roles/openshift_docker_registry/meta/main.yml
new file mode 100644
index 000000000..93b6797d1
--- /dev/null
+++ b/roles/openshift_docker_registry/meta/main.yml
@@ -0,0 +1,13 @@
+---
+galaxy_info:
+ author: OpenShift Red Hat
+ description: OpenShift Embedded Docker Registry
+ company: Red Hat, Inc.
+ license: Apache License, Version 2.0
+ min_ansible_version: 1.7
+ platforms:
+ - name: EL
+ versions:
+ - 7
+ categories:
+ - cloud
diff --git a/roles/openshift_docker_registry/tasks/main.yml b/roles/openshift_docker_registry/tasks/main.yml
new file mode 100644
index 000000000..18b256032
--- /dev/null
+++ b/roles/openshift_docker_registry/tasks/main.yml
@@ -0,0 +1,8 @@
+---
+- set_fact: _option_images="--images={{ openshift_registry_url|quote }}"
+ when: openshift_registry_url is defined
+
+- name: Deploy OpenShift Docker Registry
+ command: openshift admin registry --create --credentials="{{ansible_env['HOME']}}"/.config/openshift/config {{ _option_images|default() }}
+ register: _openshift_docker_registry__results
+ changed_when: "'service exists' not in _openshift_docker_registry__results.stdout"
diff --git a/roles/openshift_docker_registry/vars/main.yml b/roles/openshift_docker_registry/vars/main.yml
new file mode 100644
index 000000000..cd21505a4
--- /dev/null
+++ b/roles/openshift_docker_registry/vars/main.yml
@@ -0,0 +1,2 @@
+---
+